This file contains hidden or 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
.header { | |
position: fixed; | |
top: 0; left: 0; | |
width: 100%; | |
transition: all .3s ease; | |
} | |
.header.out { | |
transform: translateY(-100%); | |
} |
This file contains hidden or 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(!$_COOKIE["BUNNER_LOVEHUNTER"]):?> | |
<div class="banner_mod" id="banner_mod"> | |
<div class="banner_mod_bg"></div> | |
<div class="banner_mod_body" id="banner_mod_body"> | |
<div class="banner_mod_close" id="banner_mod_close"> | |
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
<rect x="1.85254" y="0.90332" width="13" height="1" rx="0.5" transform="rotate(45 1.85254 0.90332)" fill="#1B1A19"/> | |
<rect x="10.8535" y="1.90332" width="13" height="1" rx="0.5" transform="rotate(135 10.8535 1.90332)" fill="#1B1A19"/> | |
</svg> |
This file contains hidden or 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($arResult["CATALOG_QUANTITY"] == 0):?> | |
нет в наличии | |
<?else:?> | |
в наличии | |
<?endif;?> |
This file contains hidden or 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 () { | |
document.getElementById('link-1').onclick = function() { | |
document.getElementById('link-1').classList.add('disable'); | |
} | |
document.getElementById('link-2').onclick = function() { | |
document.getElementById('link-2').classList.add('disable'); | |
} | |
document.getElementById('close-reg').onclick = function() { | |
document.getElementById('reg').classList.remove('show'); | |
document.querySelector('.modal-backdrop').classList.remove("show"); |
This file contains hidden or 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
<a href="http://yourwebsi.te/page-2.html?showmodal=1"></a> | |
<div class="modal fade bd-example-modal-lg" id="modal-1" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> | |
<div class="modal-dialog modal-lg"> | |
<div class="modal-content">Your content</div> | |
</div> | |
</div> |
This file contains hidden or 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
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> | |
<div class="forma_odin"> | |
<form id="odin"> | |
<div class="form-group"> | |
<h2>Форма 1</h2> | |
<label >Пункт 1</label> | |
<input class="form-control" id="punkt_odin_avtozapolnenie"> | |
</div> | |
<button type="button" class="btn btn-success">Success</button> | |
<select id="select_odin_avtozapolnenie"> |
This file contains hidden or 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 (CSite::InDir('/index.php')){ | |
?>баннер<? | |
} | |
?> | |
Условие для раздела | |
Так как в Битриксе разделы являются физическими файлами и папками (отдельный вопрос насчет логики авторов этой якобы "CMS"), указываем путь к индексному файлу раздела. |
This file contains hidden or 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 startScript = (new Date().getHours()+1)%24;//Берем текущий час например 21 прибавляем 1, 21 + 1 = 22 это час когда нужно запустить скрипт | |
if(new Date().getMinutes() == 0)//Если мы зашли на сайт и минуты равны 0, например 22:00 то сразу же запускаем наш скрипт | |
myScript(); | |
loop();//Вызываем наш цикл | |
function loop(){ | |
var date = new Date();//Берем текущее время | |
if(date.getMinutes() == 0 && date.getHours()==startScript){//Если минут равны нулю и текущий час тому в котором нужно запустить скрипт | |
startScript = (startScript+1)%24 ;//прибавляем +1 к часу в котором нужно запустить скрипт | |
myScript();// и запускаем скрипт | |
} |
This file contains hidden or 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 (!sessionStorage.getItem('12345')) { | |
$('.header_menu').hide().fadeIn(2000); // тут нужный код | |
sessionStorage.setItem('12345', true); | |
} |
This file contains hidden or 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
То дописать в теге <video> | |
playsinline |
NewerOlder