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
// TELEPORT PLUGIN | |
$('[js-teleport]').each(function (i, val) { | |
var self = $(val) | |
var objHtml = $(val).html(); | |
var target = $('[data-teleport-target=' + $(val).data('teleport-to') + ']'); | |
var conditionMedia = $(val).data('teleport-condition').substring(1); | |
var conditionPosition = $(val).data('teleport-condition').substring(0, 1); | |
if (target && objHtml && conditionPosition) { | |
_window.resized(100, function () { |
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
// text hiden plugin | |
$('[js-text-collapse]').each(function(i, el){ | |
var self = $(el); | |
var firstParagraph; | |
var hiddenParagraphs = []; | |
var btnEl = $("<div class=content__mobile-more><a href='#' class='btn btn-outline btn-outline--black' js-expand-text> Подробнее </a></div>"); | |
function collapseCheckMedia(){ | |
if ( _window.width() < media.tablet ){ | |
self.find('p').each(function(index,p){ |
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
google.maps.event.addDomListener(window, 'load', init); |
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
ymaps.ready(initMap); | |
var myMap, | |
myPlacemark; | |
function initMap(){ | |
myMap = new ymaps.Map("footerMap", { | |
center: [55.739483, 37.719603], | |
zoom: 14 | |
}); |
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
# Redirect http to https | |
# server { | |
# listen 80; | |
# server_name site.co www.site.co; | |
# return 301 https://site.co$request_uri; | |
# } | |
# Redirect https www to non-www | |
# server { | |
# listen 443 ssl; |
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
////////// | |
// BARBA PJAX | |
////////// | |
Barba.Pjax.Dom.containerClass = "page"; | |
var FadeTransition = Barba.BaseTransition.extend({ | |
start: function() { | |
Promise |
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
////////// | |
// DEVELOPMENT HELPER | |
////////// | |
var prevBg; | |
function setBreakpoint(){ | |
var wWidth = _window.width(); | |
var content = "<div class='dev-bp-debug'>"+wWidth+"</div>"; | |
$('.page').append(content); |
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
Content-Transfer-Encoding: quoted-printable | |
Content-Type: text/html; | |
charset=utf-8 | |
Message-Id: <D0D60014-8BF9-4786-B769-5951AD584E7E> | |
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) | |
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> | |
<div class="ApplePlainTextBody" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"> | |
<table id="sig" width="320" cellspacing="0" cellpadding="0" border-spacing="0" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; width: 320px; margin: 0px; padding: 0px;"> | |
<tr> |
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
include _mixins | |
doctype html | |
html(lang="ru") | |
head | |
include _head | |
body(class=bodyClass) | |
block preloader | |
include ../components/_preloader | |
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
////////////// | |
// CONTACT SECTION | |
///////////// | |
// When the window has finished loading create our google map below | |
if ( $('#contact-map').length > 0 ){ | |
google.maps.event.addDomListener(window, 'load', init); | |
} | |