Skip to content

Instantly share code, notes, and snippets.

View chickenfoot88's full-sized avatar
🎓
Improving skills

Adel Ismagilov chickenfoot88

🎓
Improving skills
View GitHub Profile
@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;
}
.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
$(document).ready(function() {
function heightDetect(){
$(".main_head").css("height", $(window).height());
};
$(window).resize(function(){
heightDetect();
});
@chickenfoot88
chickenfoot88 / WordPress Query_posts
Last active June 21, 2018 11:34
WordPress Query_posts
<?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(); ?>
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);
@chickenfoot88
chickenfoot88 / index.html
Created January 27, 2017 13:08 — forked from serj08/index.html
jQuery Tabs Short by agragregra
<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>
$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)
// Chrome Smooth Scroll
try {
$.browserSelector();
if($('html').hasClass('chrome')) {
$.smoothScroll();
console.log('this is chrome');
}
} catch(err) {
};
// SVG Fallback
if (!Modernizr.svg) {
$('img[src*="svg"]').attr(src, function() {
return $(this).attr('src').replace('.svg', '.png');
})
}