Commit b1307a3b by Semenenko Timofey

button

1 parent abf07309
Pipeline #2819 for b1307a3b skipped in 0 seconds
...@@ -6954,4 +6954,7 @@ cursor:pointer; ...@@ -6954,4 +6954,7 @@ cursor:pointer;
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIiB3aWR0aD0iMTQiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNCAxNiI+PGRlZnM+PHN0eWxlPi5jbHMtMSB7IGZpbGw6ICNmZmY7IGZpbGwtcnVsZTogZXZlbm9kZDsgfTwvc3R5bGU+PC9kZWZzPjxwYXRoIGQ9Ik02LjcwOCAyLjc5NkMzLjI1OCAyLjk5LjU5NCA1Ljc1Ni41OTQgOS4xNWMwIDMuNTIgMi45NDIgNi4zNzMgNi41NzIgNi4zNzNzNi41NzItMi44NTMgNi41NzItNi4zNzNsLTEuNzYzLjA2YzAgMi42NDgtMi4yMTQgNC43OTQtNC45NDQgNC43OTRTMi4wODggMTEuODU4IDIuMDg4IDkuMjFjMC0yLjUgMi4xMTgtNC41NSA0LjYzOC00Ljc3MmwuMDM2IDMuMTY0IDQuMDA2LTMuODg0TDYuNzYtLjAyMiA2LjcxIDIuNzk1eiIgY2xhc3M9ImNscy0xIi8+PC9zdmc+'); background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIiB3aWR0aD0iMTQiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNCAxNiI+PGRlZnM+PHN0eWxlPi5jbHMtMSB7IGZpbGw6ICNmZmY7IGZpbGwtcnVsZTogZXZlbm9kZDsgfTwvc3R5bGU+PC9kZWZzPjxwYXRoIGQ9Ik02LjcwOCAyLjc5NkMzLjI1OCAyLjk5LjU5NCA1Ljc1Ni41OTQgOS4xNWMwIDMuNTIgMi45NDIgNi4zNzMgNi41NzIgNi4zNzNzNi41NzItMi44NTMgNi41NzItNi4zNzNsLTEuNzYzLjA2YzAgMi42NDgtMi4yMTQgNC43OTQtNC45NDQgNC43OTRTMi4wODggMTEuODU4IDIuMDg4IDkuMjFjMC0yLjUgMi4xMTgtNC41NSA0LjYzOC00Ljc3MmwuMDM2IDMuMTY0IDQuMDA2LTMuODg0TDYuNzYtLjAyMiA2LjcxIDIuNzk1eiIgY2xhc3M9ImNscy0xIi8+PC9zdmc+');
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
}
.project-gallery-items.mobile{
display: show;
} }
\ No newline at end of file \ No newline at end of file
This diff could not be displayed because it is too large.
...@@ -41,7 +41,7 @@ $(document).ready(function() { ...@@ -41,7 +41,7 @@ $(document).ready(function() {
if (bg) $(this).css( {'background-image' : 'url('+bg+')'} ); if (bg) $(this).css( {'background-image' : 'url('+bg+')'} );
}) })
*/ */
} }
...@@ -60,18 +60,18 @@ $(document).ready(function() { ...@@ -60,18 +60,18 @@ $(document).ready(function() {
//toggle мобильного меню //toggle мобильного меню
$('.mobile_menu_wrap').click(function(){ $('.mobile_menu_wrap').click(function(){
$(this).find('.main-menu').toggleClass('opened-xs-menu'); $(this).find('.main-menu').toggleClass('opened-xs-menu');
$('header.header').toggleClass('opened-menu-header'); $('header.header').toggleClass('opened-menu-header');
$('body').toggleClass('noscroll-body'); $('body').toggleClass('noscroll-body');
}); });
//слайд тоггл ссылок мобильного меню на мобильных устройствах //слайд тоггл ссылок мобильного меню на мобильных устройствах
$('.main-menu-item a').click(function(){ $('.main-menu-item a').click(function(){
if ($(window).width() < 992) { if ($(window).width() < 992) {
$(this).next('ul').slideToggle(); $(this).next('ul').slideToggle();
...@@ -87,25 +87,25 @@ $(document).ready(function() { ...@@ -87,25 +87,25 @@ $(document).ready(function() {
$('#previewer_toggle').click(function(event){ $('#previewer_toggle').click(function(event){
if ($(window).width() < 992) { if ($(window).width() < 992) {
$('body').toggleClass('previewer'); $('body').toggleClass('previewer');
} }
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
}) })
//отключение режима просмотра в карточке проекта //отключение режима просмотра в карточке проекта
$('#object_head_gal').on('click' , function(){ $('#object_head_gal').on('click' , function(){
$('body').removeClass('previewer'); $('body').removeClass('previewer');
}) })
//инициализайия и настройка слайдера в карточке проектоа //инициализайия и настройка слайдера в карточке проектоа
var owl = $('.project_slider') var owl = $('.project_slider')
owl.on('initialized.owl.carousel', function(event) { owl.on('initialized.owl.carousel', function(event) {
...@@ -135,14 +135,14 @@ $(document).ready(function() { ...@@ -135,14 +135,14 @@ $(document).ready(function() {
video_opened.play(); video_opened.play();
} else { } else {
show_prev (slide_num , item); show_prev (slide_num , item);
} }
owl.trigger('to.owl.carousel', slide_num); owl.trigger('to.owl.carousel', slide_num);
} }
return false; return false;
...@@ -158,12 +158,12 @@ $(document).ready(function() { ...@@ -158,12 +158,12 @@ $(document).ready(function() {
if ($(window).width()/event.clientX > 2) { if ($(window).width()/event.clientX > 2) {
$('#cursor_inside').removeClass('right_cursor'); $('#cursor_inside').removeClass('right_cursor');
} else { } else {
$('#cursor_inside').removeClass('left_cursor'); $('#cursor_inside').removeClass('left_cursor');
$('#cursor_inside').addClass('right_cursor'); $('#cursor_inside').addClass('right_cursor');
} }
}) })
...@@ -176,7 +176,7 @@ $(document).ready(function() { ...@@ -176,7 +176,7 @@ $(document).ready(function() {
itemsTablet : [768,1], itemsTablet : [768,1],
itemsMobile : [700,1], itemsMobile : [700,1],
navigation : false, navigation : false,
pagination : false, pagination : false,
navigationText : false, navigationText : false,
video : true video : true
...@@ -200,14 +200,14 @@ $(document).ready(function() { ...@@ -200,14 +200,14 @@ $(document).ready(function() {
}) })
// Перелистывание слайдов в слайдере // Перелистывание слайдов в слайдере
$('#cursor').click(function() { $('#cursor').click(function() {
if ($('#cursor_inside').attr('class') == 'right_cursor') { if ($('#cursor_inside').attr('class') == 'right_cursor') {
owl.trigger('next.owl.carousel'); owl.trigger('next.owl.carousel');
} else owl.trigger('prev.owl.carousel'); } else owl.trigger('prev.owl.carousel');
}) })
...@@ -221,12 +221,12 @@ $(document).ready(function() { ...@@ -221,12 +221,12 @@ $(document).ready(function() {
//var index = $('.project_slider').find('li').index($('._plan')); //var index = $('.project_slider').find('li').index($('._plan'));
var index = $(this).attr('data-image'); var index = $(this).attr('data-image');
owl.trigger('to.owl.carousel', index) owl.trigger('to.owl.carousel', index)
var item = $('.project-gallery-item').eq(index); var item = $('.project-gallery-item').eq(index);
show_prev(index , item); show_prev(index , item);
return false; return false;
...@@ -262,7 +262,7 @@ $(document).ready(function() { ...@@ -262,7 +262,7 @@ $(document).ready(function() {
show_prev(index , item); show_prev(index , item);
} }
history.replaceState(null, null, window.location.pathname); history.replaceState(null, null, window.location.pathname);
...@@ -297,7 +297,7 @@ $(document).ready(function() { ...@@ -297,7 +297,7 @@ $(document).ready(function() {
$(this).toggleClass('active_search'); $(this).toggleClass('active_search');
setTimeout(function(){ setTimeout(function(){
$('#header_search').focus(); $('#header_search').focus();
} , 200) } , 200)
}) })
...@@ -310,7 +310,7 @@ $(document).ready(function() { ...@@ -310,7 +310,7 @@ $(document).ready(function() {
$('#header_search').on('keyup',function(event){ $('#header_search').on('keyup',function(event){
var self = $(this); var self = $(this);
var data = $(this).val(); var data = $(this).val();
if ( event.keyCode != 40 && event.keyCode != 38 && event.keyCode != 13) { if ( event.keyCode != 40 && event.keyCode != 38 && event.keyCode != 13) {
$.ajax({ $.ajax({
...@@ -320,7 +320,7 @@ $(document).ready(function() { ...@@ -320,7 +320,7 @@ $(document).ready(function() {
dataType: 'json', dataType: 'json',
success: function(result){ success: function(result){
$('#result_list').addClass('active_res_list').html(result.text); $('#result_list').addClass('active_res_list').html(result.text);
} }
...@@ -330,7 +330,7 @@ $(document).ready(function() { ...@@ -330,7 +330,7 @@ $(document).ready(function() {
var items = $('#result_list').find('li'); var items = $('#result_list').find('li');
var index = items.index($('.active_res_item')); var index = items.index($('.active_res_item'));
if (event.keyCode == 40) { if (event.keyCode == 40) {
...@@ -348,7 +348,7 @@ $(document).ready(function() { ...@@ -348,7 +348,7 @@ $(document).ready(function() {
} else index = index - 1; } else index = index - 1;
} }
items.each(function(){ items.each(function(){
...@@ -367,7 +367,7 @@ $(document).ready(function() { ...@@ -367,7 +367,7 @@ $(document).ready(function() {
} }
}) })
//тоггл инфо о проекте в карте //тоггл инфо о проекте в карте
$('.map-text-toggler').click(function(){ $('.map-text-toggler').click(function(){
$(this).closest('.map-project-text-wrap').find('.map-project-text').slideToggle(); $(this).closest('.map-project-text-wrap').find('.map-project-text').slideToggle();
...@@ -375,7 +375,7 @@ $(document).ready(function() { ...@@ -375,7 +375,7 @@ $(document).ready(function() {
else $(this).text('Читать полностью'); else $(this).text('Читать полностью');
}) })
}) })
...@@ -93,7 +93,7 @@ $prevNum = 0; ?> ...@@ -93,7 +93,7 @@ $prevNum = 0; ?>
<span class="project-gallery-num-total js-total"><?= count($arImage['images']) ?></span> <span class="project-gallery-num-total js-total"><?= count($arImage['images']) ?></span>
</div> </div>
<ul data-fancybox class="project_slider"> <ul class="project_slider">
<? foreach($arImage['images'] as $img) { <? foreach($arImage['images'] as $img) {
$ext = end(explode('.', $img->getUrl())); $ext = end(explode('.', $img->getUrl()));
......
...@@ -74,9 +74,7 @@ if($detect->isMobile() || $detect->isTablet()){?> ...@@ -74,9 +74,7 @@ if($detect->isMobile() || $detect->isTablet()){?>
<script>if (screen.width<=768) {document.write('<link rel="stylesheet" href="/css/main.css?<?=filemtime(BASE_PATH . '/css/main.css')?>" id="pre_load">');document.body.style.display="block";}</script> <script>if (screen.width<=768) {document.write('<link rel="stylesheet" href="/css/main.css?<?=filemtime(BASE_PATH . '/css/main.css')?>" id="pre_load">');document.body.style.display="block";}</script>
<link rel="stylesheet" type='text/css' href="/css/flaticon.css"> <link rel="stylesheet" type='text/css' href="/css/flaticon.css">
<link rel="stylesheet" type='text/css' href="/css/media.css" > <link rel="stylesheet" type='text/css' href="/css/media.css" >
<!--<link rel="stylesheet" href="/css/fansy3.2.1.css" />--> <!-- Add mousewheel plugin (this is optional) -->
<!--<script src="//code.jquery.com/jquery-3.2.1.min.js"></script>-->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.js"></script>-->
<script> <script>
//Ставим Куки //Ставим Куки
...@@ -123,6 +121,14 @@ $(document).ready(function() { ...@@ -123,6 +121,14 @@ $(document).ready(function() {
}); });
}); });
</script> --> </script> -->
<script>
$(document).ready(function() {
$(".project-gallery-items").fancybox({
openEffect : 'show',
closeEffect : 'show'
});
});
</script>
<script> <script>
$(window).scroll(function() { $(window).scroll(function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!