From 4df99f1df784fb6f6f6b221aaf9abccfad6f2d8a Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 21 Jul 2016 15:30:04 +0200 Subject: update barba; optimize --- static/js/barba.min.js | 80 +------------------------------------------------ static/js/min.js | 80 +------------------------------------------------ static/logo.png | Bin 6550 -> 0 bytes static/logo.svg | 2 +- 4 files changed, 3 insertions(+), 159 deletions(-) delete mode 100644 static/logo.png (limited to 'static') diff --git a/static/js/barba.min.js b/static/js/barba.min.js index 5123325..9c0c811 100644 --- a/static/js/barba.min.js +++ b/static/js/barba.min.js @@ -1,79 +1 @@ -(function webpackUniversalModuleDefinition(root,factory){if(typeof exports==='object'&&typeof module==='object') -module.exports=factory();else if(typeof define==='function'&&define.amd) -define("Barba",[],factory);else if(typeof exports==='object') -exports["Barba"]=factory();else -root["Barba"]=factory();})(this,function(){return(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]) -return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.loaded=true;return module.exports;} -__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="http://localhost:8080/dist";return __webpack_require__(0);}) -([function(module,exports,__webpack_require__){if(typeof Promise!=='function'){window.Promise=__webpack_require__(1);} -var Barba={version:'0.0.9',Dispatcher:__webpack_require__(4),HistoryManager:__webpack_require__(5),BaseTransition:__webpack_require__(6),BaseView:__webpack_require__(8),Pjax:__webpack_require__(9),Prefetch:__webpack_require__(13),Utils:__webpack_require__(7)};module.exports=Barba;},function(module,exports,__webpack_require__){(function(setImmediate){(function(root){var setTimeoutFunc=setTimeout;function noop(){} -var asap=(typeof setImmediate==='function'&&setImmediate)||function(fn){setTimeoutFunc(fn,0);};var onUnhandledRejection=function onUnhandledRejection(err){if(typeof console!=='undefined'&&console){console.warn('Possible Unhandled Promise Rejection:',err);}};function bind(fn,thisArg){return function(){fn.apply(thisArg,arguments);};} -function Promise(fn){if(typeof this!=='object')throw new TypeError('Promises must be constructed via new');if(typeof fn!=='function')throw new TypeError('not a function');this._state=0;this._handled=false;this._value=undefined;this._deferreds=[];doResolve(fn,this);} -function handle(self,deferred){while(self._state===3){self=self._value;} -if(self._state===0){self._deferreds.push(deferred);return;} -self._handled=true;asap(function(){var cb=self._state===1?deferred.onFulfilled:deferred.onRejected;if(cb===null){(self._state===1?resolve:reject)(deferred.promise,self._value);return;} -var ret;try{ret=cb(self._value);}catch(e){reject(deferred.promise,e);return;} -resolve(deferred.promise,ret);});} -function resolve(self,newValue){try{if(newValue===self)throw new TypeError('A promise cannot be resolved with itself.');if(newValue&&(typeof newValue==='object'||typeof newValue==='function')){var then=newValue.then;if(newValue instanceof Promise){self._state=3;self._value=newValue;finale(self);return;}else if(typeof then==='function'){doResolve(bind(then,newValue),self);return;}} -self._state=1;self._value=newValue;finale(self);}catch(e){reject(self,e);}} -function reject(self,newValue){self._state=2;self._value=newValue;finale(self);} -function finale(self){if(self._state===2&&self._deferreds.length===0){asap(function(){if(!self._handled){onUnhandledRejection(self._value);}});} -for(var i=0,len=self._deferreds.length;i=0){item._idleTimeoutId=setTimeout(function onTimeout(){if(item._onTimeout) -item._onTimeout();},msecs);}};exports.setImmediate=typeof setImmediate==="function"?setImmediate:function(fn){var id=nextImmediateId++;var args=arguments.length<2?false:slice.call(arguments,1);immediateIds[id]=true;nextTick(function onNextTick(){if(immediateIds[id]){if(args){fn.apply(null,args);}else{fn.call(null);} -exports.clearImmediate(id);}});return id;};exports.clearImmediate=typeof clearImmediate==="function"?clearImmediate:function(id){delete immediateIds[id];};}.call(exports,__webpack_require__(2).setImmediate,__webpack_require__(2).clearImmediate))},function(module,exports){var process=module.exports={};var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return;} -draining=false;if(currentQueue.length){queue=currentQueue.concat(queue);}else{queueIndex=-1;} -if(queue.length){drainQueue();}} -function drainQueue(){if(draining){return;} -var timeout=setTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex1){for(var i=1;i1||evt.metaKey||evt.ctrlKey||evt.shiftKey||evt.altKey) -return false;if(element.target&&element.target==='_blank') -return false;if(window.location.protocol!==element.protocol||window.location.hostname!==element.hostname) -return false;if(Utils.getPort()!==Utils.getPort(element.port)) -return false;if(element.href.indexOf('#')>-1) -return false;if(Utils.cleanLink(element.href)==Utils.cleanLink(location.href)) -return false;if(element.classList.contains('no-barba')) -return false;return true;},getTransition:function(){return HideShowTransition;},onStateChange:function(){var newUrl=this.getCurrentUrl();if(this.transitionProgress) -this.forceGoTo(newUrl);if(this.History.currentStatus().url===newUrl) -return false;this.History.add(newUrl);var newContainer=this.load(newUrl);var transition=Object.create(this.getTransition());this.transitionProgress=true;Dispatcher.trigger('initStateChange',this.History.currentStatus(),this.History.prevStatus());var transitionInstance=transition.init(this.Dom.getContainer(),newContainer);newContainer.then(this.onNewContainerLoaded.bind(this));transitionInstance.then(this.onTransitionEnd.bind(this));},onNewContainerLoaded:function(container){var currentStatus=this.History.currentStatus();currentStatus.namespace=this.Dom.getNamespace(container);Dispatcher.trigger('newPageReady',this.History.currentStatus(),this.History.prevStatus(),container);},onTransitionEnd:function(){this.transitionProgress=false;Dispatcher.trigger('transitionCompleted',this.History.currentStatus(),this.History.prevStatus());}};module.exports=Pjax;},function(module,exports,__webpack_require__){var BaseTransition=__webpack_require__(6);var HideShowTransition=BaseTransition.extend({start:function(){this.newContainerLoading.then(this.hideShow.bind(this));},hideShow:function(){this.oldContainer.style.visibility='hidden';this.newContainer.style.visibility='visible';document.body.scrollTop=0;this.done();}});module.exports=HideShowTransition;},function(module,exports){var BaseCache={data:{},extend:function(obj){return Utils.extend(this,obj);},set:function(key,val){this.data[key]=val;},get:function(key){return this.data[key];},reset:function(){this.data={};}};module.exports=BaseCache;},function(module,exports){var Dom={parseResponse:function(responseText){var wrapper=document.createElement('div');wrapper.innerHTML=responseText;var titleEl=wrapper.querySelector('title');if(titleEl) -document.title=titleEl.textContent;return this.getContainer(wrapper);},getContainer:function(element){if(!element) -element=document.body;if(!element) -throw new Error('Barba.js: DOM not ready!');var container=this.parseContainer(element);if(container&&container.jquery) -container=container[0];if(!container) -throw new Error('Barba.js: no container found');return container;},dataNamespace:'namespace',wrapperId:'barba-wrapper',containerClass:'barba-container',getNamespace:function(element){if(element&&element.dataset){return element.dataset[this.dataNamespace];}else if(element){return element.getAttribute('data-'+this.dataNamespace);} -return null;},putContainer:function(element){element.style.visibility='hidden';document.getElementById(this.wrapperId).appendChild(element);},parseContainer:function(element){return element.querySelector('.'+this.containerClass);}};module.exports=Dom;},function(module,exports,__webpack_require__){var Utils=__webpack_require__(7);var Pjax=__webpack_require__(9);var Prefetch={init:function(){document.body.addEventListener('mouseover',this.onLinkEnter.bind(this));document.body.addEventListener('touchstart',this.onLinkEnter.bind(this));},onLinkEnter:function(evt){var el=evt.target;while(el&&!el.href){el=el.parentNode;} -if(!el){return;} -var url=el.href;if(Pjax.preventCheck(evt,el)&&!Pjax.Cache.get(url)){var xhr=Utils.xhr(url);Pjax.Cache.set(url,xhr);}}};module.exports=Prefetch;}])});; \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Barba",[],e):"object"==typeof exports?exports.Barba=e():t.Barba=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="http://localhost:8080/dist",e(0)}([function(t,e,n){"function"!=typeof Promise&&(window.Promise=n(1));var i={version:"0.0.10",BaseTransition:n(4),BaseView:n(6),BaseCache:n(8),Dispatcher:n(7),HistoryManager:n(9),Pjax:n(10),Prefetch:n(13),Utils:n(5)};t.exports=i},function(t,e,n){(function(e){!function(n){function i(){}function r(t,e){return function(){t.apply(e,arguments)}}function o(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(t,this)}function s(t,e){for(;3===t._state;)t=t._value;return 0===t._state?void t._deferreds.push(e):(t._handled=!0,void l(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?a:c)(e.promise,t._value);var i;try{i=n(t._value)}catch(t){return void c(e.promise,t)}a(e.promise,i)}))}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof o)return t._state=3,t._value=e,void u(t);if("function"==typeof n)return void h(r(n,e),t)}t._state=1,t._value=e,u(t)}catch(e){c(t,e)}}function c(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&l(function(){t._handled||p(t._value)});for(var e=0,n=t._deferreds.length;n>e;e++)s(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function h(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,c(e,t))})}catch(t){if(n)return;n=!0,c(e,t)}}var d=setTimeout,l="function"==typeof e&&e||function(t){d(t,0)},p=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};o.prototype.catch=function(t){return this.then(null,t)},o.prototype.then=function(t,e){var n=new this.constructor(i);return s(this,new f(t,e,n)),n},o.all=function(t){var e=Array.prototype.slice.call(t);return new o(function(t,n){function i(o,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,function(t){i(o,t)},n)}e[o]=s,0===--r&&t(e)}catch(t){n(t)}}if(0===e.length)return t([]);for(var r=e.length,o=0;oi;i++)t[i].then(e,n)})},o._setImmediateFn=function(t){l=t},o._setUnhandledRejectionFn=function(t){p=t},"undefined"!=typeof t&&t.exports?t.exports=o:n.Promise||(n.Promise=o)}(this)}).call(e,n(2).setImmediate)},function(t,e,n){(function(t,i){function r(t,e){this._id=t,this._clearFn=e}var o=n(3).nextTick,s=Function.prototype.apply,a=Array.prototype.slice,c={},u=0;e.setTimeout=function(){return new r(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=u++,i=arguments.length<2?!1:a.call(arguments,1);return c[n]=!0,o(function(){c[n]&&(i?t.apply(null,i):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof i?i:function(t){delete c[t]}}).call(e,n(2).setImmediate,n(2).clearImmediate)},function(t,e){function n(){u&&s&&(u=!1,s.length?c=s.concat(c):f=-1,c.length&&i())}function i(){if(!u){var t=setTimeout(n);u=!0;for(var e=c.length;e;){for(s=c,c=[];++f1)for(var n=1;n1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?!1:e.target&&"_blank"===e.target?!1:window.location.protocol!==e.protocol||window.location.hostname!==e.hostname?!1:i.getPort()!==i.getPort(e.port)?!1:e.href.indexOf("#")>-1?!1:i.cleanLink(e.href)==i.cleanLink(location.href)?!1:!e.classList.contains(this.ignoreClassLink):!1},getTransition:function(){return o},onStateChange:function(){var t=this.getCurrentUrl();if(this.transitionProgress&&this.forceGoTo(t),this.History.currentStatus().url===t)return!1;this.History.add(t);var e=this.load(t),n=Object.create(this.getTransition());this.transitionProgress=!0,r.trigger("initStateChange",this.History.currentStatus(),this.History.prevStatus());var i=n.init(this.Dom.getContainer(),e);e.then(this.onNewContainerLoaded.bind(this)),i.then(this.onTransitionEnd.bind(this))},onNewContainerLoaded:function(t){var e=this.History.currentStatus();e.namespace=this.Dom.getNamespace(t),r.trigger("newPageReady",this.History.currentStatus(),this.History.prevStatus(),t)},onTransitionEnd:function(){this.transitionProgress=!1,r.trigger("transitionCompleted",this.History.currentStatus(),this.History.prevStatus())}};t.exports=u},function(t,e,n){var i=n(4),r=i.extend({start:function(){this.newContainerLoading.then(this.finish.bind(this))},finish:function(){document.body.scrollTop=0,this.done()}});t.exports=r},function(t,e){var n={dataNamespace:"namespace",wrapperId:"barba-wrapper",containerClass:"barba-container",parseResponse:function(t){var e=document.createElement("div");e.innerHTML=t;var n=e.querySelector("title");return n&&(document.title=n.textContent),this.getContainer(e)},getWrapper:function(){var t=document.getElementById(this.wrapperId);if(!t)throw new Error("Barba.js: wrapper not found!");return t},getContainer:function(t){if(t||(t=document.body),!t)throw new Error("Barba.js: DOM not ready!");var e=this.parseContainer(t);if(e&&e.jquery&&(e=e[0]),!e)throw new Error("Barba.js: no container found");return e},getNamespace:function(t){return t&&t.dataset?t.dataset[this.dataNamespace]:t?t.getAttribute("data-"+this.dataNamespace):null},putContainer:function(t){t.style.visibility="hidden";var e=this.getWrapper();e.appendChild(t)},parseContainer:function(t){return t.querySelector("."+this.containerClass)}};t.exports=n},function(t,e,n){var i=n(5),r=n(10),o={ignoreClassLink:"no-barba-prefetch",init:function(){return window.history.pushState?(document.body.addEventListener("mouseover",this.onLinkEnter.bind(this)),void document.body.addEventListener("touchstart",this.onLinkEnter.bind(this))):!1},onLinkEnter:function(t){for(var e=t.target;e&&!e.href;)e=e.parentNode;if(e&&!e.classList.contains(this.ignoreClassLink)){var n=e.href;if(r.preventCheck(t,e)&&!r.Cache.get(n)){var o=i.xhr(n);r.Cache.set(n,o)}}}};t.exports=o}])}); \ No newline at end of file diff --git a/static/js/min.js b/static/js/min.js index 5123325..aea6877 100644 --- a/static/js/min.js +++ b/static/js/min.js @@ -1,79 +1 @@ -(function webpackUniversalModuleDefinition(root,factory){if(typeof exports==='object'&&typeof module==='object') -module.exports=factory();else if(typeof define==='function'&&define.amd) -define("Barba",[],factory);else if(typeof exports==='object') -exports["Barba"]=factory();else -root["Barba"]=factory();})(this,function(){return(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]) -return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.loaded=true;return module.exports;} -__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="http://localhost:8080/dist";return __webpack_require__(0);}) -([function(module,exports,__webpack_require__){if(typeof Promise!=='function'){window.Promise=__webpack_require__(1);} -var Barba={version:'0.0.9',Dispatcher:__webpack_require__(4),HistoryManager:__webpack_require__(5),BaseTransition:__webpack_require__(6),BaseView:__webpack_require__(8),Pjax:__webpack_require__(9),Prefetch:__webpack_require__(13),Utils:__webpack_require__(7)};module.exports=Barba;},function(module,exports,__webpack_require__){(function(setImmediate){(function(root){var setTimeoutFunc=setTimeout;function noop(){} -var asap=(typeof setImmediate==='function'&&setImmediate)||function(fn){setTimeoutFunc(fn,0);};var onUnhandledRejection=function onUnhandledRejection(err){if(typeof console!=='undefined'&&console){console.warn('Possible Unhandled Promise Rejection:',err);}};function bind(fn,thisArg){return function(){fn.apply(thisArg,arguments);};} -function Promise(fn){if(typeof this!=='object')throw new TypeError('Promises must be constructed via new');if(typeof fn!=='function')throw new TypeError('not a function');this._state=0;this._handled=false;this._value=undefined;this._deferreds=[];doResolve(fn,this);} -function handle(self,deferred){while(self._state===3){self=self._value;} -if(self._state===0){self._deferreds.push(deferred);return;} -self._handled=true;asap(function(){var cb=self._state===1?deferred.onFulfilled:deferred.onRejected;if(cb===null){(self._state===1?resolve:reject)(deferred.promise,self._value);return;} -var ret;try{ret=cb(self._value);}catch(e){reject(deferred.promise,e);return;} -resolve(deferred.promise,ret);});} -function resolve(self,newValue){try{if(newValue===self)throw new TypeError('A promise cannot be resolved with itself.');if(newValue&&(typeof newValue==='object'||typeof newValue==='function')){var then=newValue.then;if(newValue instanceof Promise){self._state=3;self._value=newValue;finale(self);return;}else if(typeof then==='function'){doResolve(bind(then,newValue),self);return;}} -self._state=1;self._value=newValue;finale(self);}catch(e){reject(self,e);}} -function reject(self,newValue){self._state=2;self._value=newValue;finale(self);} -function finale(self){if(self._state===2&&self._deferreds.length===0){asap(function(){if(!self._handled){onUnhandledRejection(self._value);}});} -for(var i=0,len=self._deferreds.length;i=0){item._idleTimeoutId=setTimeout(function onTimeout(){if(item._onTimeout) -item._onTimeout();},msecs);}};exports.setImmediate=typeof setImmediate==="function"?setImmediate:function(fn){var id=nextImmediateId++;var args=arguments.length<2?false:slice.call(arguments,1);immediateIds[id]=true;nextTick(function onNextTick(){if(immediateIds[id]){if(args){fn.apply(null,args);}else{fn.call(null);} -exports.clearImmediate(id);}});return id;};exports.clearImmediate=typeof clearImmediate==="function"?clearImmediate:function(id){delete immediateIds[id];};}.call(exports,__webpack_require__(2).setImmediate,__webpack_require__(2).clearImmediate))},function(module,exports){var process=module.exports={};var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return;} -draining=false;if(currentQueue.length){queue=currentQueue.concat(queue);}else{queueIndex=-1;} -if(queue.length){drainQueue();}} -function drainQueue(){if(draining){return;} -var timeout=setTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex1){for(var i=1;i1||evt.metaKey||evt.ctrlKey||evt.shiftKey||evt.altKey) -return false;if(element.target&&element.target==='_blank') -return false;if(window.location.protocol!==element.protocol||window.location.hostname!==element.hostname) -return false;if(Utils.getPort()!==Utils.getPort(element.port)) -return false;if(element.href.indexOf('#')>-1) -return false;if(Utils.cleanLink(element.href)==Utils.cleanLink(location.href)) -return false;if(element.classList.contains('no-barba')) -return false;return true;},getTransition:function(){return HideShowTransition;},onStateChange:function(){var newUrl=this.getCurrentUrl();if(this.transitionProgress) -this.forceGoTo(newUrl);if(this.History.currentStatus().url===newUrl) -return false;this.History.add(newUrl);var newContainer=this.load(newUrl);var transition=Object.create(this.getTransition());this.transitionProgress=true;Dispatcher.trigger('initStateChange',this.History.currentStatus(),this.History.prevStatus());var transitionInstance=transition.init(this.Dom.getContainer(),newContainer);newContainer.then(this.onNewContainerLoaded.bind(this));transitionInstance.then(this.onTransitionEnd.bind(this));},onNewContainerLoaded:function(container){var currentStatus=this.History.currentStatus();currentStatus.namespace=this.Dom.getNamespace(container);Dispatcher.trigger('newPageReady',this.History.currentStatus(),this.History.prevStatus(),container);},onTransitionEnd:function(){this.transitionProgress=false;Dispatcher.trigger('transitionCompleted',this.History.currentStatus(),this.History.prevStatus());}};module.exports=Pjax;},function(module,exports,__webpack_require__){var BaseTransition=__webpack_require__(6);var HideShowTransition=BaseTransition.extend({start:function(){this.newContainerLoading.then(this.hideShow.bind(this));},hideShow:function(){this.oldContainer.style.visibility='hidden';this.newContainer.style.visibility='visible';document.body.scrollTop=0;this.done();}});module.exports=HideShowTransition;},function(module,exports){var BaseCache={data:{},extend:function(obj){return Utils.extend(this,obj);},set:function(key,val){this.data[key]=val;},get:function(key){return this.data[key];},reset:function(){this.data={};}};module.exports=BaseCache;},function(module,exports){var Dom={parseResponse:function(responseText){var wrapper=document.createElement('div');wrapper.innerHTML=responseText;var titleEl=wrapper.querySelector('title');if(titleEl) -document.title=titleEl.textContent;return this.getContainer(wrapper);},getContainer:function(element){if(!element) -element=document.body;if(!element) -throw new Error('Barba.js: DOM not ready!');var container=this.parseContainer(element);if(container&&container.jquery) -container=container[0];if(!container) -throw new Error('Barba.js: no container found');return container;},dataNamespace:'namespace',wrapperId:'barba-wrapper',containerClass:'barba-container',getNamespace:function(element){if(element&&element.dataset){return element.dataset[this.dataNamespace];}else if(element){return element.getAttribute('data-'+this.dataNamespace);} -return null;},putContainer:function(element){element.style.visibility='hidden';document.getElementById(this.wrapperId).appendChild(element);},parseContainer:function(element){return element.querySelector('.'+this.containerClass);}};module.exports=Dom;},function(module,exports,__webpack_require__){var Utils=__webpack_require__(7);var Pjax=__webpack_require__(9);var Prefetch={init:function(){document.body.addEventListener('mouseover',this.onLinkEnter.bind(this));document.body.addEventListener('touchstart',this.onLinkEnter.bind(this));},onLinkEnter:function(evt){var el=evt.target;while(el&&!el.href){el=el.parentNode;} -if(!el){return;} -var url=el.href;if(Pjax.preventCheck(evt,el)&&!Pjax.Cache.get(url)){var xhr=Utils.xhr(url);Pjax.Cache.set(url,xhr);}}};module.exports=Prefetch;}])});; \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Barba",[],e):"object"==typeof exports?exports.Barba=e():t.Barba=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="http://localhost:8080/dist",e(0)}([function(t,e,n){"function"!=typeof Promise&&(window.Promise=n(1));var i={version:"0.0.10",BaseTransition:n(4),BaseView:n(6),BaseCache:n(8),Dispatcher:n(7),HistoryManager:n(9),Pjax:n(10),Prefetch:n(13),Utils:n(5)};t.exports=i},function(t,e,n){(function(e){!function(n){function i(){}function r(t,e){return function(){t.apply(e,arguments)}}function o(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(t,this)}function s(t,e){for(;3===t._state;)t=t._value;return 0===t._state?void t._deferreds.push(e):(t._handled=!0,void l(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?a:c)(e.promise,t._value);var i;try{i=n(t._value)}catch(t){return void c(e.promise,t)}a(e.promise,i)}))}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof o)return t._state=3,t._value=e,void u(t);if("function"==typeof n)return void h(r(n,e),t)}t._state=1,t._value=e,u(t)}catch(e){c(t,e)}}function c(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&l(function(){t._handled||p(t._value)});for(var e=0,n=t._deferreds.length;n>e;e++)s(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function h(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,c(e,t))})}catch(t){if(n)return;n=!0,c(e,t)}}var d=setTimeout,l="function"==typeof e&&e||function(t){d(t,0)},p=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};o.prototype.catch=function(t){return this.then(null,t)},o.prototype.then=function(t,e){var n=new this.constructor(i);return s(this,new f(t,e,n)),n},o.all=function(t){var e=Array.prototype.slice.call(t);return new o(function(t,n){function i(o,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,function(t){i(o,t)},n)}e[o]=s,0===--r&&t(e)}catch(t){n(t)}}if(0===e.length)return t([]);for(var r=e.length,o=0;oi;i++)t[i].then(e,n)})},o._setImmediateFn=function(t){l=t},o._setUnhandledRejectionFn=function(t){p=t},"undefined"!=typeof t&&t.exports?t.exports=o:n.Promise||(n.Promise=o)}(this)}).call(e,n(2).setImmediate)},function(t,e,n){(function(t,i){function r(t,e){this._id=t,this._clearFn=e}var o=n(3).nextTick,s=Function.prototype.apply,a=Array.prototype.slice,c={},u=0;e.setTimeout=function(){return new r(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=u++,i=arguments.length<2?!1:a.call(arguments,1);return c[n]=!0,o(function(){c[n]&&(i?t.apply(null,i):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof i?i:function(t){delete c[t]}}).call(e,n(2).setImmediate,n(2).clearImmediate)},function(t,e){function n(){u&&s&&(u=!1,s.length?c=s.concat(c):f=-1,c.length&&i())}function i(){if(!u){var t=setTimeout(n);u=!0;for(var e=c.length;e;){for(s=c,c=[];++f1)for(var n=1;n1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?!1:e.target&&"_blank"===e.target?!1:window.location.protocol!==e.protocol||window.location.hostname!==e.hostname?!1:i.getPort()!==i.getPort(e.port)?!1:e.href.indexOf("#")>-1?!1:i.cleanLink(e.href)==i.cleanLink(location.href)?!1:!e.classList.contains(this.ignoreClassLink):!1},getTransition:function(){return o},onStateChange:function(){var t=this.getCurrentUrl();if(this.transitionProgress&&this.forceGoTo(t),this.History.currentStatus().url===t)return!1;this.History.add(t);var e=this.load(t),n=Object.create(this.getTransition());this.transitionProgress=!0,r.trigger("initStateChange",this.History.currentStatus(),this.History.prevStatus());var i=n.init(this.Dom.getContainer(),e);e.then(this.onNewContainerLoaded.bind(this)),i.then(this.onTransitionEnd.bind(this))},onNewContainerLoaded:function(t){var e=this.History.currentStatus();e.namespace=this.Dom.getNamespace(t),r.trigger("newPageReady",this.History.currentStatus(),this.History.prevStatus(),t)},onTransitionEnd:function(){this.transitionProgress=!1,r.trigger("transitionCompleted",this.History.currentStatus(),this.History.prevStatus())}};t.exports=u},function(t,e,n){var i=n(4),r=i.extend({start:function(){this.newContainerLoading.then(this.finish.bind(this))},finish:function(){document.body.scrollTop=0,this.done()}});t.exports=r},function(t,e){var n={dataNamespace:"namespace",wrapperId:"barba-wrapper",containerClass:"barba-container",parseResponse:function(t){var e=document.createElement("div");e.innerHTML=t;var n=e.querySelector("title");return n&&(document.title=n.textContent),this.getContainer(e)},getWrapper:function(){var t=document.getElementById(this.wrapperId);if(!t)throw new Error("Barba.js: wrapper not found!");return t},getContainer:function(t){if(t||(t=document.body),!t)throw new Error("Barba.js: DOM not ready!");var e=this.parseContainer(t);if(e&&e.jquery&&(e=e[0]),!e)throw new Error("Barba.js: no container found");return e},getNamespace:function(t){return t&&t.dataset?t.dataset[this.dataNamespace]:t?t.getAttribute("data-"+this.dataNamespace):null},putContainer:function(t){t.style.visibility="hidden";var e=this.getWrapper();e.appendChild(t)},parseContainer:function(t){return t.querySelector("."+this.containerClass)}};t.exports=n},function(t,e,n){var i=n(5),r=n(10),o={ignoreClassLink:"no-barba-prefetch",init:function(){return window.history.pushState?(document.body.addEventListener("mouseover",this.onLinkEnter.bind(this)),void document.body.addEventListener("touchstart",this.onLinkEnter.bind(this))):!1},onLinkEnter:function(t){for(var e=t.target;e&&!e.href;)e=e.parentNode;if(e&&!e.classList.contains(this.ignoreClassLink)){var n=e.href;if(r.preventCheck(t,e)&&!r.Cache.get(n)){var o=i.xhr(n);r.Cache.set(n,o)}}}};t.exports=o}])});Barba.Pjax.start();Barba.Prefetch.init(); \ No newline at end of file diff --git a/static/logo.png b/static/logo.png deleted file mode 100644 index 5087446..0000000 Binary files a/static/logo.png and /dev/null differ diff --git a/static/logo.svg b/static/logo.svg index 182842b..577a271 100644 --- a/static/logo.svg +++ b/static/logo.svg @@ -1 +1 @@ - \ No newline at end of file + -- cgit v1.3.1