Last active
August 29, 2015 14:05
-
-
Save StoneCypher/e5b497872e78180630b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <script type="text/javascript"> | |
| function byId(X) { return document.getElementById(X); } | |
| function el(tag, options) { | |
| var El = document.createElement(el); | |
| var Opts = options || {}; | |
| for (var property in Opts) { | |
| El[property] = Opts[property]; | |
| } | |
| return El; | |
| } | |
| function MakeIntroPanel() { | |
| var Box = document.createElement('div'); | |
| var H1 = document.createElement('h1'); | |
| var Dsc = document.createElement('p'); | |
| var Btn = document.createElement('input'); | |
| H1.innerHTML = 'Hello, world!'; | |
| Dsc.innerHTML = 'This is just some bullcrap I\'m writing so that there\'s text there. You can pretty much ignore this. sportsball!'; | |
| Btn.value = 'Next'; | |
| Box.appendChild(H1); | |
| Box.appendChild(Dsc); | |
| Box.appendChild(H1); | |
| byId('bodyId').innerHTML = ''; | |
| byId('bodyId').appendChild(Box); | |
| } | |
| </script> | |
| </head> | |
| <body id="bodyid"></body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test