Less.js Loop for manipulating adjacent siblings. Defaults to add the style to all X number of siblings as specified in the call.
.testcase {
.adjacents-content() {
display: inline;
}
.adjacents(4, ".item" );
}| $.fn.elScroll = function(settings) { | |
| var defaults = { | |
| duration: 600, | |
| queue: false, | |
| offset: 0, | |
| } | |
| var options = $.extend(true, {}, defaults, settings); | |
| var callback = options.complete || function() {}; |
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://gist.github.com/1595572). | |
| # |
| function _get_all_meta_values($key) { | |
| global $wpdb; | |
| $result = $wpdb->get_col( | |
| $wpdb->prepare( " | |
| SELECT DISTINCT pm.meta_value FROM {$wpdb->postmeta} pm | |
| LEFT JOIN {$wpdb->posts} p ON p.ID = pm.post_id | |
| WHERE pm.meta_key = '%s' | |
| AND p.post_status = 'publish' | |
| ORDER BY pm.meta_value", | |
| $key |
Less.js Loop for manipulating adjacent siblings. Defaults to add the style to all X number of siblings as specified in the call.
.testcase {
.adjacents-content() {
display: inline;
}
.adjacents(4, ".item" );
}| if(!$.support.placeholder) { | |
| var active = document.activeElement; | |
| $('[type="text"], [type="email"], textarea').focus(function () { | |
| if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) { | |
| $(this).val('').removeClass('hasPlaceholder'); | |
| } | |
| }).blur(function () { | |
| if ($(this).attr('placeholder') != '' && ($(this).val() == '' || $(this).val() == $(this).attr('placeholder'))) { | |
| $(this).val($(this).attr('placeholder')).addClass('hasPlaceholder'); | |
| } |
| <div class="slider-container"> | |
| <label class="slider-trigger">Join Our Mailing List</label> | |
| <input type="text" class="slider-target" data-width="206px" data-padding="5px" /> | |
| </div> |