Skip to content

Instantly share code, notes, and snippets.

@alexismaster
Created March 12, 2013 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexismaster/5142441 to your computer and use it in GitHub Desktop.
Save alexismaster/5142441 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
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
input[type="button"] {
padding: 5px 10px;
}
<!-- content to be placed inside <body>…</body> -->
<input type="button" value="example 1" id="example1"/>
<input type="button" value="example 2" id="example2"/>
function example() {
return
{
foo: 'bar'
}
}
function example_2() {
return {
foo: 'bar'
}
}
document.getElementById('example1').onclick = function () {alert(typeof example())}
document.getElementById('example2').onclick = function () {alert(typeof example_2())}
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment