This file contains 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 class="b-block"> | |
<div class="block__before"> | |
<div class="b-text b-text--smaller"> | |
<p></p> | |
<p></p> | |
<div class="text__incut"> | |
<p></p> | |
</div> | |
<p></p> | |
</div> |
This file contains 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
/* | |
Функция для одновременной подсветки ссылок с одинаковым href, | |
на вход принимает: | |
1) selector — джеквери-селектор ссылок, чтобы | |
была возможность включить дублирующую подсветку в определённом фрагменте; | |
2) hoverClass — какой класс добавить по ховеру и псевдо-ховеру. | |
Инициализация для всего документа: | |
doubleHover('a', 'hover'); |
This file contains 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 _decorate($img, $tailTop) { | |
background-image: image-url($img); | |
background-repeat: no-repeat; | |
position: absolute; | |
width: 50%; | |
height: image-height($img); | |
top: 0; | |
@if $tailTop != 0 { | |
margin-top: -$tailTop; |
This file contains 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
(function ($) { | |
$.fn.shuffleChildren = function () { | |
return this.each(function () { | |
var $children = $(this).children(), | |
l = $children.length; | |
// Fisher–Yates Shuffle | |
// http://bost.ocks.org/mike/shuffle/ | |
// While there remain elements to shuffle |
This file contains 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
/home/luke/Sites/aldebaran/wp-contnent/myPlugin | |
/home/luke/Sites/tatuin/wp-contnent/myPlugin |
This file contains 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 | |
// Aegea to Disqus comments converter | |
// http://help.disqus.com/customer/portal/articles/472150 | |
$url_prefix = 'http://nano.sapegin.ru/all/'; | |
$note_id = intval($_GET['id']); | |
if (empty($note_id)) exit('Empty note ID.'); |
This file contains 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
$(document).on('click', '.js-aims', function () { | |
setAim($(this).attr('data-aim')); | |
}); |
This file contains 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 class="emerge"> | |
<img src="1.jpg"> | |
<div class="emerge-custom" id="fotorama"> | |
<img src="2.jpg"> | |
<img src="3.jpg"> | |
</div> | |
</div> |
This file contains 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
$(document).ready(function() { | |
$('.js-aims').each(function () { | |
var $this = $(this); | |
$this.on($this.data('aimEvent') || 'click', function () { | |
setAim($this.data('aim')); | |
}); | |
}); | |
}); |
OlderNewer