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 (){ | |
$("#scrollup").hide(); | |
$(window).scroll(function (){ | |
if ($(this).scrollTop() > 700){ | |
$("#scrollup").fadeIn(500); | |
} else{ | |
$("#scrollup").fadeOut(500); | |
} | |
}); |
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() { | |
var scrollTop = 0; | |
$(window).on('scroll', function() { | |
var scrollNow = $(window).scrollTop(); | |
if(scrollNow > scrollTop && scrollNow > 20){ | |
$('.header').addClass('setout'); | |
} else { | |
$('.header').removeClass('setout'); |
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
Preferences -> Package Settings -> LiveReload -> Settings User | |
{ | |
"enabled_plugins": [ | |
"SimpleReloadPlugin", | |
"SimpleRefresh" | |
] | |
} | |
http://livereload.com/extensions/ |
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
<script> | |
$('.fotorama') | |
.on('fotorama:fullscreenenter fotorama:fullscreenexit', function (e, fotorama) { | |
if (e.type === 'fotorama:fullscreenenter') { | |
// Options for the fullscreen | |
fotorama.setOptions({ | |
fit: 'cover' | |
}); | |
} 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
$('a[href^="#"]').click(function(){ | |
//Сохраняем значение атрибута href в переменной: | |
var target = $(this).attr('href'); | |
$('html, body').animate({scrollTop: $(target).offset().top}, 800); | |
return false; | |
}); |
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
<div class="nav"> | |
<nav class="cvu-navigation"> | |
<ul class="navigation"> | |
<li class="active"><a href="#">Послуги</a></li> | |
<li><a href="#">Акції</a></li> | |
<li><a href="#">Галерея</a></li> | |
<li><a href="#">Жалюзі та ролети</a></li> | |
<li><a href="#">Натяжні стелі</a></li> | |
<li><a href="#">Ковані вироби</a></li> | |
<li><a href="#">Статті</a></li> |
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
if ($_SERVER['REMOTE_ADDR'] == '91.199.194.247') { | |
тут писати | |
} |
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 fixedHeader() { | |
var | |
boss = $(window), | |
y = boss.scrollTop(); | |
if (y > (218)) { | |
$('.header-fixed-wrapper').fadeIn(200); | |
} else { | |
$('.header-fixed-wrapper').fadeOut(100); | |
} | |
} |
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).click(function(e){ | |
if ($(e.target).closest("#header-search #search_mini_form").length) return; | |
$('#header-search #search_mini_form').removeClass('active'); | |
e.stopPropagation(); | |
}); | |
АБО | |
OlderNewer