Синхронизация настроек Sublime Text 3
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
<div class="wrap"> | |
<div class="wrap-inner"> | |
<div class="swiper-outter"> | |
<div id="video-swiper" class="swiper-container"> | |
<div class="swiper-wrapper"> | |
<div class="swiper-slide"> | |
<div class="video-container"> | |
<div class="yt-player" data-id="MxBRpWcXeOA"></div> |
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
$(window).scroll(function() { | |
var st = $(this).scrollTop() /10; | |
$(".object").css({ | |
"transform" : "translate3d(0px, " + st + "%, .01px)", | |
"-webkit-transform" : "translate3d(0px, " + st + "%, .01px)" | |
}); | |
}); |
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
$(window).scroll(function() { | |
var st = $(this).scrollTop(); | |
if($(window).height()+500 > $("header").height()) { | |
$("header .col-md-12").css({ | |
"transform" : "translate3d(0px, " + st /18 + "%, 0px)", | |
"-webkit-transform" : "translate3d(0px, " + st /18 + "%, 0px)", | |
"opacity" : "1" - st/700 | |
}); |
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
//Active menu | |
$("li a").each(function() { | |
if (this.href == window.location.href) { | |
$(this).addClass("active"); | |
} | |
}); |
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
$(".scroll-next").click(function() { | |
var cls = $(this).closest(".section").next().offset().top; | |
$("html, body").animate({scrollTop: cls}, "slow"); | |
}); |
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
$(".city-input").keyup(function() { | |
filter(this); | |
}); | |
function filter(element) { | |
var value = $(element).val().toLowerCase(); | |
$("[data-filter]").each(function () { | |
var $this = $(this), | |
lower = $this.data("filter").toLowerCase(); | |
if (lower.indexOf(value) > -1) { | |
$this.show(); |
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
//Resize Window | |
function onResize() { | |
}; | |
var doit; | |
doit = setTimeout(onResize, 400); | |
window.onresize = function() { | |
clearTimeout(doit); | |
doit = setTimeout(onResize, 400); | |
}; |