Accepts 1 parameter:
- An integer that is the width to stop being elastic
| if ($('#main').hasClass('accordion')) { | |
| $('#main .content h3').each(function(index) { | |
| content = $(this).nextUntil('h1, h2, h3') | |
| content.wrapAll('<section />') | |
| }); | |
| } | |
| $('#main.accordion .content').accordion({ | |
| header: 'h3', | |
| collapsible: true, |
| var loadImage = function($img, callback) { | |
| var image; | |
| image = new Image(); | |
| return $img.load(function() { | |
| if (typeof callback === 'function') { | |
| callback(this); | |
| } | |
| return this; | |
| }); | |
| }; |
| [\n]+([^\d]) |
| get ":action", :to => "static", :action => /[a-z-]+/, :as => :static |
| @mixin elastic-nav($width: 100%) { | |
| display: table; | |
| table-layout: fixed; | |
| width: $width; | |
| > li { | |
| display: table-cell; | |
| > a { | |
| width: auto; | |
| } | |
| } |
Accepts 1 parameter:
| * { | |
| -moz-box-sizing: border-box; | |
| -webkit-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } | |
| textarea.textarea { | |
| width: 50%; | |
| max-width: none; | |
| } |
| /* | |
| Author: Nic Aitch - @nicinabox | |
| Version: 1.1 | |
| Description: Basic device properties for use when checking screen size or mobile. | |
| License: MIT | |
| */ | |
| (function(window, document, undefined) { | |
| var device = {}; |
| {% capture reading_time %} | |
| {{ 150 | divided_by: 150 }} | |
| {% endcapture %} | |
| <span> | |
| Reading time: about {{ reading_time }} | |
| {% if reading_time == 1 %} | |
| minute | |
| {% else %} |
| $.fn.showHint = function() { | |
| var $data = this.data('content'); | |
| return this.each(function(i) { | |
| $(this).empty().html($data[$(this).val()]); | |
| }); | |
| }; |