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 ($_SERVER['REQUEST_URI'] != '/' && $_SERVER['REQUEST_URI'] != '/index.html' && $_SERVER['REQUEST_URI'] != '/index.php'){?> | |
text | |
<?}?> |
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
$('.class').each(function() { | |
$(this).html(function () { | |
var res = $(this).html().replace(new RegExp(/ text /ig), 'text'); | |
return res; | |
}); | |
}); |
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
/*! | |
* jQuery TextChange Plugin | |
* http://www.zurb.com/playground/jquery-text-change-custom-event | |
* | |
* Copyright 2010, ZURB | |
* Released under the MIT License | |
*/ | |
(function(a){a.event.special.textchange={setup:function(){a(this).data("lastValue",this.contentEditable==="true"?a(this).html():a(this).val());a(this).bind("keyup.textchange",a.event.special.textchange.handler);a(this).bind("cut.textchange paste.textchange input.textchange",a.event.special.textchange.delayedHandler)},teardown:function(){a(this).unbind(".textchange")},handler:function(){a.event.special.textchange.triggerIfChanged(a(this))},delayedHandler:function(){var c=a(this);setTimeout(function(){a.event.special.textchange.triggerIfChanged(c)}, | |
25)},triggerIfChanged:function(a){var b=a[0].contentEditable==="true"?a.html():a.val();b!==a.data("lastValue")&&(a.trigger("textchange",[a.data("lastValue")]),a.data("lastValue",b))}};a.event.special.hastext={setup:function(){a(this).bind("textchange",a.event.special.h |
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
setTimeout(function(){ | |
},250); |
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
$(function() { | |
// scroll_to_element | |
var scrollToElement = function (toggle, anchor) { | |
$(toggle).click(function(e) { | |
e.preventDefault(); | |
$('html, body').animate({ | |
scrollTop: $(anchor).offset().top | |
}, 1000); | |
}); |
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
// sticky | |
var menu_position = $('.nav-page').offset().top; | |
$(window).scroll(function(){ | |
if( $(this).scrollTop() > menu_position ){ | |
$('.nav-page').addClass('fixed'); | |
} | |
else { | |
$('.nav-page').removeClass('fixed'); | |
} |
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
.video-container { | |
position: relative; | |
height: 0; | |
padding-bottom: 56.25%; | |
} | |
.video-container > * { | |
position: absolute; | |
top: 0; | |
left: 0; |
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
.styled-checkbox { | |
position: absolute; | |
opacity: 0; | |
& + label { | |
position: relative; | |
cursor: pointer; | |
padding: 0; | |
font-size: 18px; | |
color: #fff; |
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
(function() { | |
function tab(trigger, item) { | |
// $(item).hide() | |
$(trigger).click(function(event) { | |
event.stopPropagation(); | |
$(item).not($(this).next()).slideUp(250); | |
$(this).next().slideToggle(250); | |
return false; | |
}) | |
$('html').click(function(event) { |
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="popup form-popap"><!--js--> | |
<div class="table_popup"> | |
<div class="cell_popup"> | |
<div class="box_popup"><!--js--> | |
<span class="close_popup">✕</span><!--js--> | |
<div class="content_popup"> | |
<form class="form" action="#" method="POST" accept-charset="utf-8"> | |
<h2 class="form__title">Обратный звонок</h2> | |
<div class="form__group"> | |
<label class="form-label" for="form-name"></label> |