Skip to content

Instantly share code, notes, and snippets.

View Borovensky's full-sized avatar

Artem Borovensky

  • Ukraine, Kiev
View GitHub Profile
$(document).ready(function() {
function heightDetect() {
$(".main_head").css("height", $(window).height());
}
heightDetect();
$(window).resize(function(){
heightDetect();
});
});
// SASS
.loader
background: none repeat scroll 0 0 #ffffff
bottom: 0
height: 100%
left: 0
position: fixed
right: 0
top: 0
width: 100%
<?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(); ?>
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
<?php
$tags = get_tags();
if ($tags) {
foreach ($tags as $tag) {
echo '<p>Tag: <a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a> </p> ';
}
}
?>
<?php
$tags = wp_get_post_tags($post->ID);
/* SASS version */
/* Negative indent */
.parent
width: 100%
height: 100%
position: absolute
top: 0
left: 0
overflow: auto
.block
$.fn.iconHover = function () {
return $(this).hover(
function(){
$(this).stop().fadeTo("fast", 1)
},
function(){
$(this).stop().fadeTo("slow", 0.5)
}
);
}
.class {
min-height: 620px;
background-image: url();
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
-webkit-background-size: cover;
background-size: cover;
}
var menu = [
['Main', ['index.thml']],
['Aboute', ['aboute.thml']],
['Catalog', [
['phone', 'phone.html'],
['computers', 'computers.html'],
['WTF', 'WTF.html']
]
],
['Contact', ['contact.thml']]
// SASS
.ripple
width: 0
height: 0
border-radius: 50%
background: rgba(255, 255, 255, 0.4)
transform: scale(0)
position: absolute
opacity: 1