Permalink
Browse files

finalizing 1.2.7

  • Loading branch information...
1 parent 9ddefcb commit 077bf245b25ceb274424dbbfdc10de8ce8c8cf0b @davidhellsing davidhellsing committed Apr 4, 2012
View
13 src/plugins/flickr/galleria.flickr.js
@@ -1,17 +1,18 @@
/**
- * @preserve Galleria Flickr Plugin 2011-08-01
- * http://galleria.aino.se
+ * Galleria Flickr Plugin 2012-04-04
+ * http://galleria.io
+ *
+ * Licensed under the MIT license
+ * https://raw.github.com/aino/galleria/master/LICENSE
*
- * Copyright (c) 2012, Aino
- * Licensed under the MIT license.
*/
+(function($) {
+
/*global jQuery, Galleria, window */
Galleria.requires(1.25, 'The Flickr Plugin requires Galleria version 1.2.5 or later.');
-(function($) {
-
// The script path
var PATH = Galleria.utils.getScriptPath();
View
186 src/plugins/history/galleria.history.js
@@ -1,146 +1,146 @@
/**
- * @preserve Galleria History Plugin 2011-08-01
- * http://galleria.aino.se
+ * Galleria History Plugin 2012-04-04
+ * http://galleria.io
*
- * Copyright (c) 2012, Aino
- * Licensed under the MIT license.
+ * Licensed under the MIT license
+ * https://raw.github.com/aino/galleria/master/LICENSE
*
*/
+(function( $, window ) {
+
/*global jQuery, Galleria, window */
Galleria.requires(1.25, 'The History Plugin requires Galleria version 1.2.5 or later.');
-(function( $, window ) {
-
- Galleria.History = (function() {
+Galleria.History = (function() {
- var onloads = [],
+ var onloads = [],
- init = false,
+ init = false,
- loc = window.location,
+ loc = window.location,
- doc = window.document,
+ doc = window.document,
- ie = Galleria.IE,
+ ie = Galleria.IE,
- support = 'onhashchange' in window && ( doc.mode === undefined || doc.mode > 7 ),
+ support = 'onhashchange' in window && ( doc.mode === undefined || doc.mode > 7 ),
- iframe,
+ iframe,
- get = function( winloc ) {
- if( iframe && !support && Galleria.IE ) {
- winloc = winloc || iframe.location;
- } else {
- winloc = loc;
- }
- return parseInt( winloc.hash.substr(2), 10 );
- },
+ get = function( winloc ) {
+ if( iframe && !support && Galleria.IE ) {
+ winloc = winloc || iframe.location;
+ } else {
+ winloc = loc;
+ }
+ return parseInt( winloc.hash.substr(2), 10 );
+ },
- saved = get( loc ),
+ saved = get( loc ),
- callbacks = [],
+ callbacks = [],
- onchange = function() {
- $.each( callbacks, function( i, fn ) {
- fn.call( window, get() );
- });
- },
+ onchange = function() {
+ $.each( callbacks, function( i, fn ) {
+ fn.call( window, get() );
+ });
+ },
- ready = function() {
- $.each( onloads, function(i, fn) {
- fn();
- });
+ ready = function() {
+ $.each( onloads, function(i, fn) {
+ fn();
+ });
- init = true;
- },
+ init = true;
+ },
- setHash = function( val ) {
- return '/' + val;
- };
+ setHash = function( val ) {
+ return '/' + val;
+ };
- // always remove support if IE < 8
- if ( support && ie < 8 ) {
- support = false;
- }
+ // always remove support if IE < 8
+ if ( support && ie < 8 ) {
+ support = false;
+ }
- if ( !support ) {
+ if ( !support ) {
- $(function() {
+ $(function() {
- var interval = window.setInterval(function() {
+ var interval = window.setInterval(function() {
- var hash = get();
+ var hash = get();
- if ( !isNaN( hash ) && hash != saved ) {
- saved = hash;
- loc.hash = setHash( hash );
- onchange();
- }
+ if ( !isNaN( hash ) && hash != saved ) {
+ saved = hash;
+ loc.hash = setHash( hash );
+ onchange();
+ }
- }, 50);
+ }, 50);
- if ( ie ) {
+ if ( ie ) {
- $('<iframe tabindex="-1" title="empty">').hide().attr( 'src', 'about:blank' ).one('load', function() {
+ $('<iframe tabindex="-1" title="empty">').hide().attr( 'src', 'about:blank' ).one('load', function() {
- iframe = this.contentWindow;
+ iframe = this.contentWindow;
- ready();
+ ready();
- }).insertAfter(doc.body);
+ }).insertAfter(doc.body);
- } else {
- ready();
- }
- });
- } else {
- ready();
- }
+ } else {
+ ready();
+ }
+ });
+ } else {
+ ready();
+ }
- return {
+ return {
- change: function( fn ) {
+ change: function( fn ) {
- callbacks.push( fn );
+ callbacks.push( fn );
- if( support ) {
- window.onhashchange = onchange;
- }
- },
+ if( support ) {
+ window.onhashchange = onchange;
+ }
+ },
- set: function( val ) {
+ set: function( val ) {
- if ( isNaN( val ) ) {
- return;
- }
+ if ( isNaN( val ) ) {
+ return;
+ }
- if ( !support && ie ) {
+ if ( !support && ie ) {
- this.ready(function() {
+ this.ready(function() {
- var idoc = iframe.document;
- idoc.open();
- idoc.close();
+ var idoc = iframe.document;
+ idoc.open();
+ idoc.close();
- iframe.location.hash = setHash( val );
+ iframe.location.hash = setHash( val );
- });
- }
+ });
+ }
- loc.hash = setHash( val );
- },
+ loc.hash = setHash( val );
+ },
- ready: function(fn) {
- if (!init) {
- onloads.push(fn);
- } else {
- fn();
- }
+ ready: function(fn) {
+ if (!init) {
+ onloads.push(fn);
+ } else {
+ fn();
}
- };
- }());
+ }
+ };
+}());
}( jQuery, this ));
View
13 src/plugins/picasa/galleria.picasa.js
@@ -1,17 +1,18 @@
/**
- * @preserve Galleria Picasa Plugin 2011-08-01
- * http://galleria.aino.se
+ * Galleria Picasa Plugin 2012-04-04
+ * http://galleria.io
+ *
+ * Licensed under the MIT license
+ * https://raw.github.com/aino/galleria/master/LICENSE
*
- * Copyright (c) 2012, Aino
- * Licensed under the MIT license.
*/
+(function($) {
+
/*global jQuery, Galleria, window */
Galleria.requires(1.25, 'The Picasa Plugin requires Galleria version 1.2.5 or later.');
-(function($) {
-
// The script path
var PATH = Galleria.utils.getScriptPath();

0 comments on commit 077bf24

Please sign in to comment.