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
/*========== Desktop First Method ==========*/ | |
/* Large Devices, Wide Screens */ | |
@media only screen and (max-width : 1200px) { | |
} | |
/* Medium Devices, Desktops */ | |
@media only screen and (max-width : 992px) { |
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
//Chrome Smooth Scroll | |
try { | |
$.browserSelector(); | |
if($("html").hasClass("chrome")) { | |
$.smoothScroll(); | |
} | |
} catch(err) { | |
}; |
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
ffmpeg -f alsa -ac 2 -i default -f x11grab -r 60 -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}') -s 1366x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -threads 0 output.mkv |
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
$(".scroll-next").click(function() { | |
var cls = $(this).closest(".section").next().offset().top; | |
$("html, body").animate({scrollTop: cls}, "slow"); | |
}); |
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
//Active menu | |
$("li a").each(function() { | |
if (this.href == window.location.href) { | |
$(this).addClass("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
SASS: | |
.mfp-ready .mfp-figure | |
opacity: 0 | |
.mfp-zoom-in | |
.mfp-figure, .mfp-iframe-holder .mfp-iframe-scaler | |
opacity: 0 | |
transition: all 0.3s ease-out | |
transform: scale(0.95) | |
&.mfp-bg, .mfp-preloader | |
opacity: 0 |
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
//Аякс отправка форм | |
//Документация: http://api.jquery.com/jquery.ajax/ | |
$("#form, #form2").submit(function(e) { | |
e.preventDefault; | |
$.ajax({ | |
type: "POST", | |
url: "mail.php", | |
data: $(this).serialize() | |
}).done(function() { | |
alert("Спасибо за заявку!"); |
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 src = "___library/7-kazan/1/*"; | |
var dst = "_ready"; | |
var gulp = require('gulp'), | |
imagemin = require('gulp-imagemin'), | |
cache = require('gulp-cache'), | |
del = require('del'), | |
imageResize = require('gulp-image-resize'), | |
watermark = require("gulp-watermark"), | |
rename = require("gulp-rename"); |