This file contains hidden or 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
@mixin em($px, $base: $base__font) { | |
$return ($px / $base) * 1em; | |
} |
This file contains hidden or 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
@mixin pad-ratio($x, $y, $selector: img) { | |
position: relative; | |
padding: 0 0 percentage($y/$x) 0; | |
height: 0; | |
#{$selector} { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; |
This file contains hidden or 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
var a,w=document.createTreeWalker(document,NodeFilter.SHOW_TEXT);while(a=w.nextNode()){if(a.textContent.trim().length)a.textContent='Одиннадцатиклассница пошла посмотреть на достопримечательность, она шла долго, несколько строчек, пока не пришла'} |
This file contains hidden or 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
/** | |
* Create a custom overlay for our window marker display, extending google.maps.OverlayView. | |
* This is somewhat complicated by needing to async load the google.maps api first - thus, we | |
* wrap CustomWindow into a closure, and when instantiating CustomWindow, we first execute the closure (to create | |
* our CustomWindow function, now properly extending the newly loaded google.maps.OverlayView), and then | |
* instantiate said function. | |
* Note that this version uses jQuery. | |
* @type {Function} | |
*/ | |
(function(){ |
This file contains hidden or 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
url: { name: 'datauri', limit : false} |
This file contains hidden or 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 id="preloader"></div> | |
#preloader { position: fixed; left: 0; top: 0; z-index: 999; width: 100%; height: 100%; overflow: visible; background: #333 url('http://files.mimoymima.com/images/loading.gif') no-repeat center center; } | |
jQuery(document).ready(function($) { | |
// site preloader -- also uncomment the div in the header and the css style for #preloader | |
$(window).load(function(){ | |
$('#preloader').fadeOut('slow',function(){$(this).remove();}); |
This file contains hidden or 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
<?php | |
$args = array( | |
// Arguments for your query. | |
); | |
// Custom query. | |
$query = new WP_Query( $args ); | |
// Check that we have query results. |
This file contains hidden or 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
anim($('#footer_logo')); | |
function anim(block) { | |
block.hover( function() { trig=1; repeat(); }, function() { trig=0; } ); | |
var trig = 0; | |
function repeat() { | |
if (trig) | |
block.animate({backgroundColor: $.Color(block.css('backgroundColor')).hue('+=6')}, 30, repeat); | |
} | |
} |
This file contains hidden or 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-bold(fs, lh) | |
font normal fs / lh 'open_sansbold', sans-serif | |
font-regular(fs, lh) | |
font normal fs / lh 'open_sansregular', sans-serif | |
font-semibold(fs, lh) | |
font normal fs / lh 'open_sanssemibold', sans-serif | |
font-light(fs, lh) | |
font normal fs / lh 'open_sanslight', sans-serif | |
This file contains hidden or 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
// | |
// TRACKING | |
// ======== | |
// | |
tracking($val, $base = false) | |
if $base | |
( ( $val * $base ) / 1000 ) px | |
else |
OlderNewer