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
html,body,div,span,h1,h2,h3,h4,h5,h6,p,img,em,strike,strong,s,b,u,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,menu,nav,section,time,mark,audio,video,main {background:transparent;border:0;font-size:100%;margin:0;padding:0;outline:0;vertical-align:baseline;} | |
article,aside,details,figcaption,figure,footer,header,nav,section,main,menu {display:block} | |
html {font-size:10px;overflow-y:scroll;-webkit-tap-highlight-color:transparent;-ms-overflow-style:scrollbar;} | |
body {font:16px/1.5 Arial, "Helvetica CY", "Nimbus Sans L", sans-serif;font-size:1.6rem;text-align:left;background:#fff;color:#222;} | |
html, body {height:100%;width:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;} | |
ol, ul {list-style:none} | |
img {border:none} | |
svg:not(:root) {overflow:hidden} |
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
.clr:after {content:".";display:block;height:0;clear:both;visibility:hidden;} |
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
.txt ul, .txt ol {margin:1rem;} | |
.txt ul {list-style:disc} | |
.txt ol {list-style:decimal} | |
.txt p {margin-bottom:1rem} | |
.txt img, .txt iframe, .txt object, .txt embed {height:auto !important;max-width:100%;} | |
.txt h1, .txt h2, .txt h3, .txt h4, .txt h5, .txt h6 {font-weight:bold;line-height:1.1;margin-bottom:1rem;} | |
.txt h1 {font-size:2.5rem;} | |
.txt h2 {font-size:2rem;} | |
.txt h3 {font-size:1.75rem;} | |
.txt h4 {font-size:1.5rem;} |
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 numEnd($num, $titles) { | |
$cases = array(2, 0, 1, 1, 1, 2); | |
return $num . " " . $titles[($num % 100 > 4 && $num % 100 < 20) ? 2 : $cases[min($num % 10, 5)]]; | |
} | |
numEnd($resultHours, array('час','часа','часов')); | |
?> |
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
//JQ | |
$.get("svg/sprite.svg", function(data) { | |
var div = document.createElement("div"); | |
div.innerHTML = new XMLSerializer().serializeToString(data.documentElement); | |
document.body.insertBefore(div, document.body.childNodes[0]); | |
}); | |
//JS | |
var ajax = new XMLHttpRequest(); | |
ajax.open("GET", "svg/sprite.svg", 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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</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
/** | |
* Slick | |
*/ | |
;(function($) { | |
$('.slick').slick({ | |
infinite: false, | |
dots: true, | |
customPaging: function(slider, i) { |
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
$.fn.extend({ | |
toggleText: function(a, b){ | |
return this.text(this.text() == b ? a : b); | |
} | |
}); |
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
ul { | |
counter-reset: num; | |
li { | |
counter-increment: nums; | |
&:before {content: counter(nums);} | |
} | |
} |
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
/** | |
* output from sass-maps-index-iterator.scss | |
*/ | |
li:nth-of-type(1):before { | |
content: "english - hello"; | |
} | |
li:nth-of-type(2):before { | |
content: "spanish - hola"; | |
} |