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
/*Перед body*/ | |
<div class="loader"> | |
<div class="loader_inner"></div> | |
</div> |
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).ready(function() { | |
function heightDetect() { | |
$(".main_head").css("height", $(window).height()); | |
}; | |
heightDetect(); | |
$(window).resize(function() { | |
heightDetect(); | |
}); | |
}); |
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>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script> |
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-mnu, .menu_item").click(function() { | |
$(".sandwich").toggleClass("active"); | |
}); | |
$(".toggle-mnu").click(function() { | |
if ($(".top_mnu").is(":visible")){ | |
$(".top_mnu").fadeOut(600); | |
$(".top_mnu li a").removeClass("fadeInUp animated"); | |
} else { | |
$(".top_mnu").fadeIn(600); |
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).ready(function() { | |
$("#form").submit(function() { | |
$.ajax({ | |
type: "POST", | |
url: "mail.php", | |
data: $(this).serialize() | |
}).done(function() { | |
$(this).find("input").val(""); | |
alert("Спасибо за заявку! Скоро мы с вами свяжемся."); |
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
/*все настройки bootstrap*/ | |
http://getbootstrap.com/customize/ | |
/*серый фон страницы*/ | |
@body-bg: #f8f8f8; | |
/*специфический голубой фон данного дизайна*/ | |
@brand-primary: #29c5e6; | |
/*фон панелей*/ | |
@panel-bg: #f3f3f3; | |
/*цвет рамки панелей*/ |
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
/*Подключить скрипт */headhesive.min.js*/ | |
<div class="menu"> | |
<div class="mid"> | |
<img src="images/photo.jpg" alt="logo" class="logotype"> | |
123 | |
</div> | |
</div> |
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).ready(function () { | |
//при открытии панели пользователем, записываем значение её атрибута id в LocalStorage (ключ bootstrapAccordion) | |
$("#bootstrap").on('shown.bs.collapse', function () { | |
var active = $("#bootstrap .in").attr('id'); | |
localStorage.setItem("bootstrapAccordion", active); | |
}); | |
//при закрытии панели удаляем bootstrapAccordion из LocalStorage | |
$("#bootstrap").on('hidden.bs.collapse', function () { | |
localStorage.removeItem("bootstrapAccordion"); | |
}); |
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
BX.ready(function () { | |
var MyPanel = BX("navmenu"), // ID ShowPanel Bitrix | |
BxPanel = BX.admin.panel, | |
FxPanel = function () { | |
if (window.pageYOffset >= BxPanel.DIV.clientHeight && BxPanel.isFixed() === false) { | |
MyPanel.style.top = 0; | |
} else if (BxPanel.isFixed() === true) { | |
MyPanel.style.top = BxPanel.DIV.clientHeight + "px"; | |
} else { | |
MyPanel.style.top = BxPanel.DIV.clientHeight - window.pageYOffset + "px"; |
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
http://javascript.ru/forum/misc/44239-poyavlenie-ischeznovenie-ehlementa-pri-prokrutke-stranicy-jquery-4.html |
OlderNewer