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 testPhone(phoneName) { | |
var re = /^[\d\(\)\+ -]+$/; | |
return re.test($(phoneName).val()); | |
} |
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
$('#Popup-Form').submit(function() { | |
if (testPhone('#Phone')) { | |
$.ajax({ | |
type: "POST", | |
url: "mail.php", | |
data: $(this).serialize() | |
}).done(function() { | |
$(this).find("input").val(''); | |
$('#Popup-Form').trigger("reset"); | |
document.location.href = 'thankyou.html'; |
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 | |
$to = "[email protected]"; // адрес куда отправлять письмо | |
$subject = "Отправка формы с сайта агентства"; // заголовок письма | |
$redirect = "http://dev.ak-agency.ru/zhaluzi/thankyou.html"; // адрес страницы, на которую нужно перейти после отправки письма | |
foreach($_POST as $key => $value) | |
{ $fields .= $key.": ".$value." \r\n"; } | |
$message = $subject." \r\n".$fields; | |
$headers = "Content-type: text/plain; charset=utf-8 \r\n"; | |
mail($to, $subject, $message, $headers); |
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
$(window).load(function() { | |
$(".loader_inner").fadeOut(); | |
$(".loader").delay(400).fadeOut("slow"); | |
}); |
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
/* плавное изменение прозрачности placeholder-а при фокусе */ | |
.input1::-webkit-input-placeholder {opacity: 1; transition: opacity 0.3s ease;} | |
.input1::-moz-placeholder {opacity: 1; transition: opacity 0.3s ease;} | |
.input1:-moz-placeholder {opacity: 1; transition: opacity 0.3s ease;} | |
.input1:-ms-input-placeholder {opacity: 1; transition: opacity 0.3s ease;} | |
.input1:focus::-webkit-input-placeholder {opacity: 0; transition: opacity 0.3s ease;} | |
.input1:focus::-moz-placeholder {opacity: 0; transition: opacity 0.3s ease;} | |
.input1:focus:-moz-placeholder {opacity: 0; transition: opacity 0.3s ease;} | |
.input1:focus:-ms-input-placeholder {opacity: 0; transition: opacity 0.3s ease;} | |
/* сдвиг placeholder-а вправо при фокусе*/ |
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
<meta name="format-detection" content="telephone=no"> |
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
$(".count_element").on("click", (function() { | |
// analytics.js | |
ga("send", "event", "goal", "goal"); | |
// gtm.js | |
gtag('event', 'read', { 'event_category': 'abr' }); //gtag('event', 'goal', { 'event_category': 'goal' }); | |
yaCounterXXXXXXXX.reachGoal("goal"); | |
return 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
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> | |
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> | |
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--><html lang="ru"> <!--<![endif]--> | |
<!--[if lt IE 9]> | |
<script src="libs/html5shiv/es5-shim.min.js"></script> | |
<script src="libs/html5shiv/html5shiv.min.js"></script> | |
<script src="libs/html5shiv/html5shiv-printshiv.min.js"></script> | |
<script src="libs/respond/respond.min.js"></script> |
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
.fancybox-lock body { | |
/*overflow: hidden !important;*/ | |
} |
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
show_admin_bar(false); | |
add_theme_support('post-thumbnails'); | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
remove_action( 'wp_head', 'feed_links', 2 ); | |
remove_action( 'wp_head', 'rsd_link' ); | |
remove_action('wp_head', 'wlwmanifest_link'); | |
remove_action('wp_head', 'wp_generator'); |
OlderNewer