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
/* -------------------------------------------- | |
basic float grid | |
-------------------------------------------- */ | |
.row { | |
margin-left: -15px; | |
margin-right: -15px; | |
} | |
.row::before, |
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
function clock() { | |
var d = new Date(); | |
var month_num = d.getMonth() | |
var day = d.getDate(); | |
var hours = d.getHours(); | |
var minutes = d.getMinutes(); | |
var seconds = d.getSeconds(); | |
month=new Array("01", "02", "03", "04", "05", "06", | |
"07", "08", "09", "10", "11", "12"); |
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 video_kitchen = $('#video_kitchen'); | |
$('#custom_play_kitchen').on("click", function(){ | |
$('#video_wrap_kitchen').toggleClass('active'); | |
if(video_kitchen[0].paused) { | |
video_kitchen[0].play(); | |
} | |
else { |
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 | |
$(window).on("scroll", function(){ | |
if ($(this).scrollTop() > 100) { | |
$('.btn_scrollup').fadeIn(); | |
} else { | |
$('.btn_scrollup').fadeOut(); | |
} | |
}); |
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
// sticky | |
function asideSticky() { | |
// body... | |
var asideItem = $('.aside_navigation'), | |
asideItemOffset = asideItem.offset().top; | |
$(window).scroll(function(){ | |
if( $(this).scrollTop() > asideItemOffset ){ | |
asideItem.addClass('sticky'); |
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
// ========================================================================== | |
// Spy category | |
// ========================================================================== | |
if (screen.width <= 720) { | |
function spyCategory() { | |
$('.spy_category_item').each( function () { |
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
$(document).ready(function(){ | |
if($("#include_header").length){ | |
$("#include_header").load("include/header.html"); | |
}; | |
if($("#include_header").length){ | |
$.get('header.html',function(response){ | |
$('#header').html(response); |
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
Если e.target - это тот же самый элемент, что и this, вы не нажали на потомка. | |
$('.foobar').on('click', function(e) { | |
if (e.target !== this){ | |
return; | |
}; | |
alert( 'clicked the foobar' ); |
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
self.jqueryExtend(); | |
/* | |
* | |
* | |
* Accordion | |
* | |
*/ |
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
/** | |
** nextOpen | |
**/ | |
accordion: function(){ | |
var self = this; | |
$(".set > a").on("click", function(){ |