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
| document.getElementById('form').addEventListener('submit', function(e) { | |
| var form = this, | |
| files = document.getElementById('file').files; | |
| var reader = new FileReader(); | |
| reader.onloadend = (function(file) { | |
| return function(e) { | |
| if (e.target.readyState == FileReader.DONE) { | |
| document.getElementById('file-contents').value = btoa(e.target.result); | |
| document.getElementById('file-name').value = escape(file.name); |
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
| // Counter attempt 1 - via recursion | |
| .loop(@total, @cols @i: 1) when (@i =< (@total * @cols)) { | |
| .item-@{i} { | |
| margin-left: 0; | |
| } | |
| .loop(@total, @cols, (@i + 5)); // next iteration | |
| } |
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
| /** | |
| * keep body from scrolling when nav menu is open in iOS | |
| */ | |
| $(document).on('touchmove', function(e){ | |
| if($('body').hasClass('nav-showing')){ | |
| var $target = $(e.target); | |
| if($target.is('#nav-wrapper') || $target.parents('#nav-wrapper')){ | |
| e.stopPropagation(); | |
| } | |
| } |
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
| ; | |
| /** | |
| * Gorilla manufacturers.js | |
| * Copyright 2013 Gorilla Group. | |
| * | |
| * Standard Tab plugin. Works with the following | |
| * conventions on the tabs themselves: | |
| * - current tab index (within tabs array) | |
| * - data-target | |
| * - href (matching #id) |
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
| // @dependency bananaPeel | |
| $('#compare-slider').on('init.bananaPeel', function(e) { | |
| e.options.$visible = $(this).parents('.block-compare').find('.visible'); | |
| e.options.visibleMultiplier = 1; | |
| if (e.options.itemsCount > e.options.itemsToShow) { | |
| e.options.$visible.find('.visible-display').html(1 + '-' + e.options.itemsToShow + ' of '); | |
| } | |
| }) | |
| .on('slide.bananaPeel', function(e) { |
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 class="kitchen-sinks"> | |
| <section> | |
| <h6 class="grey">Page Titles</h6> | |
| <div class="page-title"> | |
| <h1>Page Title Here</h1> | |
| </div> | |
| </section> | |
| <section> |
NewerOlder