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
// ============================================================================ | |
// Gallery filters moving on hover underline | |
// ============================================================================ | |
function init_gallery_filters_underline() | |
{ | |
$('.gallety-filters >li:not(.gf-underline)').hover(function(){ | |
go_to_item($(this)); | |
},function(){ | |
go_to_item($(this).siblings('.active')); |
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
/* Small Devices, Tablets */ | |
@media only screen and (max-width : 768px) { | |
.animated { | |
/*CSS transitions*/ | |
-o-transition-property: none !important; | |
-moz-transition-property: none !important; | |
-ms-transition-property: none !important; | |
-webkit-transition-property: none !important; | |
transition-property: none !important; | |
/*CSS transforms*/ |
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
JS: | |
$(".accordeon dd").hide().prev().click(function() { | |
$(this).parents(".accordeon").find("dd").not(this).slideUp().prev().removeClass("active"); | |
$(this).next().not(":visible").slideDown().prev().addClass("active"); | |
}); | |
CSS: | |
.accordeon .active { color: red } | |
HTML: |
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
//Цели для Яндекс.Метрики и Google Analytics | |
$(".count_element").on("click", (function() { | |
ga("send", "event", "goal", "goal"); | |
yaCounterXXXXXXXX.reachGoal("goal"); | |
return true; | |
})); |
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
//Animate CSS + WayPoints javaScript Plugin | |
//Example: $(".element").animated("zoomInUp"); | |
//Author URL: http://webdesign-master.ru | |
(function($) { | |
$.fn.animated = function(inEffect) { | |
$(this).css("opacity", "0").addClass("animated").waypoint(function(dir) { | |
if (dir === "down") { | |
$(this).addClass(inEffect).css("opacity", "1"); | |
}; | |
}, { |
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
//Easy Form Validator | |
//Example: $("form").evalid("Error message"); | |
//Author URL: http://webdesign-master.ru | |
(function($) { | |
$.fn.evalid = function(req_text) { | |
$(this).find("input[type], textarea").each(function() { | |
$(this).after("<p class='form_error_message'>" + req_text + "").next().hide(); | |
}); |
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
<!-- Google Map API --> | |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOU-API-KEY&sensor=false"></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
$("img").on("dragstart", function(event) { 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
var $container = $(".masonry-container"); | |
$container.imagesLoaded(function () { | |
$container.masonry({ | |
columnWidth: ".item", | |
itemSelector: ".item" | |
}); | |
}); |
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
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; |