This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// background cover for position:fixed video | |
// aspectRatio = original aspect ratio of video | |
var ww = $(window).width(), | |
wh = $(window).height(), | |
wAR = ww / wh, | |
newW = (wAR < aspectRatio) ? 'auto' : ww, | |
newH = (wAR < aspectRatio) ? wh : 'auto', | |
mT = (wAR < aspectRatio) ? 0 : Math.round((el.height() - wh) / 2) * -1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Front end dev chat | |
*/ | |
/* TOOLS */ | |
- dev browser of choice. why? | |
- dev editor of choice. why? | |
- other tools? | |
/* HTML */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fuckin... | |
I was in my kitchen right | |
checking to see if my T-shirt was dry right | |
and I just burst out laughing | |
cos on the label of my T-shirt | |
it said George | |
cos I got it fae Asda | |
and it was as if | |
every time I leave the kitchen | |
everything in the kitchen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.belowfold = function(el) { | |
var fold = $(window).height() + $(window).scrollTop(); | |
return fold <= $(el).offset().top; | |
}; |
NewerOlder