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
// Make Spotify the right size and responsive | |
$(document).ready(function(){ | |
$('.mobile-spotify iframe').css('height', '80px'); | |
$('.mobile-spotify iframe').css('width', '290px'); | |
$('iframe[src*="embed.spotify.com"]').each( function() { | |
$(this).css('width',$(this).parent(1).css('width')); | |
$(this).css('height', '82'); | |
$(this).attr('src',$(this).attr('src')); | |
}); | |
}); |
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
<!-- HTML5 Support in IE LT 9 --> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<script src="http://static.tumblr.com/myrscmz/nb8mvvfx0/respond.js"></script> | |
<link href="https://cdn.rawgit.com/scottjehl/Respond/master/cross-domain/respond-proxy.html" id="respond-proxy" rel="respond-proxy" /> | |
<link href="http://static.tumblr.com/zsno5u0/Ho3n6104k/respond.proxy.gif" id="respond-redirect" rel="respond-redirect" /> | |
<script src="http://static.tumblr.com/zsno5u0/cNnn6104q/respond.proxy.js"></script> | |
<script src="http://static.tumblr.com/uoxxoej/pIdlrxepo/css3-mediaqueries.js"></script> | |
<![endif]--> |
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
git reset --soft HEAD~7 | |
git commit -m "Add stickyNavbar.js" | |
git push --force | |
REM From https://github.com/jsdelivr/jsdelivr/pull/843 |
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
html, body { | |
height: 100%; /* IMPORTANT!!! stretches viewport to 100% */ | |
} | |
#wrapper { | |
min-height: 100%; /* min. height for modern browser */ | |
height:auto !important; /* important rule for modern Browser */ | |
height:100%; /* min. height for IE */ | |
overflow: hidden !important; /* FF scroll-bar */ | |
} |
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
@font-face { | |
font-family: 'chunk-webfont'; | |
src: url('../../includes/fonts/chunk-webfont.eot'); | |
src: url('../../includes/fonts/chunk-webfont.eot?#iefix') format('eot'), | |
url('../../includes/fonts/chunk-webfont.svg') format('svg'), | |
url('../../includes/fonts/chunk-webfont.woff') format('woff'), | |
url('../../includes/fonts/chunk-webfont.ttf') format('truetype'); | |
font-weight: normal; | |
font-style: normal; | |
} |
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
window.onresize = function() { | |
// your code | |
}; |
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
var w = window, | |
d = document, | |
e = d.documentElement, | |
g = d.getElementsByTagName('body')[0], | |
x = w.innerWidth || e.clientWidth || g.clientWidth, | |
y = w.innerHeight|| e.clientHeight|| g.clientHeight; | |
alert(x + ' × ' + y); | |
// From http://stackoverflow.com/questions/3437786/how-to-get-web-page-size-browser-window-size-screen-size-in-a-cross-browser-wa |
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
$(document).ready(function() { | |
}); |
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
$('form').submit( function(ev) { | |
ev.preventDefault(); | |
//later you decide you want to submit | |
$(this).unbind('submit').submit() | |
}); | |
//From http://stackoverflow.com/questions/5651933/what-is-the-opposite-of-evt-preventdefault |
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
<div id="input"> | |
<span>Enter Twitter Username</span> | |
<input id="twitterUsername" type="text" value="@john_papa"/> | |
<button id="getTweets">Get Tweets</button> | |
</div> | |
<div id="output"></div> | |
<!-- via http://jsfiddle.net/johnpapa/YS3u4/light/ --> |