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
<IfModule mod_expires.c> | |
Header append Cache-Control "public" | |
FileETag MTime Size | |
ExpiresActive On | |
ExpiresDefault "access plus 0 minutes" | |
ExpiresByType image/ico "access plus 1 month" | |
ExpiresByType text/css "access plus 1 month" | |
ExpiresByType text/javascript "access plus 1 month" | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/webp "access plus 1 month" |
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
class bootstrap_4_walker_nav_menu extends Walker_Nav_menu { | |
function start_lvl( &$output, $depth ){ // ul | |
$indent = str_repeat("\t",$depth); // indents the outputted HTML | |
$submenu = ($depth > 0) ? ' sub-menu' : ''; | |
$output .= "\n$indent<ul class=\"dropdown-menu$submenu depth_$depth\">\n"; | |
} | |
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ){ // li a span | |
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
<!-- Подключаем API Яндекс карт внутри тега head --> | |
<script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script> | |
<!-- Создаем div с id map в теле документа bofy --> | |
<div id="map" style="width: 100%; height: 400px"></div> | |
<!-- Настраиваем карту через JavaScript --> | |
<script type="text/javascript"> | |
//создаем переменные "Карта" и "Метка" | |
ymaps.ready(init); |
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
<script type="text/javascript"> | |
$(function() { | |
$(window).scroll(function() { | |
if($(this).scrollTop() != 0) { | |
$('.totop').fadeIn(); | |
} | |
else { | |
$('.totop').fadeOut(); | |
} | |
}); |
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
<main class="cd-main-content"> | |
<section class="center"> | |
<h1>SVG Modal Window</h1> | |
<a href="#0" class="cd-btn" id="modal-trigger" data-type="cd-modal-trigger">Fire Modal Window</a> | |
</section> | |
</main> <!-- .cd-main-content --> | |
<div class="cd-modal" data-modal="modal-trigger"> | |
<div class="cd-svg-bg" | |
data-step1="M-59.9,540.5l-0.9-1.4c-0.1-0.1,0-0.3,0.1-0.3L864.8-41c0.1-0.1,0.3,0,0.3,0.1l0.9,1.4c0.1,0.1,0,0.3-0.1,0.3L-59.5,540.6 C-59.6,540.7-59.8,540.7-59.9,540.5z" |
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
<?php | |
//Принимаем постовые данные | |
$name=$_POST['name']; | |
$phone=$_POST['phone']; | |
//Тут указываем на какой ящик посылать письмо | |
$to = "[email protected]"; | |
//Далее идет тема и само сообщение | |
// Тема письма | |
$subject = "Заявка с сайта"; | |
// Сообщение письма |
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
$(document).ready(function(){ | |
$("#menu").on("click","a", function (event) { | |
//отменяем стандартную обработку нажатия по ссылке | |
event.preventDefault(); | |
//забираем идентификатор бока с атрибута href | |
var id = $(this).attr('href'), | |
//узнаем высоту от начала страницы до блока на который ссылается якорь |