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
$("input[type='tel']").mask("+7 (999) 999-99-99", {autoclear: false}); | |
http://digitalbush.com/projects/masked-input-plugin/ |
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
.form__input-file { | |
position: absolute; | |
left: 0; | |
bottom: 0; | |
width: 0.1px; | |
height: 0.1px; | |
opacity: 0; | |
overflow: hidden; | |
z-index: -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
/************************************************** | |
FAQ Open | |
***************************************************/ | |
$('[data-faq=question]').click(function(){ | |
event.preventDefault(); | |
$(this).parent($('.faq-inner__question-one')).toggleClass('active'); | |
$(this).next($('.faq-inner__answerwrap')).slideToggle('slow'); | |
}); | |
/************************************************** | |
End FAQ Open |
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
// Unisender | |
require_once("unisender_api.php"); //подключаем файл класса | |
$api_key = "123456"; //API-ключ к вашему кабинету | |
$uni = new UniSenderApi($api_key); //создаем экземляр класса, с которым потом будем работать | |
// Данные о новом подписчике | |
$user_lists = "7114782"; | |
$user_tag = urlencode("Added using API"); | |
if (!$user_phone) { |
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
<a href="#" data-anchor="to-section"> | |
<section id="to-section"></section> |
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
В .htaccess | |
RewriteEngine on | |
RewriteBase / | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP | |
RewriteRule ^([^.]+)\.html$ http://site.ru/$1 [R=301,L] | |
RewriteCond %{REQUEST_URI} !(\.[^./]+)$ | |
RewriteCond %{REQUEST_fileNAME} !-d | |
RewriteCond %{REQUEST_fileNAME} !-f | |
RewriteRule (.*) /$1.html [L] |
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 ($('.soc-sharing__copy').length) { | |
var copyLinkBtn = document.querySelector('.soc-sharing__copy'); | |
// Textarea for select text link, hidden | |
$('.soc-sharing__copy textarea').text(window.location); | |
copyLinkBtn.addEventListener('click', function(event) { | |
// Выборка ссылки | |
var newsLink = document.querySelector('.soc-sharing__copy textarea'); | |
newsLink.select(); | |
try { |
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
/************************************************** | |
Show Visible Elements | |
***************************************************/ | |
/** | |
* Проверяет элемент на попадание в видимую часть экрана. | |
* Для попадания достаточно, чтобы верхняя или нижняя границы элемента были видны. | |
*/ | |
function isVisible(elem) { | |
var coords = elem.getBoundingClientRect(); | |
var windowHeight = document.documentElement.clientHeight; |
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
$("[data-fancybox]").fancybox({ | |
lang : 'ru', | |
i18n : { | |
'ru' : { | |
CLOSE : 'Закрыть', | |
NEXT : 'Дальше', | |
PREV : 'Назад', | |
ERROR : 'Не удается загрузить. <br/> Попробуйте позднее.', | |
PLAY_START : 'Начать слайдшоу', | |
PLAY_STOP : 'Остановить слайдшоу', |
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 class="faq__list"> | |
<div class="faq__item open"> | |
<div class="faq__item-title"> | |
<div class="faq__item-quest"> | |
<p>Question</p> | |
</div> | |
</div> | |
<div class="faq__item-answer user-content"> | |
<p>Answer</p> | |
</div> |
OlderNewer