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
/* | |
* iOS Launch Image Loader v1.1.1 @ GDibble | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
* Browser downloads all meta-tagged images, thus only append 1 meta tag to | |
* save download time and provide the fastest loading mobile experience. | |
* | |
* Files must live in '/img/ios/' and named: | |
* startup-2048x1496.png Landscape Retina iPads | |
* startup-1536x2008.png Portrait Retina iPads | |
* startup-1024x748.png Landscape iPad 1 & 2 |
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
/*global $*/ | |
/* | |
* bootstrap popovers stay on hover [4/11/2014 @gdibble] | |
*/ | |
var originalLeave = $.fn.popover.Constructor.prototype.leave; | |
$.fn.popover.Constructor.prototype.leave = function (obj) { | |
var self, container; | |
if (obj.currentTarget) { | |
self = obj instanceof this.constructor ? obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type); | |
container = $(obj.currentTarget).siblings('.popover'); |
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
/* | |
* Flatten Object @gdibble: Inspired by https://gist.github.com/penguinboy/762197 | |
* input: { 'a':{ 'b':{ 'b2':2 }, 'c':{ 'c2':2, 'c3':3 } } } | |
* output: { 'a.b.b2':2, 'a.c.c2':2, 'a.c.c3':3 } | |
*/ | |
var flattenObject = function(ob) { | |
var toReturn = {}; | |
var flatObject; | |
for (var i in ob) { | |
if (!ob.hasOwnProperty(i)) { |
NewerOlder