Commit e4cc30fb by Semenenko Timofey

Полсдений пулл правок для keyup

1 parent 3153d33e
Pipeline #3087 for e4cc30fb skipped in 0 seconds
......@@ -25,6 +25,9 @@ $(document).ready(function() {
}
});
var owl =false;
$(function(){
function show_prev(index , item) {
......@@ -33,7 +36,7 @@ $(function(){
if (bg) item.css( {'background-image' : 'url('+bg+')'} );
/* $('.project-gallery-item:lt('+index+')').each(function(){
/* $('.project-gallery-item:lt('+index+')').each(function(){
var bg = $(this).attr('data-original');
......@@ -127,7 +130,9 @@ $(function(){
})
//инициализайия и настройка слайдера в карточке проектоа
var owl = $('.project_slider')
owl = $('.project_slider');
owl.on('initialized.owl.carousel', function(event) {
......@@ -233,6 +238,21 @@ $(function(){
})
$(document).keyup(function(event){
if (event.keyCode == 37) {
owl.trigger('prev.owl.carousel');
}
if (event.keyCode == 39) {
owl.trigger('next.owl.carousel');
}
});
$(document).keypress(function() {
debugger;
});
// Переход к слайду с планировкой
$('.js-slide-to-layout').click(function(event) {
......@@ -452,7 +472,7 @@ $(document).ready(function() {
// вызов
printNumbersTimeout();
});
});
$(".project-gallery-items").click(function() {
function printNumbersTimeout() {
......@@ -647,14 +667,3 @@ $(document).on('click', "#close",function() {
window.location.replace("https://shold.dev5.ashmanov.com/projects/");
});
})(jQuery);
......@@ -33,7 +33,7 @@ if($detect->isMobile() && !$detect->isTablet()){?>
<? if (isset($_COOKIE['mobile']) and $_COOKIE['mobile']=="no") { ?><a class="author" href="" onclick="SetCookie('mobile=yes', 0);">На мобильную версию</a><? }else{ ?> <a class="author" href="" onclick="SetCookie('mobile=no', 30);">На полную версию</a><? } ?>
<a class="author">Stroy House</a>
<span><a class="menus">info@s-h.ru</a><a class="menu">+7 (495) 645–44–30</a></span>
<a class="author">Россия, Москва, Селивёрстов переулок, 1А</a>
<!--<a class="author">Россия, Москва, Селивёрстов переулок, 1А</a>-->
<?}else{?>
<?}?>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!