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
jQuery('a').on('click', function(event){ | |
event.preventDefault(); | |
/* other stuff */ | |
}) |
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
/* do not group these rules */ | |
*::-webkit-input-placeholder { | |
color: red; | |
} | |
*:-moz-placeholder { | |
/* FF 4-18 */ | |
color: red; | |
} | |
*::-moz-placeholder { | |
/* FF 19+ */ |
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
jQuery(document).on('click', 'a[href*="#"]:not([href="#"])', function(e) { | |
if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') && location.hostname === this.hostname) { | |
var target = jQuery(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { |
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.userAgent.search("Safari") >= 0 && navigator.userAgent.search("Chrome") < 0) | |
{ | |
alert("Browser is Safari"); | |
} |
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
<ul class="skew"> | |
<li><a href="#">Test</a> | |
</li> | |
<li><a href="#">Test 2</a> | |
</li> | |
</ul> | |
.skew { | |
overflow: hidden; | |
width: 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
display: flex; | |
align-items: center; | |
/* for Safari 8 */ | |
display: -webkit-flex; | |
-webkit-align-items:center; |
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
&:after, &:before{ | |
content: ''; | |
display: table; | |
} | |
&:after{ | |
clear: both; | |
} |
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
/* set height for mobile menu */ | |
var headerHeight = 80; | |
jQuery('.navbar-toggle').on('click', function(){ | |
jQuery('.navbar-collapse').delay(400).queue(function(next){ | |
jQuery(this).css('height', window.innerHeight-headerHeight); | |
next(); | |
}); | |
}) | |
<div class="collapse navbar-collapse" id="navbar-collapse-1"> |
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
<meta name="format-detection" content="telephone=no"> |
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
.modal-backdrop.in { | |
opacity: 0.9; | |
background-color: black; | |
} |
OlderNewer