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() { | |
var location = document.location.pathname; | |
var filterOption = '_text_'; | |
if (location.indexOf(filterOption) > -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
$('div').html($('div').html().replace('text','')); | |
$('div').html($('div').html().replace(/"/g,'')); |
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 tag = document.createElement('script'); | |
tag.src = "https://www.youtube.com/iframe_api"; | |
var firstScriptTag = document.getElementsByTagName('script')[0]; | |
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | |
var player; | |
function onYouTubeIframeAPIReady() { | |
player = new YT.Player('player', { | |
videoId: '67_D99r4KVg', | |
events: {} | |
}); |
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() { | |
$('.popap-video').hide('fast') | |
$('.trigger').click(function(event) { | |
event.stopPropagation(); | |
$('.popap-video').not($(this).next()).fadeOut('fast'); | |
$(this).next().fadeToggle(); | |
}) | |
})(); |
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() { | |
var sbTrigger = $('.searchbox-btn-mobile'), | |
sbItem = $('#search_mini_form'), | |
sbActive = 'is-active', | |
sbParent = '.searchbox'; | |
sbTrigger.each(function(e){ | |
$(this).click(function() { | |
sbItem.eq(e).toggle(); | |
sbTrigger.toggleClass(sbActive); |
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 src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script> | |
<script> | |
ymaps.ready(function() { | |
var myMap = new ymaps.Map('mapId', { | |
center: [..., ...], | |
zoom: 16, | |
controls: ['zoomControl'] | |
}), | |
myPlacemark = new ymaps.Placemark(myMap.getCenter(), { | |
balloonContent: 'text' |
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() { | |
var pagePathname = location.pathname; | |
var pathname = 'path/path'; | |
if (pagePathname === pathname) { | |
$('html').addClass('className'); | |
} | |
})(); |
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 lt IE 9]> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/rem/1.3.4/js/rem.min.js"></script> | |
<![endif]--> |
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
/*! reboot | |
========================================================================== */ | |
html { | |
box-sizing: border-box; | |
height: 100%; | |
-ms-overflow-style: scrollbar; | |
-webkit-tap-highlight-color: transparent; | |
} | |
*, |
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
$('.parent').on('click', function() { | |
$('.parent').removeClass('is--checked'); | |
$(this).find('.radio').prop("checked", true); | |
$(this).addClass('is--checked'); | |
}); |