Skip to content

Instantly share code, notes, and snippets.

@StoneCypher
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save StoneCypher/e5b497872e78180630b2 to your computer and use it in GitHub Desktop.

Select an option

Save StoneCypher/e5b497872e78180630b2 to your computer and use it in GitHub Desktop.
<!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>
@pgharios
Copy link
Copy Markdown

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment