Added page scripts and styles

This commit is contained in:
Will Bamberg
2017-01-20 17:58:12 -08:00
parent c14efa00d1
commit 49dddba366
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
var p = document.createElement("p");
p.textContent = "This paragraph was added by a page script.";
p.setAttribute("id", "page-script-para");
document.body.appendChild(p);
window.foo = "This global variable was added by a page script";
window.confirm = function() {
alert("The page script has also redefined 'confirm'");
}
// add controls
insertControls(document.getElementById("left-column"), "Page script controls");