Skip to content

Instantly share code, notes, and snippets.

@jedgell
Last active August 31, 2015 07:14
Show Gist options
  • Save jedgell/8d3d9bd6ab5e26d96e9e to your computer and use it in GitHub Desktop.
Save jedgell/8d3d9bd6ab5e26d96e9e to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
/* jeremy's dabblet title */
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
<!-- content to be placed inside <body>…</body> -->
<div id="first">first div content</div>
<div id="second">second div content</div>
(function(window, document) { 'use strict';
doc = document.getElementById('result');
console.log(doc.document);
doc.document.getElementById('first').innerHTML = 'Replaced content for first div';
})();
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"javascript"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment