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
// Engine/OS | |
var is_iPhone = navigator.platform.indexOf('iPhone') >= 0; | |
var is_iPad = navigator.platform.indexOf('iPad') >= 0; | |
var is_iOS = this.is_iPhone || this.is_iPad; | |
var is_iOS5 = this.is_iOS && window.navigator.appVersion.indexOf('OS 5_') >= 0; | |
var is_webkit = 'webkitRequestAnimationFrame' in window; | |
var is_win = navigator.appVersion.indexOf("Win") >= 0; | |
var is_mac = navigator.appVersion.indexOf("Mac") >= 0; | |
// Features |
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
function getURLParams() { | |
var i = 0, | |
params = {}, | |
tmpParam = [], | |
pairs = window.location.href | |
.slice(window.location.href.indexOf('?') + 1) | |
.replace(window.location.hash, '') | |
.split('&'); | |
for(; i < pairs.length; i++) { |
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
<img src="http://dummyimage.com/254x403/ccc/000.jpg&text=254x403+-+Produkt" data-hover="http://dummyimage.com/254x403/999/000.jpg&text=254x403+-+Produkt" alt="" /> |
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
<a href="#"> | |
<img src="http://dummyimage.com/254x403/ccc/000.jpg&text=254x403+-+Produkt" data-hover="http://dummyimage.com/254x403/999/000.jpg&text=254x403+-+Produkt" alt="" /> | |
</a> |
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
figure { | |
display: inline-block; | |
position: relative; | |
margin: 0; | |
padding: 0; | |
img { | |
display: block; | |
&:last-child { |
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
$('.goto-top').on( | |
'click', | |
function(e){ | |
e.preventDefault(); | |
$('html, body').animate( { scrollTop: 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
$('.goto-element').on( | |
'click', | |
function(e) { | |
e.preventDefault(); | |
var go = $(this).attr('href'), | |
position = $(go).position(); | |
$('html, body').animate( { scrollTop: position.top } ); | |
} |
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>document.documentElement.className = (document.documentElement.className !== "") ? "has-js " + document.documentElement.className : "has-js";</script> |
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
/* | |
Placeholder für MSIE/Opera | |
@param mode => only needed for e.g. responsive sites, | |
if sometimes placeholders should be shown and sometimes not or the placeholder changed in runtime | |
mode === 'hide' => add behavior, events and so on, but show no placeholder right now | |
mode === 'update' => update placeholders which were updated in runtime | |
*/ | |
var placeholder = function( hidePlaceholder ) { |
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
<html class="ie8"> | |
<head> | |
<!--[if (gte IE 6)&(lte IE 8)]> | |
<script src="js/libs/selectivizr.min.js" type="text/javascript" id="selectivizr"></script> | |
<![endif]--> | |
</head> | |
<body> | |
</body> |
OlderNewer