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
<!-- BROWSE HAPPY BEGINS HERE --> | |
<style> | |
.browse-happy {display:block;width:768px;height:120px;background-color:#cd3c18;color: #fff !important;margin: 0;font-size: 16px;line-height: 1.4;color: #333;position: fixed;z-index: 9999;top: 50%;left: 50%;margin-top: -60px;margin-left: -384px;padding: 20px 40px;text-align: justify} | |
.browse-happy a {color: #fff; text-decoration: underline;text-decoration-skip:ink} | |
</style> | |
<!--[if lt IE 10]> | |
<div class="browse-happy"> | |
<div> | |
<p class="browse-happy__notice">Мы обнаружили, что вы используете <strong>устаревшую версию</strong> браузера Internet Explorer</p> | |
<p class="browse-happy__security">Из соображений безопасности этот сайт поддерживает Internet Explorer версии 10 и выше |
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
{ | |
"extends": "stylelint-config-standard", | |
"rules": { | |
"indentation": "tab", | |
"string-quotes": "double", | |
"no-duplicate-selectors": true, | |
"color-hex-case": "lower", | |
"selector-combinator-space-after": "always", | |
"selector-attribute-quotes": "always", | |
"declaration-colon-space-before": "never", |
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
$(window).scroll(function() { | |
var sb_m = 20; // отступ сверху и снизу | |
var mb = 500; // высота подвала с запасом | |
var st = $(window).scrollTop(); | |
var sb = $(".sticky-block"); | |
var sbi = $(".sticky-block .inner"); | |
var sb_ot = sb.offset().top; | |
var sbi_ot = sbi.offset().top; | |
var sb_h = sb.height(); |
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
var h_header = $('header').height(); | |
$('#fullpage').fullpage({ | |
paddingTop: h_header | |
}); | |
var hf = function(){ | |
var h_header = $('header').height(); | |
var h_footer = $('footer').height(); | |
$('.content').css({ | |
'paddingTop': h_header, |
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
#!/bin/bash | |
target_branch="production" | |
working_tree="PATH_TO_DEPLOY" | |
while read oldrev newrev refname | |
do | |
branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |
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
/* the page should not change width as content is loaded */ | |
body { | |
overflow-y: scroll; | |
} | |
/* block scrolling without losing the scroll bar and shifting the page */ | |
/* add this class when a modal is open */ | |
body.block-scroll { | |
overflow: hidden; | |
overflow-y: scroll !important; |
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
// Mixins. | |
m-nl() | |
margin 0 | |
padding 0 | |
text-indent 0 | |
list-style none | |
list-style-position outside | |
m-cf() |
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
$(document).ready(function() { | |
$(".toggle-mnu").click(function() { | |
$(this).toggleClass("on"); | |
$(".main-mnu").slideToggle(); | |
return false; | |
}); | |
$(".main-footer .toggle-mnu").click(function() { | |
$("html, body").animate({ scrollTop: $(document).height() }, "slow"); |
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() { | |
// Preloader | |
$(window).on( 'load', function() { | |
setTimeout(function() { | |
$('body').addClass('is-load'); | |
}, 100); | |
}); | |
// Scroll Header |
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
{ | |
"enable_tab_scrolling": false, | |
"fallback_encoding": "Cyrillic (Windows 1251)", | |
"remember_open_files": true, | |
"trim_trailing_white_space_on_save": true | |
"Seti_SB_h_med": true, | |
"Seti_SB_v_med": true, | |
"Seti_mouse_wheel_tabswitche": true, |