Created
March 29, 2012 15:06
-
-
Save motionharvest/2238315 to your computer and use it in GitHub Desktop.
Untitled
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
<!-- content to be placed inside <body>…</body> --> | |
<script> | |
//variable defined inside of the bubble | |
var observation = "I'm inside a bubble"; | |
</script> | |
<div id="foo"></div> | |
<script> | |
//retrieved from a seperate script tag, but the variable "observation" still exists inside the bubble | |
document.getElementById('foo').innerHTML = observation; | |
</script> | |
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
{"view":"split","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment