diff --git a/js/color-thief.js b/js/color-thief.js index 08ef3c0..8f7e267 100644 --- a/js/color-thief.js +++ b/js/color-thief.js @@ -1,5 +1,5 @@ /* - * Image Palette v0.1 + * Image Palette v1.0 * by Lokesh Dhakar - http://www.lokeshdhakar.com * * Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/ diff --git a/js/libs/jquery.imagesloaded.js b/js/libs/jquery.imagesloaded.js deleted file mode 100644 index 48f0ea0..0000000 --- a/js/libs/jquery.imagesloaded.js +++ /dev/null @@ -1,54 +0,0 @@ -/*! - * jQuery imagesLoaded plugin v1.0.4 - * http://github.com/desandro/imagesloaded - * - * MIT License. by Paul Irish et al. - */ - -(function($, undefined) { - - // $('#my-container').imagesLoaded(myFunction) - // or - // $('img').imagesLoaded(myFunction) - - // execute a callback when all images have loaded. - // needed because .load() doesn't work on cached images - - // callback function gets image collection as argument - // `this` is the container - - $.fn.imagesLoaded = function( callback ) { - var $this = this, - $images = $this.find('img').add( $this.filter('img') ), - len = $images.length, - blank = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=='; - - function triggerCallback() { - callback.call( $this, $images ); - } - - function imgLoaded( event ) { - if ( --len <= 0 && event.target.src !== blank ){ - setTimeout( triggerCallback ); - $images.unbind( 'load error', imgLoaded ); - } - } - - if ( !len ) { - triggerCallback(); - } - - $images.bind( 'load error', imgLoaded ).each( function() { - // cached images don't fire load sometimes, so we reset src. - if (this.complete || this.complete === undefined){ - var src = this.src; - // webkit hack from http://groups.google.com/group/jquery-dev/browse_thread/thread/eee6ab7b2da50e1f - // data uri bypasses webkit log warning (thx doug jones) - this.src = blank; - this.src = src; - } - }); - - return $this; - }; -})(jQuery); \ No newline at end of file