Skip to content

Instantly share code, notes, and snippets.

@pixeline
Created September 6, 2013 06:31
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 pixeline/6460251 to your computer and use it in GitHub Desktop.
Save pixeline/6460251 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
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
<!-- content to be placed inside <body>…</body> -->
var M2 = {};
M2.UI = {
name : 'alex',
test: function(str){
alert("hi:"+str+ ' '+window.innerWidth);
},
print: function(str){
fiche.boom(str);
}
};
M2.fiche = {
init: function(){
this.UI.test("yo!");
},
boom: function(str){
alert("boom! "+ str);
}
}
M2.fiche.init();
{"view":"split-vertical","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