Skip to content

Instantly share code, notes, and snippets.

@mirontoli
mirontoli / head.md
Last active August 29, 2015 14:02 — forked from joladev/katze.clj

ekvation 1:

15h + k + 0,25m = 100 (1)

multiplicerad med 4 för att få heltal:

60h + 4k + m = 400 (1)

ekvation 2:

//Conditionally load jQuery
//inspired by http://www.smashingmagazine.com/2010/05/23/make-your-own-bookmarklets-with-jquery/
function myOnLoadEvent() {
jQuery(document).ready(function($) {
alert('your code here');
});
}
@mirontoli
mirontoli / Modernizr placeholder
Created March 25, 2012 22:50 — forked from athanassiadis/Modernizr placeholder
Modernizr placeholder
if (!Modernizr.input.placeholder){
$('input[type=text]').each( function(){
$(this).attr('value', $(this).attr('placeholder') )
.focus(function(){
var ph = $(this).attr('value');
$(this).attr('value','')
.blur( function(){
if($(this).attr('value').length < 1 ){
$(this).attr('value', ph);
}