This file contains 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
// Mustard Cutting | |
if ('querySelector' in document && 'addEventListener' in window) { | |
// add class to HTML tag | |
(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement); | |
// load critical scripts | |
document.write(unescape("%3Cscript src='assets/js/whatcananimate-criticalscripts.min.js' type='text/javascript' defer%3E%3C/script%3E")); | |
// add custard if screen size is big enough |
This file contains 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
<script type="text/javascript"> | |
// Mustard Cutting | |
if ('querySelector' in document && 'addEventListener' in window) { | |
var windowWidth = document.body.clientWidth; | |
if(windowWidth > 768){ | |
// add class to HTML tag | |
(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement); | |
// load scripts - from cdn but with a fallback |
This file contains 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
[push] | |
autoSetupRemote = true | |
[user] | |
name = xxx | |
email = xxx | |
[core] | |
excludesfile = ~/.gitignore | |
[alias] | |
sla = log --oneline --decorate --graph --all | |
whowhen = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
This file contains 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.onload = function(){ | |
var links = document.getElementsByTagName('a'); | |
for( var i=0,il = links.length; i< il; i ++ ){ | |
links[i].onclick = clickHandler; | |
} | |
function clickHandler(event) { |
This file contains 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
@-webkit-keyframes fadeInUp { | |
0% { | |
opacity: 0; | |
-webkit-transform: translateY(20px); | |
transform: translateY(20px); | |
} | |
10% { | |
opacity: 1; | |
-webkit-transform: translateY(0); | |
transform: translateY(0); |
This file contains 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
$('.backtotop').click(function () { | |
$("html, body").animate({ | |
scrollTop: 0 | |
}, 600); | |
return false; | |
});; $(document).scroll(function(){ | |
$('.navbar').toggleClass('scrolled', $(this).scrollTop() > 1); | |
$('.backtotop').toggleClass('scrolled', $(this).scrollTop() > 1); | |
}); |
NewerOlder