One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
// SVG Fallback | |
if (!Modernizr.svg) { | |
$('img[src*="svg"]').attr(src, function() { | |
return $(this).attr('src').replace('.svg', '.png'); | |
}) | |
} |
// Chrome Smooth Scroll | |
try { | |
$.browserSelector(); | |
if($('html').hasClass('chrome')) { | |
$.smoothScroll(); | |
console.log('this is chrome'); | |
} | |
} catch(err) { | |
}; |
$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) |
<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> |
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); |
<?php if ( have_posts() ) : query_posts('p=1'); | |
while ( have_posts() ) : the_post(); ?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> | |
<?php the_post_thumbnail(array(100, 100)); ?> | |
<?php endwhile; endif; wp_reset_query(); ?> |
$(document).ready(function() { | |
function heightDetect(){ | |
$(".main_head").css("height", $(window).height()); | |
}; | |
$(window).resize(function(){ | |
heightDetect(); | |
}); |
.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 |