I hereby claim:
- I am stanwilsonjr on github.
- I am stanwilsonjr (https://keybase.io/stanwilsonjr) on keybase.
- I have a public key ASDFxjqtc0q91P_lpld24euZEITT_3YmAFgbhY4Cx5QQhAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
body{ | |
} |
// This will add a class to the html tag if it is iframed | |
// https://github.com/Modernizr/Modernizr/commit/d48a2bf1b18b891c5647dcfca9cb2713688ccec2 | |
<script type="text/javascript"> | |
Modernizr.addTest('framed', function(){ | |
return window.location != top.location; | |
}); | |
</script> |
---------- returned partial ---------- | |
< div class='list'> | |
<ul> | |
<li>sdfsdf</li> | |
</ul> | |
</div> | |
<div class="pagintation"> | |
... |
var animalObject = { elephant : "Elephant" , lion : "Lion" , tiger : "Tiger",giraffe :"Giraffe" }; | |
var animalArray = [ "Giraffe", "Lion" ,"Elephant" , "Tiger" ]; | |
/* 1: Return Elephant from animalArray in an alert */ | |
/* 2: Return Elephant from animalObject in an alert */ | |
var objectName = (function(o,$){ | |
var privateVar = "value", | |
privateObject = { key: "value" }; | |
o.methodOne = function(){ | |
... | |
}; | |
o.methodTwo = function(){ | |
... |
function get(container,selector){ | |
return function(element){ | |
return container[selector](element); | |
} | |
}; | |
//used | |
var getById = get(document,"getElementById"), // creates get by id function equivalent to document.getElementById() |