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
( function ( sR, $ ) { | |
sR.ACCORDION = { | |
// set the default options | |
//defaults: {}, | |
init: function ( /*options*/) { |
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
function touchActionOnSecondTap ( oElem ) { | |
oElem.on( | |
'touchend', | |
function ( e ) { | |
var elem = $( this ); | |
if ( elem.data( 'clicked_once' ) ) { | |
// element has been tapped (hovered), reset 'clicked_once' data flag and return true | |
elem.data( 'clicked_once', false ); |
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
( function ( $ ) { | |
$.fn.isOnScreen = function () { | |
var win = $( window ), | |
bounds = this.offset(), | |
viewport = { | |
top: win.scrollTop(), | |
left: win.scrollLeft() | |
}; |
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
function cssAni ( mode, elem ) { | |
var show = function () { | |
// timeout nötig für Fx => sonst kein transition-Event | |
setTimeout( function () { | |
elem.addClass( 'transition visible' ); | |
}, 100 ); | |
}; |
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
function supports ( prop ) { | |
var div = document.createElement( 'div' ), | |
vendors = 'Khtml Ms O Moz Webkit'.split( ' ' ), | |
len = vendors.length; | |
if ( prop in div.style ) { | |
return true; | |
} |
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
function getScrollbarWidth() { | |
var scrollbarWidth, | |
scrollDiv = $('<div />') | |
.css({ | |
width: '100%', | |
height: '100%', | |
overflow: 'scroll', | |
position: 'absolute', | |
top: '-9999px' |
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
if(navigator.standalone === undefined || !!navigator.standalone) { | |
// if added to home screen do this | |
} else { | |
// if opened in mobile safari do this | |
} |
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
# Require any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "css" | |
sass_dir = "css" | |
images_dir = "img" | |
javascripts_dir = "js" | |
fonts_dir = "fonts" |
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
/* inspired by Boilerplate, Normalize.css and own thinking :-) */ | |
/* @group BASE */ | |
* { | |
position: relative; | |
margin: 0; | |
padding: 0; | |
//outline: 0 none; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; |
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
/* @group Mixins */ | |
@mixin box-sizing($sizing: content-box) { | |
-webkit-box-sizing: $sizing; | |
-moz-box-sizing: $sizing; | |
box-sizing: $sizing; | |
} | |
@mixin rotate($rotate: -90deg) { | |
-webkit-transform: rotate($rotate); |
NewerOlder