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
@font-face { | |
font-family: "RobotoRegular"; | |
src: url("../fonts/RobotoRegular/RobotoRegular.eot"); | |
src: url("../fonts/RobotoRegular/RobotoRegular.eot?#iefix") format("embedded-opentype"), | |
url("../fonts/RobotoRegular/RobotoRegular.woff") format("woff"), | |
url("../fonts/RobotoRegular/RobotoRegular.ttf") format("truetype"); | |
font-style: normal; | |
font-weight: normal; | |
} |
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
.loader | |
background: none repeat scroll 0 0 #ffffff | |
bottom: 0 | |
height: 100% | |
left: 0 | |
position: fixed | |
right: 0 | |
top: 0 | |
width: 100% | |
z-index: 9999 |
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() { | |
function heightDetect(){ | |
$(".main_head").css("height", $(window).height()); | |
}; | |
$(window).resize(function(){ | |
heightDetect(); | |
}); |
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 sumTo(n) { // обычный цикл 1+2+...+n | |
var result = 0; | |
for (var i = 1; i <= n; i++) { | |
result += i; | |
} | |
return result; | |
} | |
function sumToRec(n) { // рекурсия sumToRec(n) = n+SumToRec(n-1) | |
return n == 1 ? 1 : n + sumToRec(n - 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
<div class="wrapper"> | |
<div class="tabs"> | |
<span class="tab">Вкладка 1</span> | |
<span class="tab">Вкладка 2</span> | |
<span class="tab">Вкладка 3</span> | |
</div> | |
<div class="tab_content"> | |
<div class="tab_item">Содержимое 1</div> | |
<div class="tab_item">Содержимое 2</div> | |
<div class="tab_item">Содержимое 3</div> |
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
$colors: $blue, $red, $accent | |
@for $i from 1 through length($colors) | |
.carousel-services .owl-item:nth-child(#{length($colors)}n+#{$i}) | |
background-color: nth($colors, $i) |
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
// Chrome Smooth Scroll | |
try { | |
$.browserSelector(); | |
if($('html').hasClass('chrome')) { | |
$.smoothScroll(); | |
console.log('this is chrome'); | |
} | |
} catch(err) { | |
}; |
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
// SVG Fallback | |
if (!Modernizr.svg) { | |
$('img[src*="svg"]').attr(src, function() { | |
return $(this).attr('src').replace('.svg', '.png'); | |
}) | |
} |
OlderNewer