Skip to content

Instantly share code, notes, and snippets.

@theo-armour
Created January 19, 2013 08:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theo-armour/4571359 to your computer and use it in GitHub Desktop.
Save theo-armour/4571359 to your computer and use it in GitHub Desktop.
show hide
<!doctype html>
<html>
<head>
<title>show hide</title>
<meta charset='UTF-8'>
<meta name="author" content="Theo Armour">
</head>
<body>
<script type='text/javascript'>
document.body.style.font = 'bold 12pt monospace';
menu = document.createElement( 'div' );
document.body.appendChild( menu );
menu.innerHTML='<a href="JavaScript: toggle(content);">toggle</a>';
content = document.createElement( 'div' );
document.body.appendChild( content );
content.style.display = 'none';
content.innerHTML='Iteration system wide engenders economies of scale, cross-media technology, presentation action items and life cycle replication.';
function toggle(e) {
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment