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
// toggle class with block | |
$('[data-toggle]').on('click', function(){ | |
$(this).toggleClass('active'); | |
$(''+ $(this).attr('data-toggle') +'').toggleClass('active'); | |
}); |
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).mouseup(function(e) { | |
if (langList.has(e.target).length === 0 && currentLang.has(e.target).length === 0) { | |
langList.slideUp('500'); | |
currentLang.removeClass('open'); | |
langList.removeClass('active'); | |
} | |
}); |
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 isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); | |
}, | |
iOS: function() { | |
return navigator.userAgent.match(/iPhone|iPad|iPod/i); |
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
// toggle class active | |
$('[data-toggle]').on('click', function(){ | |
$(this).toggleClass('active'); | |
$(''+ $(this).attr('data-toggle')+'').toggleClass('active'); | |
}); |
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
&-btn { | |
position: relative; | |
background: none; | |
border: none; | |
width: 36px; | |
height: 23px; | |
padding: 0; | |
@include transition(all 0.2s ease-in-out); | |
* { | |
display: block; |