diff --git a/resources/GliderJs/1.7.6/LICENSE.txt b/resources/GliderJs/1.7.6/LICENSE.txt deleted file mode 100644 index 1f95d26..0000000 --- a/resources/GliderJs/1.7.6/LICENSE.txt +++ /dev/null @@ -1,5 +0,0 @@ -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/resources/GliderJs/1.7.6/glider-compat.min.js b/resources/GliderJs/1.7.6/glider-compat.min.js deleted file mode 100644 index 6e001f9..0000000 --- a/resources/GliderJs/1.7.6/glider-compat.min.js +++ /dev/null @@ -1,11 +0,0 @@ -"document"in self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||!function(b){if("Element"in b){b=b.Element.prototype;var d=Object,g=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array.prototype.indexOf||function(l){for(var f=0,a=this.length;a>f;f++)if(f in this&&this[f]===l)return f;return-1},c=function(a,f){this.name=a;this.code=DOMException[a];this.message=f},h=function(l, -f){if(""===f)throw new c("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(f))throw new c("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(l,f)},k=function(a){var f=g.call(a.getAttribute("class")||"");f=f?f.split(/\s+/):[];for(var b=0,h=f.length;h>b;b++)this.push(f[b]);this._updateClassName=function(){a.setAttribute("class",this.toString())}},e=k.prototype=[],m=function(){return new k(this)};if(c.prototype=Error.prototype,e.item=function(a){return this[a]|| -null},e.contains=function(a){return~h(this,a+"")},e.add=function(){var a=arguments,f=0,b=a.length,c=!1;do{var e=a[f]+"";~h(this,e)||(this.push(e),c=!0)}while(++fc;c++)a=arguments[c],b.call(this,a)}};d("add");d("remove")}if(b.classList.toggle("c3",!1),b.classList.contains("c3")){var g=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(a,b){return 1 in arguments&&!this.contains(a)==!b?b:g.call(this,a)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(a,b){var c=this.toString().split(" "),d=c.indexOf(a+ -"");~d&&(c=c.slice(d),this.remove.apply(this,c),this.add(b),this.add.apply(this,c.slice(1)))});b=null}()); -(function(){if("undefined"!==typeof window)try{var b=new window.CustomEvent("test",{cancelable:!0});b.preventDefault();if(!0!==b.defaultPrevented)throw Error("Could not prevent default");}catch(d){b=function(b,a){a=a||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent("CustomEvent");c.initCustomEvent(b,a.bubbles,a.cancelable,a.detail);var d=c.preventDefault;c.preventDefault=function(){d.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(k){this.defaultPrevented= -!0}};return c},b.prototype=window.Event.prototype,window.CustomEvent=b}})(); -Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(b){if(void 0===b||null===b)throw new TypeError("Cannot convert first argument to object");for(var d=Object(b),g=1;g= _.trackWidth - - if (!_.opt.rewind) { - if (_.arrows.prev) { - _.arrows.prev.classList.toggle( - 'disabled', - _.ele.scrollLeft <= 0 || disableArrows - ) - _.arrows.prev.classList.contains('disabled') - ? _.arrows.prev.setAttribute('aria-disabled', true) - : _.arrows.prev.setAttribute('aria-disabled', false) - } - if (_.arrows.next) { - _.arrows.next.classList.toggle( - 'disabled', - Math.ceil(_.scrollLeft + _.containerWidth) >= - Math.floor(_.trackWidth) || disableArrows - ) - _.arrows.next.classList.contains('disabled') - ? _.arrows.next.setAttribute('aria-disabled', true) - : _.arrows.next.setAttribute('aria-disabled', false) - } - } - - _.slide = Math.round(_.scrollLeft / _.itemWidth) - _.page = Math.round(_.scrollLeft / _.containerWidth) - - var middle = _.slide + Math.floor(Math.floor(_.opt.slidesToShow) / 2) - - var extraMiddle = Math.floor(_.opt.slidesToShow) % 2 ? 0 : middle + 1 - if (Math.floor(_.opt.slidesToShow) === 1) { - extraMiddle = 0 - } - - // the last page may be less than one half of a normal page width so - // the page is rounded down. when at the end, force the page to turn - if (_.scrollLeft + _.containerWidth >= Math.floor(_.trackWidth)) { - _.page = _.dots ? _.dots.children.length - 1 : 0 - } - - [].forEach.call(_.slides, function (slide, index) { - var slideClasses = slide.classList - - var wasVisible = slideClasses.contains('visible') - - var start = _.scrollLeft - - var end = _.scrollLeft + _.containerWidth - - var itemStart = _.itemWidth * index - - var itemEnd = itemStart + _.itemWidth; - - [].forEach.call(slideClasses, function (className) { - /^left|right/.test(className) && slideClasses.remove(className) - }) - slideClasses.toggle('active', _.slide === index) - if (middle === index || (extraMiddle && extraMiddle === index)) { - slideClasses.add('center') - } else { - slideClasses.remove('center') - slideClasses.add( - [ - index < middle ? 'left' : 'right', - Math.abs(index - (index < middle ? middle : extraMiddle || middle)) - ].join('-') - ) - } - - var isVisible = - Math.ceil(itemStart) >= Math.floor(start) && - Math.floor(itemEnd) <= Math.ceil(end) - slideClasses.toggle('visible', isVisible) - if (isVisible !== wasVisible) { - _.emit('slide-' + (isVisible ? 'visible' : 'hidden'), { - slide: index - }) - } - }) - if (_.dots) { - [].forEach.call(_.dots.children, function (dot, index) { - dot.classList.toggle('active', _.page === index) - }) - } - - if (event && _.opt.scrollLock) { - clearTimeout(_.scrollLock) - _.scrollLock = setTimeout(function () { - clearTimeout(_.scrollLock) - // dont attempt to scroll less than a pixel fraction - causes looping - if (Math.abs(_.ele.scrollLeft / _.itemWidth - _.slide) > 0.02) { - if (!_.mouseDown) { - // Only scroll if not at the end (#94) - if (_.trackWidth > _.containerWidth + _.ele.scrollLeft) { - _.scrollItem(_.getCurrentSlide()) - } - } - } - }, _.opt.scrollLockDelay || 250) - } - } - - gliderPrototype.getCurrentSlide = function () { - var _ = this - return _.round(_.ele.scrollLeft / _.itemWidth) - } - - gliderPrototype.scrollItem = function (slide, dot, e) { - if (e) e.preventDefault() - - var _ = this - - var originalSlide = slide - ++_.animate_id - - if (dot === true) { - slide = slide * _.containerWidth - slide = Math.round(slide / _.itemWidth) * _.itemWidth - } else { - if (typeof slide === 'string') { - var backwards = slide === 'prev' - - // use precise location if fractional slides are on - if (_.opt.slidesToScroll % 1 || _.opt.slidesToShow % 1) { - slide = _.getCurrentSlide() - } else { - slide = _.slide - } - - if (backwards) slide -= _.opt.slidesToScroll - else slide += _.opt.slidesToScroll - - if (_.opt.rewind) { - var scrollLeft = _.ele.scrollLeft - slide = - backwards && !scrollLeft - ? _.slides.length - : !backwards && - scrollLeft + _.containerWidth >= Math.floor(_.trackWidth) - ? 0 - : slide - } - } - - slide = Math.max(Math.min(slide, _.slides.length), 0) - - _.slide = slide - slide = _.itemWidth * slide - } - - _.scrollTo( - slide, - _.opt.duration * Math.abs(_.ele.scrollLeft - slide), - function () { - _.updateControls() - _.emit('animated', { - value: originalSlide, - type: - typeof originalSlide === 'string' ? 'arrow' : dot ? 'dot' : 'slide' - }) - } - ) - - return false - } - - gliderPrototype.settingsBreakpoint = function () { - var _ = this - - var resp = _._opt.responsive - - if (resp) { - // Sort the breakpoints in mobile first order - resp.sort(function (a, b) { - return b.breakpoint - a.breakpoint - }) - - for (var i = 0; i < resp.length; ++i) { - var size = resp[i] - if (_window.innerWidth >= size.breakpoint) { - if (_.breakpoint !== size.breakpoint) { - _.opt = Object.assign({}, _._opt, size.settings) - _.breakpoint = size.breakpoint - return true - } - return false - } - } - } - // set back to defaults in case they were overriden - var breakpointChanged = _.breakpoint !== 0 - _.opt = Object.assign({}, _._opt) - _.breakpoint = 0 - return breakpointChanged - } - - gliderPrototype.scrollTo = function (scrollTarget, scrollDuration, callback) { - var _ = this - - var start = new Date().getTime() - - var animateIndex = _.animate_id - - var animate = function () { - var now = new Date().getTime() - start - _.scrollLeft = - _.scrollLeft + - (scrollTarget - _.scrollLeft) * - _.opt.easing(0, now, 0, 1, scrollDuration) - _.ele.scrollLeft = _.scrollLeft - - if (now < scrollDuration && animateIndex === _.animate_id) { - _window.requestAnimationFrame(animate) - } else { - _.ele.scrollLeft = _.scrollLeft = scrollTarget - callback && callback.call(_) - } - } - - _window.requestAnimationFrame(animate) - } - - gliderPrototype.removeItem = function (index) { - var _ = this - - if (_.slides.length) { - _.track.removeChild(_.slides[index]) - _.refresh(true) - _.emit('remove') - } - } - - gliderPrototype.addItem = function (ele) { - var _ = this - - _.track.appendChild(ele) - _.refresh(true) - _.emit('add') - } - - gliderPrototype.handleMouse = function (e) { - var _ = this - if (_.mouseDown) { - _.isDrag = true - _.scrollLeft += (_.mouseDown - e.clientX) * (_.opt.dragVelocity || 3.3) - _.mouseDown = e.clientX - _.ele.scrollLeft = _.scrollLeft - } - } - - // used to round to the nearest 0.XX fraction - gliderPrototype.round = function (double) { - var _ = this - var step = _.opt.slidesToScroll % 1 || 1 - var inv = 1.0 / step - return Math.round(double * inv) / inv - } - - gliderPrototype.refresh = function (paging) { - var _ = this - _.init(true, paging) - } - - gliderPrototype.setOption = function (opt, global) { - var _ = this - - if (_.breakpoint && !global) { - _._opt.responsive.forEach(function (v) { - if (v.breakpoint === _.breakpoint) { - v.settings = Object.assign({}, v.settings, opt) - } - }) - } else { - _._opt = Object.assign({}, _._opt, opt) - } - - _.breakpoint = 0 - _.settingsBreakpoint() - } - - gliderPrototype.destroy = function () { - var _ = this - - var replace = _.ele.cloneNode(true) - - var clear = function (ele) { - ele.removeAttribute('style'); - [].forEach.call(ele.classList, function (className) { - /^glider/.test(className) && ele.classList.remove(className) - }) - } - // remove track - replace.children[0].outerHTML = replace.children[0].innerHTML - clear(replace); - [].forEach.call(replace.getElementsByTagName('*'), clear) - _.ele.parentNode.replaceChild(replace, _.ele) - _.event(_window, 'remove', { - resize: _.resize - }) - _.emit('destroy') - } - - gliderPrototype.emit = function (name, arg) { - var _ = this - - var e = new _window.CustomEvent('glider-' + name, { - bubbles: !_.opt.eventPropagate, - detail: arg - }) - _.ele.dispatchEvent(e) - } - - gliderPrototype.event = function (ele, type, args) { - var eventHandler = ele[type + 'EventListener'].bind(ele) - Object.keys(args).forEach(function (k) { - eventHandler(k, args[k]) - }) - } - - return Glider -}) diff --git a/resources/GliderJs/1.7.6/glider.min.css b/resources/GliderJs/1.7.6/glider.min.css deleted file mode 100644 index 949b5ae..0000000 --- a/resources/GliderJs/1.7.6/glider.min.css +++ /dev/null @@ -1 +0,0 @@ -.glider,.glider-contain{margin:0 auto;position:relative}.glider,.glider-track{transform:translateZ(0)}.glider-dot,.glider-next,.glider-prev{border:0;padding:0;user-select:none;outline:0}.glider-contain{width:100%}.glider{overflow-y:hidden;-webkit-overflow-scrolling:touch;-ms-overflow-style:none}.glider-track{width:100%;margin:0;padding:0;display:flex;z-index:1}.glider.draggable{user-select:none;cursor:-webkit-grab;cursor:grab}.glider.draggable .glider-slide img{user-select:none;pointer-events:none}.glider.drag{cursor:-webkit-grabbing;cursor:grabbing}.glider-slide{user-select:none;justify-content:center;align-content:center;width:100%;min-width:150px}.glider-slide img{max-width:100%}.glider::-webkit-scrollbar{opacity:0;height:0}.glider-next,.glider-prev{position:absolute;background:0 0;z-index:2;font-size:40px;text-decoration:none;left:-23px;top:30%;cursor:pointer;color:#666;opacity:1;line-height:1;transition:opacity .5s cubic-bezier(.17,.67,.83,.67),color .5s cubic-bezier(.17,.67,.83,.67)}.glider-next:focus,.glider-next:hover,.glider-prev:focus,.glider-prev:hover{color:#ccc}.glider-next{right:-23px;left:auto}.glider-next.disabled,.glider-prev.disabled{opacity:.25;color:#666;cursor:default}.glider-hide{opacity:0}.glider-dots{user-select:none;display:flex;flex-wrap:wrap;justify-content:center;margin:0 auto;padding:0}.glider-dot{display:block;cursor:pointer;color:#ccc;border-radius:999px;background:#ccc;width:12px;height:12px;margin:7px}.glider-dot:focus,.glider-dot:hover{background:#ddd}.glider-dot.active{background:#a89cc8}@media(max-width:36em){.glider::-webkit-scrollbar{opacity:1;-webkit-appearance:none;width:7px;height:3px}.glider::-webkit-scrollbar-thumb{opacity:1;border-radius:99px;background-color:rgba(156,156,156,.25);-webkit-box-shadow:0 0 1px rgba(255,255,255,.25);box-shadow:0 0 1px rgba(255,255,255,.25)}} diff --git a/resources/GliderJs/1.7.6/glider.min.js b/resources/GliderJs/1.7.6/glider.min.js deleted file mode 100644 index 10d408b..0000000 --- a/resources/GliderJs/1.7.6/glider.min.js +++ /dev/null @@ -1,16 +0,0 @@ -/* @preserve - _____ __ _ __ _ - / ___// /(_)___/ /___ ____ (_)___ - / (_ // // // _ // -_)/ __/_ / /(_-< - \___//_//_/ \_,_/ \__//_/ (_)__/ //___/ - |___/ - - Version: 1.7.4 - Author: Nick Piscitelli (pickykneee) - Website: https://nickpiscitelli.com - Documentation: http://nickpiscitelli.github.io/Glider.js - License: MIT License - Release Date: October 25th, 2018 - -*/ -!function(e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()}(function(){var a="undefined"!=typeof window?window:this,e=a.Glider=function(e,t){var o=this;if(e._glider)return e._glider;if(o.ele=e,o.ele.classList.add("glider"),(o.ele._glider=o).opt=Object.assign({},{slidesToScroll:1,slidesToShow:1,resizeLock:!0,duration:.5,easing:function(e,t,o,i,r){return i*(t/=r)*t+o}},t),o.animate_id=o.page=o.slide=o.scrollLeft=0,o.arrows={},o._opt=o.opt,o.opt.skipTrack)o.track=o.ele.children[0];else for(o.track=document.createElement("div"),o.ele.appendChild(o.track);1!==o.ele.children.length;)o.track.appendChild(o.ele.children[0]);o.track.classList.add("glider-track"),o.init(),o.resize=o.init.bind(o,!0),o.event(o.ele,"add",{scroll:o.updateControls.bind(o)}),o.event(a,"add",{resize:o.resize})},t=e.prototype;return t.init=function(e,t){var o=this,i=0,r=0;o.slides=o.track.children,[].forEach.call(o.slides,function(e,t){e.classList.add("glider-slide"),e.setAttribute("data-gslide",t)}),o.containerWidth=o.ele.clientWidth;var s=o.settingsBreakpoint();if(t=t||s,"auto"===o.opt.slidesToShow||void 0!==o.opt._autoSlide){var l=o.containerWidth/o.opt.itemWidth;o.opt._autoSlide=o.opt.slidesToShow=o.opt.exactWidth?l:Math.floor(l)}"auto"===o.opt.slidesToScroll&&(o.opt.slidesToScroll=Math.floor(o.opt.slidesToShow)),o.itemWidth=o.opt.exactWidth?o.opt.itemWidth:o.containerWidth/o.opt.slidesToShow,[].forEach.call(o.slides,function(e){e.style.height="auto",e.style.width=o.itemWidth+"px",i+=o.itemWidth,r=Math.max(e.offsetHeight,r)}),o.track.style.width=i+"px",o.trackWidth=i,o.isDrag=!1,o.preventClick=!1,o.opt.resizeLock&&o.scrollTo(o.slide*o.itemWidth,0),(s||t)&&(o.bindArrows(),o.buildDots(),o.bindDrag()),o.updateControls(),o.emit(e?"refresh":"loaded")},t.bindDrag=function(){var t=this;t.mouse=t.mouse||t.handleMouse.bind(t);function e(){t.mouseDown=void 0,t.ele.classList.remove("drag"),t.isDrag&&(t.preventClick=!0),t.isDrag=!1}var o={mouseup:e,mouseleave:e,mousedown:function(e){e.preventDefault(),e.stopPropagation(),t.mouseDown=e.clientX,t.ele.classList.add("drag")},mousemove:t.mouse,click:function(e){t.preventClick&&(e.preventDefault(),e.stopPropagation()),t.preventClick=!1}};t.ele.classList.toggle("draggable",!0===t.opt.draggable),t.event(t.ele,"remove",o),t.opt.draggable&&t.event(t.ele,"add",o)},t.buildDots=function(){var e=this;if(e.opt.dots){if("string"==typeof e.opt.dots?e.dots=document.querySelector(e.opt.dots):e.dots=e.opt.dots,e.dots){e.dots.innerHTML="",e.dots.classList.add("glider-dots");for(var t=0;t=d.trackWidth;d.opt.rewind||(d.arrows.prev&&(d.arrows.prev.classList.toggle("disabled",d.ele.scrollLeft<=0||t),d.arrows.prev.classList.contains("disabled")?d.arrows.prev.setAttribute("aria-disabled",!0):d.arrows.prev.setAttribute("aria-disabled",!1)),d.arrows.next&&(d.arrows.next.classList.toggle("disabled",Math.ceil(d.scrollLeft+d.containerWidth)>=Math.floor(d.trackWidth)||t),d.arrows.next.classList.contains("disabled")?d.arrows.next.setAttribute("aria-disabled",!0):d.arrows.next.setAttribute("aria-disabled",!1))),d.slide=Math.round(d.scrollLeft/d.itemWidth),d.page=Math.round(d.scrollLeft/d.containerWidth);var c=d.slide+Math.floor(Math.floor(d.opt.slidesToShow)/2),h=Math.floor(d.opt.slidesToShow)%2?0:c+1;1===Math.floor(d.opt.slidesToShow)&&(h=0),d.scrollLeft+d.containerWidth>=Math.floor(d.trackWidth)&&(d.page=d.dots?d.dots.children.length-1:0),[].forEach.call(d.slides,function(e,t){var o=e.classList,i=o.contains("visible"),r=d.scrollLeft,s=d.scrollLeft+d.containerWidth,l=d.itemWidth*t,n=l+d.itemWidth;[].forEach.call(o,function(e){/^left|right/.test(e)&&o.remove(e)}),o.toggle("active",d.slide===t),c===t||h&&h===t?o.add("center"):(o.remove("center"),o.add([t=Math.floor(r)&&Math.floor(n)<=Math.ceil(s);o.toggle("visible",a),a!==i&&d.emit("slide-"+(a?"visible":"hidden"),{slide:t})}),d.dots&&[].forEach.call(d.dots.children,function(e,t){e.classList.toggle("active",d.page===t)}),e&&d.opt.scrollLock&&(clearTimeout(d.scrollLock),d.scrollLock=setTimeout(function(){clearTimeout(d.scrollLock),.02d.containerWidth+d.ele.scrollLeft&&d.scrollItem(d.getCurrentSlide()))},d.opt.scrollLockDelay||250))},t.getCurrentSlide=function(){var e=this;return e.round(e.ele.scrollLeft/e.itemWidth)},t.scrollItem=function(e,t,o){o&&o.preventDefault();var i=this,r=e;if(++i.animate_id,!0===t)e*=i.containerWidth,e=Math.round(e/i.itemWidth)*i.itemWidth;else{if("string"==typeof e){var s="prev"===e;if(e=i.opt.slidesToScroll%1||i.opt.slidesToShow%1?i.getCurrentSlide():i.slide,s?e-=i.opt.slidesToScroll:e+=i.opt.slidesToScroll,i.opt.rewind){var l=i.ele.scrollLeft;e=s&&!l?i.slides.length:!s&&l+i.containerWidth>=Math.floor(i.trackWidth)?0:e}}e=Math.max(Math.min(e,i.slides.length),0),i.slide=e,e=i.itemWidth*e}return i.scrollTo(e,i.opt.duration*Math.abs(i.ele.scrollLeft-e),function(){i.updateControls(),i.emit("animated",{value:r,type:"string"==typeof r?"arrow":t?"dot":"slide"})}),!1},t.settingsBreakpoint=function(){var e=this,t=e._opt.responsive;if(t){t.sort(function(e,t){return t.breakpoint-e.breakpoint});for(var o=0;o=i.breakpoint)return e.breakpoint!==i.breakpoint&&(e.opt=Object.assign({},e._opt,i.settings),e.breakpoint=i.breakpoint,!0)}}var r=0!==e.breakpoint;return e.opt=Object.assign({},e._opt),e.breakpoint=0,r},t.scrollTo=function(t,o,i){var r=this,s=(new Date).getTime(),l=r.animate_id,n=function(){var e=(new Date).getTime()-s;r.scrollLeft=r.scrollLeft+(t-r.scrollLeft)*r.opt.easing(0,e,0,1,o),r.ele.scrollLeft=r.scrollLeft,e