first hugo commit

This commit is contained in:
Don Harper 2019-05-26 18:26:26 -05:00
parent dabdd68df3
commit 0e4f2a913d
1459 changed files with 50871 additions and 0 deletions

View file

@ -0,0 +1,147 @@
/**
* Galleria History Plugin 2016-09-03
* http://galleria.io
*
* Copyright (c) 2010 - 2017 worse is better UG
* Licensed under the MIT license
* https://raw.github.com/worseisbetter/galleria/master/LICENSE
*
*/
(function( $, window ) {
/*global jQuery, Galleria, window */
Galleria.requires(1.25, 'The History Plugin requires Galleria version 1.2.5 or later.');
Galleria.History = (function() {
var onloads = [],
init = false,
loc = window.location,
doc = window.document,
ie = Galleria.IE,
support = 'onhashchange' in window && ( doc.mode === undefined || doc.mode > 7 ),
iframe,
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 ),
callbacks = [],
onchange = function() {
$.each( callbacks, function( i, fn ) {
fn.call( window, get() );
});
},
ready = function() {
$.each( onloads, function(i, fn) {
fn();
});
init = true;
},
setHash = function( val ) {
return '/' + val;
};
// always remove support if IE < 8
if ( support && ie < 8 ) {
support = false;
}
if ( !support ) {
$(function() {
var interval = window.setInterval(function() {
var hash = get();
if ( !isNaN( hash ) && hash != saved ) {
saved = hash;
loc.hash = setHash( hash );
onchange();
}
}, 50);
if ( ie ) {
$('<iframe tabindex="-1" title="empty">').hide().attr( 'src', 'about:blank' ).one('load', function() {
iframe = this.contentWindow;
ready();
}).insertAfter(doc.body);
} else {
ready();
}
});
} else {
ready();
}
return {
change: function( fn ) {
callbacks.push( fn );
if( support ) {
window.onhashchange = onchange;
}
},
set: function( val ) {
if ( isNaN( val ) ) {
return;
}
if ( !support && ie ) {
this.ready(function() {
var idoc = iframe.document;
idoc.open();
idoc.close();
iframe.location.hash = setHash( val );
});
}
loc.hash = setHash( val );
},
ready: function(fn) {
if (!init) {
onloads.push(fn);
} else {
fn();
}
}
};
}());
}( jQuery, this ));

View file

@ -0,0 +1,11 @@
/**
* Galleria - v1.5.7 2017-05-10
* https://galleria.io
*
* Copyright (c) 2010 - 2017 worse is better UG
* Licensed under the MIT License.
* https://raw.github.com/worseisbetter/galleria/master/LICENSE
*
*/
!function(a,b){Galleria.requires(1.25,"The History Plugin requires Galleria version 1.2.5 or later."),Galleria.History=function(){var c,d=[],e=!1,f=b.location,g=b.document,h=Galleria.IE,i="onhashchange"in b&&(void 0===g.mode||g.mode>7),j=function(a){return a=c&&!i&&Galleria.IE?a||c.location:f,parseInt(a.hash.substr(2),10)},k=j(f),l=[],m=function(){a.each(l,function(a,c){c.call(b,j())})},n=function(){a.each(d,function(a,b){b()}),e=!0},o=function(a){return"/"+a};return i&&h<8&&(i=!1),i?n():a(function(){b.setInterval(function(){var a=j();isNaN(a)||a==k||(k=a,f.hash=o(a),m())},50);h?a('<iframe tabindex="-1" title="empty">').hide().attr("src","about:blank").one("load",function(){c=this.contentWindow,n()}).insertAfter(g.body):n()}),{change:function(a){l.push(a),i&&(b.onhashchange=m)},set:function(a){isNaN(a)||(!i&&h&&this.ready(function(){var b=c.document;b.open(),b.close(),c.location.hash=o(a)}),f.hash=o(a))},ready:function(a){e?a():d.push(a)}}}()}(jQuery,this);