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
var phoneRegExp = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/; |
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
/* Update: 5/3/14 - supports IE9+, FF3.5+, Opera9.5+ */ | |
@mixin retina($query: null, $density: 2) { | |
$dpi: $density * 96; | |
/* Accepts optional @media query conditions */ | |
@if $query { | |
$query: "and (#{$query})"; | |
} | |
@else { |
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
/* Parent Element */ | |
#background-container { | |
height: 100%; | |
min-height: 100%; | |
width: 100%; | |
position: relative; | |
background: black; | |
} | |
/* Child Element */ |
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
// Determine the supported pointer event, whether click or touch ect. | |
function supportedClickEvent() { | |
var supportedEvent = 'click'; | |
if( 'ontouchstart' in window ) { | |
supportedEvent = 'touchstart'; | |
} | |
else if( window.navigator.msPointerEnabled ) { | |
supportedEvent = 'MSPointerDown'; | |
} |
NewerOlder