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
window.addEventListener('resize', test); | |
var pageWidth; | |
var sliderBlock = document.querySelector(".swiper-slide-active"); | |
function test(){ | |
pageWidth = document.documentElement.clientWidth; | |
if(pageWidth < 640){ | |
console.log("640<"); | |
remClassFunc(); |
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
jQuery(document).ready(function($) { | |
$('.gallery-popup').hide().css('opacity', '1'); | |
$('.section1galery .swiper-slide').click(function(event) { | |
console.log('gallery item '+ $(this).index()); | |
var _src = $(this).find('img').attr('src'); | |
$('.section1galery .left_choreoraphy img') | |
.attr({ |
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
.reviuews-bottom:before, | |
.reviuews-bottom:after { | |
content: ''; | |
position: absolute; | |
left: 0; | |
right: 0; | |
bottom: 100%; | |
z-index: 5; | |
} | |
.reviuews-bottom: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
.sp-megamenu-parent .sp-dropdown li.sp-menu-item:hover >a { | |
background-color: #0063c0; | |
color: #fff !important; | |
} | |
/*.sp-megamenu-parent .sp-dropdown li.sp-menu-item >a:hover { | |
background-color: #0063c0; | |
color: #fff !important; | |
}*/ |
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 galleryBlock = document.querySelector("#gallery"); | |
var oldImgBlock = document.querySelector(".Collage") | |
var sliderImagesArray = document.querySelectorAll(".Collage .Image_Wrapper"); | |
function addSlide(){ | |
var newSlide = document.createElement("div"); | |
galleryBlock.appendChild(newSlide); | |
newSlide.classList.add("swiper-slide"); | |
} | |
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
first = document.querySelector('.title').innerHTML; | |
alert(first.substring(0, first.length - 1)); |
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
$('html, body').animate({ | |
scrollTop: $("#target-element").offset().top | |
}, 1000); | |
$('a').click(function(){ | |
let href = $(this).attr('href'), | |
elem = $(href).offset().top; | |
$('html, body').animate({scrollTop: elem}, 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
jQuery(function($) { | |
$('.sscf-popup').click(function() { | |
$('.mypopup').insertAfter('.row'); | |
}); | |
}); |
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 box = $('#box'); | |
$('button').on('click', function () { | |
if (box.hasClass('hidden')) { | |
box.removeClass('hidden'); | |
setTimeout(function () { | |
box.removeClass('visuallyhidden'); | |
}, 20); | |
} else { | |
box.addClass('visuallyhidden'); | |
box.one('transitionend', function(e) { |
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
img { | |
transition: transform .6s cubic-bezier(.68,-.55,.265,1.55),-webkit-transform .6s cubic-bezier(.68,-.55,.265,1.55); | |
} | |
img:hover { | |
-webkit-transform: rotate(180deg); | |
transform: rotate(180deg); | |
} |