Created
January 19, 2013 08:16
-
-
Save theo-armour/4571359 to your computer and use it in GitHub Desktop.
show hide
This file contains 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> | |
<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