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).scroll(function () { | |
if ($(this).scrollTop() > 150) { | |
$('.scroll-top').fadeIn(400); | |
} | |
else { | |
$('.scroll-top').fadeOut(400); | |
} | |
}); | |
$('.scroll-top').click(function () { | |
$('body, html').animate({ |
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
$('<span>+</span>').insertAfter('li.menu-item-has-children a'); | |
$("li.menu-item-has-children").click(function() { | |
$(this).find('span').text(function(i, text) { | |
return text === "+" ? "-" : "+"; | |
}) | |
}); |
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 $overlay = $('.overlay'); | |
var $lightbox = $('.lightbox'); | |
$('#elementId').click(function(event) { | |
$overlay.fadeIn(300); | |
$lightbox.fadeIn(300); | |
event.preventDefault(); | |
}); |
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
.overlay | |
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.7) | |
display: none | |
height: 100% | |
left: 0 | |
position: fixed | |
text-align: center | |
top: 0 | |
width: 100% | |
z-index: 10000 |
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).on('load', function() { | |
$(".loader_inner").fadeOut(300); | |
$(".loader").fadeOut(300); | |
}); |
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
.loader | |
background: none repeat scroll 0 0 #ffffff | |
bottom: 0 | |
height: 100% | |
left: 0 | |
position: fixed | |
right: 0 | |
top: 0 | |
width: 100% | |
z-index: 9999 |
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
<button class="toggle-mnu"> | |
<span class="sandwich"> | |
<span class="sw-topper"></span> | |
<span class="sw-bottom"></span> | |
<span class="sw-footer"></span> | |
</span> | |
</button> |
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
.toggle-mnu | |
width: 60px | |
height: 50px | |
position: absolute | |
z-index: 100 | |
border: none | |
right: 20px | |
top: 9px | |
background-color: #1b1464 | |
display: none |
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
$('.toggle-mnu').on('click', function() { | |
$('.sandwich').toggleClass('active'); | |
$('nav ul').slideToggle(); | |
}); |
OlderNewer