Skip to content

Instantly share code, notes, and snippets.

@polis89
polis89 / common.js
Last active March 22, 2017 13:59
Call form JS+PHP+css+html
//Fancybox callform
$('#menu_phone, #menu_phone_2').fancybox({
'padding': 37,
'margin': 20,
'overlayOpacity': 0.87,
'overlayColor': '#fff',
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'titlePosition': 'inside',
'centerOnScroll': true
@polis89
polis89 / wp_query.php
Last active March 19, 2017 11:10
WordPress query_posts
<?php if( have_posts() ) : query_posts("p=1");
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php if( has_post_thumbnail(); ) : ?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(); ?>
</a>
@polis89
polis89 / SimplePreloader
Last active March 13, 2017 17:07 — forked from akanastorm/SimplePreloader
Simple Preloader by agragregra
#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;