• R/O
  • SSH
  • HTTPS

ptiblogphp: Commit


Commit MetaInfo

Revision14 (tree)
Time2021-06-23 00:08:04
Authormateuszviste

Log Message

frozen ver 20210622 to tags

Change Summary

Incremental Difference

--- tags/ptiblogphp-20210622/SimpleSlider-v.1.9.0/dist/simpleSlider.min.css (nonexistent)
+++ tags/ptiblogphp-20210622/SimpleSlider-v.1.9.0/dist/simpleSlider.min.css (revision 14)
@@ -0,0 +1,10 @@
1+@charset "UTF-8";
2+/*!
3+ * SimpleSlider v1.9.0
4+ * Simple responsive slider created in pure javascript.
5+ * https://github.com/michu2k/SimpleSlider
6+ *
7+ * Copyright 2017-2019 Michał Strumpf
8+ * Published under MIT License
9+ */
10+.simple-slider{overflow:hidden;position:relative}.simple-slider .slider-wrapper{height:100%;position:relative;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-webkit-transition-timing-function:cubic-bezier(.7,0,.3,1);transition-timing-function:cubic-bezier(.7,0,.3,1)}.simple-slider .slider-slide{background-size:cover;background-position:center top;height:100%;float:left}.simple-slider .slider-pagination{text-align:center;width:100%;bottom:0;position:absolute}.simple-slider .slider-pagination .pagination-bullet{display:inline-block;cursor:pointer;width:16px;height:5px;margin:4px;background-color:#fff;-webkit-transition:all .3s ease;transition:all .3s ease}.simple-slider .slider-pagination .pagination-bullet.is-active{background-color:#999}.simple-slider .slider-btn{width:30px;height:50px;top:50%;cursor:pointer;background-repeat:no-repeat;position:absolute;-webkit-transform:translate(0,-50%);transform:translate(0,-50%)}.simple-slider .slider-btn.slider-btn-prev{left:20px;background-image:url(../img/prev.svg);background-position:left}.simple-slider .slider-btn.slider-btn-next{right:20px;background-image:url(../img/next.svg);background-position:right}
\ No newline at end of file
--- tags/ptiblogphp-20210622/SimpleSlider-v.1.9.0/dist/simpleSlider.min.js (nonexistent)
+++ tags/ptiblogphp-20210622/SimpleSlider-v.1.9.0/dist/simpleSlider.min.js (revision 14)
@@ -0,0 +1,9 @@
1+/*!
2+ * SimpleSlider v1.9.0
3+ * Simple responsive slider created in pure javascript.
4+ * https://github.com/michu2k/SimpleSlider
5+ *
6+ * Copyright 2017-2019 Michał Strumpf
7+ * Published under MIT License
8+ */
9+"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}!function(i){function e(s,e){var d=this,t=1<arguments.length&&void 0!==e?e:{};this.init=function(){d.options=n({speed:600,delay:5e3,enableDrag:!0,autoplay:!1,loop:!0,slidesPerView:{},class:{wrapper:"slider-wrapper",slide:"slider-slide",buttons:"slider-btn",pagination:"slider-pagination",paginationItem:"pagination-bullet"},onInit:function(){},onChange:function(){}},t),function(){var e=d.options,t=e.slidesPerView,n=e.class,i=n.wrapper,a=n.slide,r=n.buttons,o=n.pagination;d.container=document.querySelector(s),d.wrapper=d.container.querySelector(".".concat(i)),d.slides=d.container.querySelectorAll(".".concat(a)),d.buttons=d.container.querySelectorAll(".".concat(r)),d.pagination=d.container.querySelector(".".concat(o)),d.disableEvents=!1,d.slidesWithClones=d.slides,d.maxSlidesPerView=Math.max.apply(Math,_toConsumableArray(Object.keys(t).map(function(e){return t[e]})).concat([1])),d.index=0,d.wrapperWidth=0,d.transitionDuration=l("transitionDuration"),d.transform=l("transform"),d.timer,d.drag={startX:0,endX:0,dragDiff:0,focused:!1,isLink:!1}}();var e=d.options.onInit;d.calculateSlidesPerView(),d.createClones(),d.setWidth(),d.moveWrapper(),d.createPagination(),d.autoplay(),d.attachEvents(),e()},this.attachEvents=function(){var e=d.options.enableDrag,t=d.container;["touchstartHandler","touchmoveHandler","touchendHandler","clickHandler","mousedownHandler","mousemoveHandler","mouseupHandler","mouseleaveHandler","resizeHandler","visibilitychangeHandler","paginationBulletsHandler","prevSlide","nextSlide"].map(function(e){d[e]=d[e].bind(d)}),e&&(t.addEventListener("touchstart",d.touchstartHandler),t.addEventListener("touchmove",d.touchmoveHandler),t.addEventListener("touchend",d.touchendHandler),t.addEventListener("click",d.clickHandler),t.addEventListener("mousedown",d.mousedownHandler),t.addEventListener("mousemove",d.mousemoveHandler),t.addEventListener("mouseup",d.mouseupHandler),t.addEventListener("mouseleave",d.mouseleaveHandler)),t.addEventListener("click",d.paginationBulletsHandler),2===d.buttons.length&&(d.buttons[0].addEventListener("click",d.prevSlide),d.buttons[1].addEventListener("click",d.nextSlide)),i.addEventListener("resize",d.resizeHandler),i.addEventListener("visibilitychange",d.visibilitychangeHandler)},this.detachEvents=function(){var e=d.container;e.removeEventListener("touchstart",d.touchstartHandler),e.removeEventListener("touchmove",d.touchmoveHandler),e.removeEventListener("touchend",d.touchendHandler),e.removeEventListener("click",d.clickHandler),e.removeEventListener("mousedown",d.mousedownHandler),e.removeEventListener("mousemove",d.mousemoveHandler),e.removeEventListener("mouseup",d.mouseupHandler),e.removeEventListener("mouseleave",d.mouseleaveHandler),e.removeEventListener("click",d.paginationBulletsHandler),d.buttons[0].removeEventListener("click",d.prevSlide),d.buttons[1].removeEventListener("click",d.nextSlide),i.removeEventListener("resize",d.resizeHandler),i.removeEventListener("visibilitychange",d.visibilitychangeHandler)},this.calculateSlidesPerView=function(){var e=d.options,t=e.loop,n=e.slidesPerView;d.slidesPerView=1,Object.keys(n).forEach(function(e){document.body.offsetWidth>=e&&(d.slidesPerView=n[e])}),d.maxIndex=t?d.slides.length:d.slides.length-d.slidesPerView+1},this.createClones=function(){if(d.options.loop){for(var e,t=d.options.class.slide,n=d.wrapper,i=d.slides.length-1,a=document.createDocumentFragment(),r=document.createDocumentFragment(),o=0;o<d.maxSlidesPerView&&!(i-o<0||i<o);o++)e=n.children[i-o].cloneNode(!0),r.insertBefore(e,r.childNodes[0]),e=n.children[o].cloneNode(!0),a.appendChild(e);n.appendChild(a),n.insertBefore(r,d.slides[0]),d.slidesWithClones=d.container.querySelectorAll(".".concat(t))}},this.setWidth=function(){var n=Math.round(d.container.offsetWidth/d.slidesPerView)+"px";d.wrapperWidth=0,Object.keys(d.slidesWithClones).map(function(e){var t=d.slidesWithClones[e];t.style.width=n,d.wrapperWidth+=t.offsetWidth}),d.wrapper.style.width=d.wrapperWidth+"px"},this.moveWrapper=function(){var e=d.options.loop,t=d.maxSlidesPerView+1-d.slidesPerView+Math.floor(d.slidesPerView/2)+d.index;d.wrapperPosition=0,e||(t=d.index>=d.maxIndex-Math.floor(d.slidesPerView/2)?d.maxIndex-1:d.index);for(var n=0;n<t;n++)d.wrapperPosition+=d.slidesWithClones[n].offsetWidth;d.wrapper.style[d.transform]="translate3d(-".concat(d.wrapperPosition,"px, 0, 0)")},this.changeSlide=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=d.options,n=t.speed,i=t.loop,a=t.onChange;d.disableEvents||(e||(d.resetAutoplay(),d.autoplay()),i?d.disableEvents=!0:(0<=d.index&&d.index<d.maxIndex&&(d.disableEvents=!0),d.index=d.updateIndex(d.index)),d.highlightPaginationBullet(),d.wrapper.style[d.transitionDuration]=n+"ms",d.moveWrapper(),a(),setTimeout(function(){i&&(d.index<0||d.index>=d.slides.length)&&(d.index=d.updateIndex(d.index),d.wrapper.style[d.transitionDuration]="0ms",d.moveWrapper()),d.disableEvents=!1},n))},this.createPagination=function(){if(d.pagination){for(var e,t=d.options,n=t.loop,i=t.class.paginationItem,a=document.createDocumentFragment(),r=n?0:Math.min(d.index,d.maxIndex-1),o=0;o<d.maxIndex;o++)(e=document.createElement("span")).classList.add(i),o==r&&e.classList.add("is-active"),a.appendChild(e);d.pagination.appendChild(a),d.paginationBullets=d.pagination.querySelectorAll(".".concat(i))}},this.destroyPagination=function(){d.pagination&&(d.pagination.innerHTML="")},this.paginationBulletsHandler=function(e){var t=d.options.class.paginationItem,n=[];if(e.target.classList.contains(t)){for(var i=0;i<d.paginationBullets.length;i++)n.push(d.paginationBullets[i]);var a=n.indexOf(e.target);d.disableEvents||(d.index=a-1,d.nextSlide())}},this.highlightPaginationBullet=function(){if(d.pagination){var e=d.options.class.paginationItem;d.pagination.querySelector(".is-active").classList.remove("is-active"),d.pagination.querySelectorAll(".".concat(e))[d.updateIndex(d.index)].classList.add("is-active")}},this.prevSlide=function(){d.decreaseIndex(),d.changeSlide()},this.nextSlide=function(){d.increaseIndex(),d.changeSlide()},this.increaseIndex=function(){d.disableEvents||d.index++},this.decreaseIndex=function(){d.disableEvents||d.index--},this.updateIndex=function(e){return d.options.loop?e>=d.slides.length?0:e<0?d.slides.length-1:e:e>=d.maxIndex?d.maxIndex-1:e<=0?0:e},this.autoplay=function(){var e=d.options,t=e.autoplay,n=e.delay,i=e.speed;t&&(d.timer=setTimeout(function(){d.increaseIndex(),d.changeSlide(!0),d.autoplay()},n+i))},this.resetAutoplay=function(){return clearTimeout(d.timer)},this.updateSliderAfterDrag=function(){var e=d.options.speed;d.drag.focused=!1,d.drag.dragDiff&&(d.autoplay(),100<Math.abs(d.drag.dragDiff)&&(d.drag.dragDiff<0?d.nextSlide():d.prevSlide()),d.wrapper.style[d.transitionDuration]=e+"ms",d.moveWrapper(),d.drag.dragDiff=0,d.drag.isLink=!1)},this.updateSliderDuringDrag=function(){d.resetAutoplay();var e=d.options.loop,t=d.slides[d.index].offsetWidth,n=d.wrapperPosition-d.drag.dragDiff,i=100+t;d.drag.dragDiff=d.drag.endX-d.drag.startX,e||(d.index<=0&&0<d.drag.dragDiff&&(i=100),d.index>=d.maxIndex-1&&d.drag.dragDiff<0&&(i=100)),d.drag.dragDiff<i&&d.drag.dragDiff>-1*i?d.wrapper.style[d.transform]="translate3d(".concat(-1*n,"px, 0, 0)"):d.updateSliderAfterDrag()},this.mousedownHandler=function(e){e.stopPropagation(),e.preventDefault(),d.wrapper.style[d.transitionDuration]="0ms",d.drag.focused=!0,d.drag.startX=e.pageX},this.mousemoveHandler=function(e){e.stopPropagation(),!d.disableEvents&&d.drag.focused&&("A"===e.target.nodeName&&(d.drag.isLink=!0),d.drag.endX=e.pageX,d.updateSliderDuringDrag())},this.mouseupHandler=function(e){e.stopPropagation(),d.updateSliderAfterDrag()},this.mouseleaveHandler=function(e){e.stopPropagation(),d.updateSliderAfterDrag()},this.clickHandler=function(e){d.drag.isLink&&e.preventDefault(),d.drag.isLink=!1},this.touchstartHandler=function(e){e.stopPropagation(),d.wrapper.style[d.transitionDuration]="0ms",d.drag.focused=!0,d.drag.startX=e.touches[0].pageX},this.touchmoveHandler=function(e){e.stopPropagation(),!d.disableEvents&&d.drag.focused&&(d.drag.endX=e.touches[0].pageX,d.updateSliderDuringDrag())},this.touchendHandler=function(e){e.stopPropagation(),d.updateSliderAfterDrag()},this.visibilitychangeHandler=function(){d.resetAutoplay(),document.hidden||d.autoplay()},this.resizeHandler=function(){var e=d.options.loop,t=d.slidesPerView;d.wrapper.style[d.transitionDuration]="0ms",d.calculateSlidesPerView(),d.setWidth(),d.moveWrapper(),e||t===d.slidesPerView||(d.destroyPagination(),d.createPagination())};var l=function(e){return"string"==typeof document.documentElement.style[e]?e:(e=e.charAt(0).toUpperCase()+e.slice(1),"webkit".concat(e))},n=function(e,t){var n,i;if(null!=t&&"undefined"!=t)for(n in t){var a=t[n];if("object"===_typeof(a))for(i in a)e[n][i]=a[i];else e[n]=a}return e};this.init()}"undefined"!=typeof module&&void 0!==module.exports?module.exports=e:i.SimpleSlider=e}(window);
\ No newline at end of file
--- tags/ptiblogphp-20210622/SimpleSlider-v.1.9.0/.gitignore (nonexistent)
+++ tags/ptiblogphp-20210622/SimpleSlider-v.1.9.0/.gitignore (revision 14)
@@ -0,0 +1,2 @@
1+node_modules
2+.DS_Store
\ No newline at end of file
--- tags/ptiblogphp-20210622/dropzone570/basic.min.css (nonexistent)
+++ tags/ptiblogphp-20210622/dropzone570/basic.min.css (revision 14)
@@ -0,0 +1 @@
1+.dropzone,.dropzone *{box-sizing:border-box}.dropzone{position:relative}.dropzone .dz-preview{position:relative;display:inline-block;width:120px;margin:0.5em}.dropzone .dz-preview .dz-progress{display:block;height:15px;border:1px solid #aaa}.dropzone .dz-preview .dz-progress .dz-upload{display:block;height:100%;width:0;background:green}.dropzone .dz-preview .dz-error-message{color:red;display:none}.dropzone .dz-preview.dz-error .dz-error-message,.dropzone .dz-preview.dz-error .dz-error-mark{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{display:block}.dropzone .dz-preview .dz-error-mark,.dropzone .dz-preview .dz-success-mark{position:absolute;display:none;left:30px;top:30px;width:54px;height:58px;left:50%;margin-left:-27px}
--- tags/ptiblogphp-20210622/dropzone570/dropzone.min.css (nonexistent)
+++ tags/ptiblogphp-20210622/dropzone570/dropzone.min.css (revision 14)
@@ -0,0 +1 @@
1+@-webkit-keyframes passing-through{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%, 70%{opacity:1;-webkit-transform:translateY(0px);-moz-transform:translateY(0px);-ms-transform:translateY(0px);-o-transform:translateY(0px);transform:translateY(0px)}100%{opacity:0;-webkit-transform:translateY(-40px);-moz-transform:translateY(-40px);-ms-transform:translateY(-40px);-o-transform:translateY(-40px);transform:translateY(-40px)}}@-moz-keyframes passing-through{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%, 70%{opacity:1;-webkit-transform:translateY(0px);-moz-transform:translateY(0px);-ms-transform:translateY(0px);-o-transform:translateY(0px);transform:translateY(0px)}100%{opacity:0;-webkit-transform:translateY(-40px);-moz-transform:translateY(-40px);-ms-transform:translateY(-40px);-o-transform:translateY(-40px);transform:translateY(-40px)}}@keyframes passing-through{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%, 70%{opacity:1;-webkit-transform:translateY(0px);-moz-transform:translateY(0px);-ms-transform:translateY(0px);-o-transform:translateY(0px);transform:translateY(0px)}100%{opacity:0;-webkit-transform:translateY(-40px);-moz-transform:translateY(-40px);-ms-transform:translateY(-40px);-o-transform:translateY(-40px);transform:translateY(-40px)}}@-webkit-keyframes slide-in{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%{opacity:1;-webkit-transform:translateY(0px);-moz-transform:translateY(0px);-ms-transform:translateY(0px);-o-transform:translateY(0px);transform:translateY(0px)}}@-moz-keyframes slide-in{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%{opacity:1;-webkit-transform:translateY(0px);-moz-transform:translateY(0px);-ms-transform:translateY(0px);-o-transform:translateY(0px);transform:translateY(0px)}}@keyframes slide-in{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%{opacity:1;-webkit-transform:translateY(0px);-moz-transform:translateY(0px);-ms-transform:translateY(0px);-o-transform:translateY(0px);transform:translateY(0px)}}@-webkit-keyframes pulse{0%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}10%{-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-ms-transform:scale(1.1);-o-transform:scale(1.1);transform:scale(1.1)}20%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}@-moz-keyframes pulse{0%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}10%{-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-ms-transform:scale(1.1);-o-transform:scale(1.1);transform:scale(1.1)}20%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}@keyframes pulse{0%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}10%{-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-ms-transform:scale(1.1);-o-transform:scale(1.1);transform:scale(1.1)}20%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}.dropzone,.dropzone *{box-sizing:border-box}.dropzone{min-height:150px;border:2px solid rgba(0,0,0,0.3);background:white;padding:20px 20px}.dropzone.dz-clickable{cursor:pointer}.dropzone.dz-clickable *{cursor:default}.dropzone.dz-clickable .dz-message,.dropzone.dz-clickable .dz-message *{cursor:pointer}.dropzone.dz-started .dz-message{display:none}.dropzone.dz-drag-hover{border-style:solid}.dropzone.dz-drag-hover .dz-message{opacity:0.5}.dropzone .dz-message{text-align:center;margin:2em 0}.dropzone .dz-message .dz-button{background:none;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit}.dropzone .dz-preview{position:relative;display:inline-block;vertical-align:top;margin:16px;min-height:100px}.dropzone .dz-preview:hover{z-index:1000}.dropzone .dz-preview:hover .dz-details{opacity:1}.dropzone .dz-preview.dz-file-preview .dz-image{border-radius:20px;background:#999;background:linear-gradient(to bottom, #eee, #ddd)}.dropzone .dz-preview.dz-file-preview .dz-details{opacity:1}.dropzone .dz-preview.dz-image-preview{background:white}.dropzone .dz-preview.dz-image-preview .dz-details{-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;-ms-transition:opacity 0.2s linear;-o-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.dropzone .dz-preview .dz-remove{font-size:14px;text-align:center;display:block;cursor:pointer;border:none}.dropzone .dz-preview .dz-remove:hover{text-decoration:underline}.dropzone .dz-preview:hover .dz-details{opacity:1}.dropzone .dz-preview .dz-details{z-index:20;position:absolute;top:0;left:0;opacity:0;font-size:13px;min-width:100%;max-width:100%;padding:2em 1em;text-align:center;color:rgba(0,0,0,0.9);line-height:150%}.dropzone .dz-preview .dz-details .dz-size{margin-bottom:1em;font-size:16px}.dropzone .dz-preview .dz-details .dz-filename{white-space:nowrap}.dropzone .dz-preview .dz-details .dz-filename:hover span{border:1px solid rgba(200,200,200,0.8);background-color:rgba(255,255,255,0.8)}.dropzone .dz-preview .dz-details .dz-filename:not(:hover){overflow:hidden;text-overflow:ellipsis}.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span{border:1px solid transparent}.dropzone .dz-preview .dz-details .dz-filename span,.dropzone .dz-preview .dz-details .dz-size span{background-color:rgba(255,255,255,0.4);padding:0 0.4em;border-radius:3px}.dropzone .dz-preview:hover .dz-image img{-webkit-transform:scale(1.05, 1.05);-moz-transform:scale(1.05, 1.05);-ms-transform:scale(1.05, 1.05);-o-transform:scale(1.05, 1.05);transform:scale(1.05, 1.05);-webkit-filter:blur(8px);filter:blur(8px)}.dropzone .dz-preview .dz-image{border-radius:20px;overflow:hidden;width:120px;height:120px;position:relative;display:block;z-index:10}.dropzone .dz-preview .dz-image img{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{-webkit-animation:passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);-moz-animation:passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);-ms-animation:passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);-o-animation:passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);animation:passing-through 3s cubic-bezier(0.77, 0, 0.175, 1)}.dropzone .dz-preview.dz-error .dz-error-mark{opacity:1;-webkit-animation:slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);-moz-animation:slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);-ms-animation:slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);-o-animation:slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);animation:slide-in 3s cubic-bezier(0.77, 0, 0.175, 1)}.dropzone .dz-preview .dz-success-mark,.dropzone .dz-preview .dz-error-mark{pointer-events:none;opacity:0;z-index:500;position:absolute;display:block;top:50%;left:50%;margin-left:-27px;margin-top:-27px}.dropzone .dz-preview .dz-success-mark svg,.dropzone .dz-preview .dz-error-mark svg{display:block;width:54px;height:54px}.dropzone .dz-preview.dz-processing .dz-progress{opacity:1;-webkit-transition:all 0.2s linear;-moz-transition:all 0.2s linear;-ms-transition:all 0.2s linear;-o-transition:all 0.2s linear;transition:all 0.2s linear}.dropzone .dz-preview.dz-complete .dz-progress{opacity:0;-webkit-transition:opacity 0.4s ease-in;-moz-transition:opacity 0.4s ease-in;-ms-transition:opacity 0.4s ease-in;-o-transition:opacity 0.4s ease-in;transition:opacity 0.4s ease-in}.dropzone .dz-preview:not(.dz-processing) .dz-progress{-webkit-animation:pulse 6s ease infinite;-moz-animation:pulse 6s ease infinite;-ms-animation:pulse 6s ease infinite;-o-animation:pulse 6s ease infinite;animation:pulse 6s ease infinite}.dropzone .dz-preview .dz-progress{opacity:1;z-index:1000;pointer-events:none;position:absolute;height:16px;left:50%;top:50%;margin-top:-8px;width:80px;margin-left:-40px;background:rgba(255,255,255,0.9);-webkit-transform:scale(1);border-radius:8px;overflow:hidden}.dropzone .dz-preview .dz-progress .dz-upload{background:#333;background:linear-gradient(to bottom, #666, #444);position:absolute;top:0;left:0;bottom:0;width:0;-webkit-transition:width 300ms ease-in-out;-moz-transition:width 300ms ease-in-out;-ms-transition:width 300ms ease-in-out;-o-transition:width 300ms ease-in-out;transition:width 300ms ease-in-out}.dropzone .dz-preview.dz-error .dz-error-message{display:block}.dropzone .dz-preview.dz-error:hover .dz-error-message{opacity:1;pointer-events:auto}.dropzone .dz-preview .dz-error-message{pointer-events:none;z-index:1000;position:absolute;display:block;display:none;opacity:0;-webkit-transition:opacity 0.3s ease;-moz-transition:opacity 0.3s ease;-ms-transition:opacity 0.3s ease;-o-transition:opacity 0.3s ease;transition:opacity 0.3s ease;border-radius:8px;font-size:13px;top:130px;left:-10px;width:140px;background:#be2626;background:linear-gradient(to bottom, #be2626, #a92222);padding:0.5em 1.2em;color:white}.dropzone .dz-preview .dz-error-message:after{content:'';position:absolute;top:-6px;left:64px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #be2626}
--- tags/ptiblogphp-20210622/dropzone570/dropzone.min.js (nonexistent)
+++ tags/ptiblogphp-20210622/dropzone570/dropzone.min.js (revision 14)
@@ -0,0 +1 @@
1+"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}var Emitter=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,i=new Array(1<n?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=!0,a=!1,l=void 0;try{for(var s,u=t[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){s.value.apply(this,i)}}catch(e){a=!0,l=e}finally{try{o||null==u.return||u.return()}finally{if(a)throw l}}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var i=0;i<n.length;i++){if(n[i]===t){n.splice(i,1);break}}return this}}]),e}(),Dropzone=function(){function C(e,t){var n,i,r;if(_classCallCheck(this,C),(n=_possibleConstructorReturn(this,_getPrototypeOf(C).call(this))).element=e,n.version=C.version,n.defaultOptions.previewTemplate=n.defaultOptions.previewTemplate.replace(/\n*/g,""),n.clickableElements=[],n.listeners=[],n.files=[],"string"==typeof n.element&&(n.element=document.querySelector(n.element)),!n.element||null==n.element.nodeType)throw new Error("Invalid dropzone element.");if(n.element.dropzone)throw new Error("Dropzone already attached.");C.instances.push(_assertThisInitialized(n)),n.element.dropzone=_assertThisInitialized(n);var o=null!=(r=C.optionsForElement(n.element))?r:{};if(n.options=C.extend({},n.defaultOptions,o,null!=t?t:{}),n.options.forceFallback||!C.isBrowserSupported())return _possibleConstructorReturn(n,n.options.fallback.call(_assertThisInitialized(n)));if(null==n.options.url&&(n.options.url=n.element.getAttribute("action")),!n.options.url)throw new Error("No URL provided.");if(n.options.acceptedFiles&&n.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(n.options.uploadMultiple&&n.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return n.options.acceptedMimeTypes&&(n.options.acceptedFiles=n.options.acceptedMimeTypes,delete n.options.acceptedMimeTypes),null!=n.options.renameFilename&&(n.options.renameFile=function(e){return n.options.renameFilename.call(_assertThisInitialized(n),e.name,e)}),n.options.method=n.options.method.toUpperCase(),(i=n.getExistingFallback())&&i.parentNode&&i.parentNode.removeChild(i),!1!==n.options.previewsContainer&&(n.options.previewsContainer?n.previewsContainer=C.getElement(n.options.previewsContainer,"previewsContainer"):n.previewsContainer=n.element),n.options.clickable&&(!0===n.options.clickable?n.clickableElements=[n.element]:n.clickableElements=C.getElements(n.options.clickable,"clickable")),n.init(),n}return _inherits(C,Emitter),_createClass(C,null,[{key:"initClass",value:function(){this.prototype.Emitter=Emitter,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e;this.element.className="".concat(this.element.className," dz-browser-not-supported");var t=!0,n=!1,i=void 0;try{for(var r,o=this.element.getElementsByTagName("div")[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;if(/(^| )dz-message($| )/.test(a.className)){(e=a).className="dz-message";break}}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}e||(e=C.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var l=e.getElementsByTagName("span")[0];return l&&(null!=l.textContent?l.textContent=this.options.dictFallbackMessage:null!=l.innerText&&(l.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,i){var r={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},o=e.width/e.height;null==t&&null==n?(t=r.srcWidth,n=r.srcHeight):null==t?t=n*o:null==n&&(n=t/o);var a=(t=Math.min(t,r.srcWidth))/(n=Math.min(n,r.srcHeight));if(r.srcWidth>t||r.srcHeight>n)if("crop"===i)a<o?(r.srcHeight=e.height,r.srcWidth=r.srcHeight*a):(r.srcWidth=e.width,r.srcHeight=r.srcWidth/a);else{if("contain"!==i)throw new Error("Unknown resizeMethod '".concat(i,"'"));a<o?n=t/o:t=n*o}return r.srcX=(e.width-r.srcWidth)/2,r.srcY=(e.height-r.srcHeight)/2,r.trgWidth=t,r.trgHeight=n,r},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Check</title>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Error</title>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',drop:function(){return this.element.classList.remove("dz-drag-hover")},dragstart:function(){},dragend:function(){return this.element.classList.remove("dz-drag-hover")},dragenter:function(){return this.element.classList.add("dz-drag-hover")},dragover:function(){return this.element.classList.add("dz-drag-hover")},dragleave:function(){return this.element.classList.remove("dz-drag-hover")},paste:function(){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var n=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=C.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);var e=!0,i=!1,r=void 0;try{for(var o,a=t.previewElement.querySelectorAll("[data-dz-name]")[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var l=o.value;l.textContent=t.name}}catch(e){i=!0,r=e}finally{try{e||null==a.return||a.return()}finally{if(i)throw r}}var s=!0,u=!1,c=void 0;try{for(var d,p=t.previewElement.querySelectorAll("[data-dz-size]")[Symbol.iterator]();!(s=(d=p.next()).done);s=!0)(l=d.value).innerHTML=this.filesize(t.size)}catch(e){u=!0,c=e}finally{try{s||null==p.return||p.return()}finally{if(u)throw c}}this.options.addRemoveLinks&&(t._removeLink=C.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),t.previewElement.appendChild(t._removeLink));var h=function(e){return e.preventDefault(),e.stopPropagation(),t.status===C.UPLOADING?C.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(t)}):n.options.dictRemoveFileConfirmation?C.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(t)}):n.removeFile(t)},f=!0,v=!1,m=void 0;try{for(var y,g=t.previewElement.querySelectorAll("[data-dz-remove]")[Symbol.iterator]();!(f=(y=g.next()).done);f=!0){y.value.addEventListener("click",h)}}catch(e){v=!0,m=e}finally{try{f||null==g.return||g.return()}finally{if(v)throw m}}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");var n=!0,i=!1,r=void 0;try{for(var o,a=e.previewElement.querySelectorAll("[data-dz-thumbnail]")[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;l.alt=e.name,l.src=t}}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);var n=!0,i=!1,r=void 0;try{for(var o,a=e.previewElement.querySelectorAll("[data-dz-errormessage]")[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){o.value.textContent=t}}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t){if(e.previewElement){var n=!0,i=!1,r=void 0;try{for(var o,a=e.previewElement.querySelectorAll("[data-dz-uploadprogress]")[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var l=o.value;"PROGRESS"===l.nodeName?l.value=t:l.style.width="".concat(t,"%")}}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var l in a){var s=a[l];e[l]=s}}return e}}]),_createClass(C,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(e){return e.accepted}).map(function(e){return e})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(e){return!e.accepted}).map(function(e){return e})}},{key:"getFilesWithStatus",value:function(t){return this.files.filter(function(e){return e.status===t}).map(function(e){return e})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(C.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(C.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(C.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(e){return e.status===C.UPLOADING||e.status===C.QUEUED}).map(function(e){return e})}},{key:"init",value:function(){var s=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(C.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){!function l(){return s.hiddenFileInput&&s.hiddenFileInput.parentNode.removeChild(s.hiddenFileInput),s.hiddenFileInput=document.createElement("input"),s.hiddenFileInput.setAttribute("type","file"),(null===s.options.maxFiles||1<s.options.maxFiles)&&s.hiddenFileInput.setAttribute("multiple","multiple"),s.hiddenFileInput.className="dz-hidden-input",null!==s.options.acceptedFiles&&s.hiddenFileInput.setAttribute("accept",s.options.acceptedFiles),null!==s.options.capture&&s.hiddenFileInput.setAttribute("capture",s.options.capture),s.hiddenFileInput.style.visibility="hidden",s.hiddenFileInput.style.position="absolute",s.hiddenFileInput.style.top="0",s.hiddenFileInput.style.left="0",s.hiddenFileInput.style.height="0",s.hiddenFileInput.style.width="0",C.getElement(s.options.hiddenInputContainer,"hiddenInputContainer").appendChild(s.hiddenFileInput),s.hiddenFileInput.addEventListener("change",function(){var e=s.hiddenFileInput.files;if(e.length){var t=!0,n=!1,i=void 0;try{for(var r,o=e[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;s.addFile(a)}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}}return s.emit("addedfiles",e),l()})}()}this.URL=null!==window.URL?window.URL:window.webkitURL;var e=!0,t=!1,n=void 0;try{for(var i,r=this.events[Symbol.iterator]();!(e=(i=r.next()).done);e=!0){var o=i.value;this.on(o,this.options[o])}}catch(e){t=!0,n=e}finally{try{e||null==r.return||r.return()}finally{if(t)throw n}}this.on("uploadprogress",function(){return s.updateTotalUploadProgress()}),this.on("removedfile",function(){return s.updateTotalUploadProgress()}),this.on("canceled",function(e){return s.emit("complete",e)}),this.on("complete",function(e){if(0===s.getAddedFiles().length&&0===s.getUploadingFiles().length&&0===s.getQueuedFiles().length)return setTimeout(function(){return s.emit("queuecomplete")},0)});function a(e){var t;return(t=e).dataTransfer.types&&t.dataTransfer.types.some(function(e){return"Files"==e})&&(e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1)}return this.listeners=[{element:this.element,events:{dragstart:function(e){return s.emit("dragstart",e)},dragenter:function(e){return a(e),s.emit("dragenter",e)},dragover:function(e){var t;try{t=e.dataTransfer.effectAllowed}catch(e){}return e.dataTransfer.dropEffect="move"===t||"linkMove"===t?"move":"copy",a(e),s.emit("dragover",e)},dragleave:function(e){return s.emit("dragleave",e)},drop:function(e){return a(e),s.drop(e)},dragend:function(e){return s.emit("dragend",e)}}}],this.clickableElements.forEach(function(t){return s.listeners.push({element:t,events:{click:function(e){return t===s.element&&e.target!==s.element&&!C.elementInside(e.target,s.element.querySelector(".dz-message"))||s.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),null!=this.hiddenFileInput&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,C.instances.splice(C.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e,t=0,n=0;if(this.getActiveFiles().length){var i=!0,r=!1,o=void 0;try{for(var a,l=this.getActiveFiles()[Symbol.iterator]();!(i=(a=l.next()).done);i=!0){var s=a.value;t+=s.upload.bytesSent,n+=s.upload.total}}catch(e){r=!0,o=e}finally{try{i||null==l.return||l.return()}finally{if(r)throw o}}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(e,"]"):"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>".concat(this.options.dictFallbackText,"</p>")),n+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var i=C.createElement(n);return"FORM"!==this.element.tagName?(t=C.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(i):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:i}},{key:"getExistingFallback",value:function(){for(var e=function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=e[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;if(/(^| )fallback($| )/.test(a.className))return a}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}},t=0,n=["div","form"];t<n.length;t++){var i,r=n[t];if(i=e(this.element.getElementsByTagName(r)))return i}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(i){return function(){var e=[];for(var t in i.events){var n=i.events[t];e.push(i.element.addEventListener(t,n,!1))}return e}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(i){return function(){var e=[];for(var t in i.events){var n=i.events[t];e.push(i.element.removeEventListener(t,n,!1))}return e}()})}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(e){return t.cancelUpload(e)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(0<e){for(var i=["tb","gb","mb","kb","b"],r=0;r<i.length;r++){var o=i[r];if(Math.pow(this.options.filesizeBase,4-r)/10<=e){t=e/Math.pow(this.options.filesizeBase,4-r),n=o;break}}t=Math.round(10*t)/10}return"<strong>".concat(t,"</strong> ").concat(this.options.dictFileSizeUnits[n])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(t.length){var i=e.dataTransfer.items;i&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(t)}this.emit("addedfiles",t)}}},{key:"paste",value:function(e){if(null!=__guard__(null!=e?e.clipboardData:void 0,function(e){return e.items})){this.emit("paste",e);var t=e.clipboardData.items;return t.length?this._addFilesFromItems(t):void 0}}},{key:"handleFiles",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=e[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;this.addFile(a)}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}}},{key:"_addFilesFromItems",value:function(s){var u=this;return function(){var e=[],t=!0,n=!1,i=void 0;try{for(var r,o=s[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a,l=r.value;null!=l.webkitGetAsEntry&&(a=l.webkitGetAsEntry())?a.isFile?e.push(u.addFile(l.getAsFile())):a.isDirectory?e.push(u._addFilesFromDirectory(a,a.name)):e.push(void 0):null!=l.getAsFile&&(null==l.kind||"file"===l.kind)?e.push(u.addFile(l.getAsFile())):e.push(void 0)}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}return e}()}},{key:"_addFilesFromDirectory",value:function(e,s){function t(t){return __guardMethod__(console,"log",function(e){return e.log(t)})}var u=this,n=e.createReader();return function l(){return n.readEntries(function(e){if(0<e.length){var t=!0,n=!1,i=void 0;try{for(var r,o=e[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;a.isFile?a.file(function(e){if(!u.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath="".concat(s,"/").concat(e.name),u.addFile(e)}):a.isDirectory&&u._addFilesFromDirectory(a,"".concat(s,"/").concat(a.name))}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}l()}return null},t)}()}},{key:"accept",value:function(e,t){this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):C.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var n=this;t.upload={uuid:C.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=C.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(e){e?(t.accepted=!1,n._errorProcessing([t],e)):(t.accepted=!0,n.options.autoQueue&&n.enqueueFile(t)),n._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=e[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;this.enqueueFile(a)}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==C.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=C.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return t.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout(function(){return t._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var n=this._thumbnailQueue.shift();return this.createThumbnail(n,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(e){return t.emit("thumbnail",n,e),t._processingThumbnail=!1,t._processThumbnailQueue()})}}},{key:"removeFile",value:function(e){if(e.status===C.UPLOADING&&this.cancelUpload(e),this.files=without(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);var t=!0,n=!1,i=void 0;try{for(var r,o=this.files.slice()[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;a.status===C.UPLOADING&&!e||this.removeFile(a)}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}return null}},{key:"resizeImage",value:function(r,e,t,n,o){var a=this;return this.createThumbnail(r,e,t,n,!0,function(e,t){if(null==t)return o(r);var n=a.options.resizeMimeType;null==n&&(n=r.type);var i=t.toDataURL(n,a.options.resizeQuality);return"image/jpeg"!==n&&"image/jpg"!==n||(i=ExifRestore.restore(r.dataURL,i)),o(C.dataURItoBlob(i))})}},{key:"createThumbnail",value:function(e,t,n,i,r,o){var a=this,l=new FileReader;l.onload=function(){e.dataURL=l.result,"image/svg+xml"!==e.type?a.createThumbnailFromUrl(e,t,n,i,r,o):null!=o&&o(l.result)},l.readAsDataURL(e)}},{key:"displayExistingFile",value:function(t,e,n,i,r){var o=this,a=!(4<arguments.length&&void 0!==r)||r;if(this.emit("addedfile",t),this.emit("complete",t),a){t.dataURL=e,this.createThumbnailFromUrl(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.resizeMethod,this.options.fixOrientation,function(e){o.emit("thumbnail",t,e),n&&n()},i)}else this.emit("thumbnail",t,e),n&&n()}},{key:"createThumbnailFromUrl",value:function(o,a,l,s,t,u,e){var c=this,d=document.createElement("img");return e&&(d.crossOrigin=e),d.onload=function(){var e=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&t&&(e=function(e){return EXIF.getData(d,function(){return e(EXIF.getTag(this,"Orientation"))})}),e(function(e){o.width=d.width,o.height=d.height;var t=c.options.resize.call(c,o,a,l,s),n=document.createElement("canvas"),i=n.getContext("2d");switch(n.width=t.trgWidth,n.height=t.trgHeight,4<e&&(n.width=t.trgHeight,n.height=t.trgWidth),e){case 2:i.translate(n.width,0),i.scale(-1,1);break;case 3:i.translate(n.width,n.height),i.rotate(Math.PI);break;case 4:i.translate(0,n.height),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-n.width);break;case 7:i.rotate(.5*Math.PI),i.translate(n.height,-n.width),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-n.height,0)}drawImageIOSFix(i,d,null!=t.srcX?t.srcX:0,null!=t.srcY?t.srcY:0,t.srcWidth,t.srcHeight,null!=t.trgX?t.trgX:0,null!=t.trgY?t.trgY:0,t.trgWidth,t.trgHeight);var r=n.toDataURL("image/png");if(null!=u)return u(r,n)})},null!=u&&(d.onerror=u),d.src=o.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(e<=t)){var i=this.getQueuedFiles();if(0<i.length){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,e-t));for(;n<e;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){var t=!0,n=!1,i=void 0;try{for(var r,o=e[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;a.processing=!0,a.status=C.UPLOADING,this.emit("processing",a)}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter(function(e){return e.xhr===t}).map(function(e){return e})}},{key:"cancelUpload",value:function(e){if(e.status===C.UPLOADING){var t=this._getFilesWithXhr(e.xhr),n=!0,i=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){o.value.status=C.CANCELED}}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}void 0!==e.xhr&&e.xhr.abort();var l=!0,s=!1,u=void 0;try{for(var c,d=t[Symbol.iterator]();!(l=(c=d.next()).done);l=!0){var p=c.value;this.emit("canceled",p)}}catch(e){s=!0,u=e}finally{try{l||null==d.return||d.return()}finally{if(s)throw u}}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==C.ADDED&&e.status!==C.QUEUED||(e.status=C.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"!=typeof e)return e;for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(this,n)}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(s){var u=this;this._transformFiles(s,function(e){if(u.options.chunking){var t=e[0];s[0].upload.chunked=u.options.chunking&&(u.options.forceChunking||t.size>u.options.chunkSize),s[0].upload.totalChunkCount=Math.ceil(t.size/u.options.chunkSize)}if(s[0].upload.chunked){var r=s[0],o=e[0];r.upload.chunks=[];var i=function(){for(var e=0;void 0!==r.upload.chunks[e];)e++;if(!(e>=r.upload.totalChunkCount)){0;var t=e*u.options.chunkSize,n=Math.min(t+u.options.chunkSize,r.size),i={name:u._getParamName(0),data:o.webkitSlice?o.webkitSlice(t,n):o.slice(t,n),filename:r.upload.filename,chunkIndex:e};r.upload.chunks[e]={file:r,index:e,dataBlock:i,status:C.UPLOADING,progress:0,retries:0},u._uploadData(s,[i])}};if(r.upload.finishedChunkUpload=function(e){var t=!0;e.status=C.SUCCESS,e.dataBlock=null,e.xhr=null;for(var n=0;n<r.upload.totalChunkCount;n++){if(void 0===r.upload.chunks[n])return i();r.upload.chunks[n].status!==C.SUCCESS&&(t=!1)}t&&u.options.chunksUploaded(r,function(){u._finished(s,"",null)})},u.options.parallelChunkUploads)for(var n=0;n<r.upload.totalChunkCount;n++)i();else i()}else{for(var a=[],l=0;l<s.length;l++)a[l]={name:u._getParamName(l),data:e[l],filename:s[l].upload.filename};u._uploadData(s,a)}})}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(t,e){var n=this,i=new XMLHttpRequest,r=!0,o=!1,a=void 0;try{for(var l,s=t[Symbol.iterator]();!(r=(l=s.next()).done);r=!0){l.value.xhr=i}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}t[0].upload.chunked&&(t[0].upload.chunks[e[0].chunkIndex].xhr=i);var u=this.resolveOption(this.options.method,t),c=this.resolveOption(this.options.url,t);i.open(u,c,!0),i.timeout=this.resolveOption(this.options.timeout,t),i.withCredentials=!!this.options.withCredentials,i.onload=function(e){n._finishedUploading(t,i,e)},i.ontimeout=function(){n._handleUploadError(t,i,"Request timedout after ".concat(n.options.timeout," seconds"))},i.onerror=function(){n._handleUploadError(t,i)},(null!=i.upload?i.upload:i).onprogress=function(e){return n._updateFilesUploadProgress(t,i,e)};var d={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var p in this.options.headers&&C.extend(d,this.options.headers),d){var h=d[p];h&&i.setRequestHeader(p,h)}var f=new FormData;if(this.options.params){var v=this.options.params;for(var m in"function"==typeof v&&(v=v.call(this,t,i,t[0].upload.chunked?this._getChunk(t[0],i):null)),v){var y=v[m];f.append(m,y)}}var g=!0,b=!1,k=void 0;try{for(var w,F=t[Symbol.iterator]();!(g=(w=F.next()).done);g=!0){var z=w.value;this.emit("sending",z,i,f)}}catch(e){b=!0,k=e}finally{try{g||null==F.return||F.return()}finally{if(b)throw k}}this.options.uploadMultiple&&this.emit("sendingmultiple",t,i,f),this._addFormElementData(f);for(var x=0;x<e.length;x++){var E=e[x];f.append(E.name,E.data,E.filename)}this.submitRequest(i,f,t)}},{key:"_transformFiles",value:function(n,i){for(var e=this,r=[],o=0,t=function(t){e.options.transformFile.call(e,n[t],function(e){r[t]=e,++o===n.length&&i(r)})},a=0;a<n.length;a++)t(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName){var t=!0,n=!1,i=void 0;try{for(var r,o=this.element.querySelectorAll("input, textarea, select, button")[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value,l=a.getAttribute("name"),s=a.getAttribute("type");if(s=s&&s.toLowerCase(),null!=l)if("SELECT"===a.tagName&&a.hasAttribute("multiple")){var u=!0,c=!1,d=void 0;try{for(var p,h=a.options[Symbol.iterator]();!(u=(p=h.next()).done);u=!0){var f=p.value;f.selected&&e.append(l,f.value)}}catch(e){c=!0,d=e}finally{try{u||null==h.return||h.return()}finally{if(c)throw d}}}else(!s||"checkbox"!==s&&"radio"!==s||a.checked)&&e.append(l,a.value)}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var i;if(void 0!==n){if(i=100*n.loaded/n.total,e[0].upload.chunked){var r=e[0],o=this._getChunk(r,t);o.progress=i,o.total=n.total,o.bytesSent=n.loaded;r.upload.progress=0,r.upload.total=0;for(var a=r.upload.bytesSent=0;a<r.upload.totalChunkCount;a++)void 0!==r.upload.chunks[a]&&void 0!==r.upload.chunks[a].progress&&(r.upload.progress+=r.upload.chunks[a].progress,r.upload.total+=r.upload.chunks[a].total,r.upload.bytesSent+=r.upload.chunks[a].bytesSent);r.upload.progress=r.upload.progress/r.upload.totalChunkCount}else{var l=!0,s=!1,u=void 0;try{for(var c,d=e[Symbol.iterator]();!(l=(c=d.next()).done);l=!0){var p=c.value;p.upload.progress=i,p.upload.total=n.total,p.upload.bytesSent=n.loaded}}catch(e){s=!0,u=e}finally{try{l||null==d.return||d.return()}finally{if(s)throw u}}}var h=!0,f=!1,v=void 0;try{for(var m,y=e[Symbol.iterator]();!(h=(m=y.next()).done);h=!0){var g=m.value;this.emit("uploadprogress",g,g.upload.progress,g.upload.bytesSent)}}catch(e){f=!0,v=e}finally{try{h||null==y.return||y.return()}finally{if(f)throw v}}}else{var b=!0,k=!0,w=!(i=100),F=void 0;try{for(var z,x=e[Symbol.iterator]();!(k=(z=x.next()).done);k=!0){var E=z.value;100===E.upload.progress&&E.upload.bytesSent===E.upload.total||(b=!1),E.upload.progress=i,E.upload.bytesSent=E.upload.total}}catch(e){w=!0,F=e}finally{try{k||null==x.return||x.return()}finally{if(w)throw F}}if(b)return;var C=!0,_=!1,S=void 0;try{for(var D,T=e[Symbol.iterator]();!(C=(D=T.next()).done);C=!0){var L=D.value;this.emit("uploadprogress",L,i,L.upload.bytesSent)}}catch(e){_=!0,S=e}finally{try{C||null==T.return||T.return()}finally{if(_)throw S}}}}},{key:"_finishedUploading",value:function(e,t,n){var i;if(e[0].status!==C.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(i=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(e){n=e,i="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,i,n):this._handleUploadError(e,t,i)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==C.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(e[0],t);if(i.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[i.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}},{key:"submitRequest",value:function(e,t){e.send(t)}},{key:"_finished",value:function(e,t,n){var i=!0,r=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(i=(a=l.next()).done);i=!0){var s=a.value;s.status=C.SUCCESS,this.emit("success",s,t,n),this.emit("complete",s)}}catch(e){r=!0,o=e}finally{try{i||null==l.return||l.return()}finally{if(r)throw o}}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){var i=!0,r=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(i=(a=l.next()).done);i=!0){var s=a.value;s.status=C.ERROR,this.emit("error",s,t,n),this.emit("complete",s)}}catch(e){r=!0,o=e}finally{try{i||null==l.return||l.return()}finally{if(r)throw o}}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}]),C}();Dropzone.initClass(),Dropzone.version="5.7.0",Dropzone.options={},Dropzone.optionsForElement=function(e){return e.getAttribute("id")?Dropzone.options[camelize(e.getAttribute("id"))]:void 0},Dropzone.instances=[],Dropzone.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},Dropzone.autoDiscover=!0,Dropzone.discover=function(){var s;if(document.querySelectorAll)s=document.querySelectorAll(".dropzone");else{s=[];var e=function(l){return function(){var e=[],t=!0,n=!1,i=void 0;try{for(var r,o=l[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;/(^| )dropzone($| )/.test(a.className)?e.push(s.push(a)):e.push(void 0)}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}return e}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){var e=[],t=!0,n=!1,i=void 0;try{for(var r,o=s[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;!1!==Dropzone.optionsForElement(a)?e.push(new Dropzone(a)):e.push(void 0)}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}return e}()},Dropzone.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],Dropzone.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){var t=!0,n=!1,i=void 0;try{for(var r,o=Dropzone.blacklistedBrowsers[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){r.value.test(navigator.userAgent)&&(e=!1)}}catch(e){n=!0,i=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw i}}}else e=!1;else e=!1;return e},Dropzone.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),r=new Uint8Array(i),o=0,a=t.length,l=0<=a;l?o<=a:a<=o;l?o++:o--)r[o]=t.charCodeAt(o);return new Blob([i],{type:n})};var without=function(e,t){return e.filter(function(e){return e!==t}).map(function(e){return e})},camelize=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})};Dropzone.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},Dropzone.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},Dropzone.getElement=function(e,t){var n;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector or a plain HTML element."));return n},Dropzone.getElements=function(e,t){var n,i;if(e instanceof Array){i=[];try{var r=!0,o=!1,a=void 0;try{for(var l,s=e[Symbol.iterator]();!(r=(l=s.next()).done);r=!0)n=l.value,i.push(this.getElement(n,t))}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}}catch(e){i=null}}else if("string"==typeof e){var u=!0,c=!(i=[]),d=void 0;try{for(var p,h=document.querySelectorAll(e)[Symbol.iterator]();!(u=(p=h.next()).done);u=!0)n=p.value,i.push(n)}catch(e){c=!0,d=e}finally{try{u||null==h.return||h.return()}finally{if(c)throw d}}}else null!=e.nodeType&&(i=[e]);if(null==i||!i.length)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return i},Dropzone.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},Dropzone.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");var n=e.type,i=n.replace(/\/.*$/,""),r=!0,o=!1,a=void 0;try{for(var l,s=t[Symbol.iterator]();!(r=(l=s.next()).done);r=!0){var u=l.value;if("."===(u=u.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(u.toLowerCase(),e.name.length-u.length))return!0}else if(/\/\*$/.test(u)){if(i===u.replace(/\/.*$/,""))return!0}else if(n===u)return!0}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new Dropzone(this,e)})}),"undefined"!=typeof module&&null!==module?module.exports=Dropzone:window.Dropzone=Dropzone,Dropzone.ADDED="added",Dropzone.QUEUED="queued",Dropzone.ACCEPTED=Dropzone.QUEUED,Dropzone.UPLOADING="uploading",Dropzone.PROCESSING=Dropzone.UPLOADING,Dropzone.CANCELED="canceled",Dropzone.ERROR="error",Dropzone.SUCCESS="success";var detectVerticalSquash=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var i=n.getContext("2d");i.drawImage(e,0,0);for(var r=i.getImageData(1,0,1,t).data,o=0,a=t,l=t;o<l;){0===r[4*(l-1)+3]?a=l:o=l,l=a+o>>1}var s=l/t;return 0==s?1:s},drawImageIOSFix=function(e,t,n,i,r,o,a,l,s,u){var c=detectVerticalSquash(t);return e.drawImage(t,n,i,r,o,a,l,s,u/c)},ExifRestore=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,i=void 0,r="",o=void 0,a=void 0,l=void 0,s="",u=0;o=(n=e[u++])>>2,a=(3&n)<<4|(i=e[u++])>>4,l=(15&i)<<2|(r=e[u++])>>6,s=63&r,isNaN(i)?l=s=64:isNaN(r)&&(s=64),t=t+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(l)+this.KEY_STR.charAt(s),n=i=r="",o=a=l=s="",u<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),i=this.slice2Segments(n),r=this.exifManipulation(t,i);return"data:image/jpeg;base64,".concat(this.encode64(r))}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),i=this.insertExif(e,n);return new Uint8Array(i)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),i=this.decode64(n),r=i.indexOf(255,3),o=i.slice(0,r),a=i.slice(r),l=o;return l=(l=l.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var i=t+(256*e[t+2]+e[t+3])+2,r=e.slice(t,i);n.push(r),t=i}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,i="",r=void 0,o=void 0,a="",l=0,s=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(l++))<<2|(r=this.KEY_STR.indexOf(e.charAt(l++)))>>4,n=(15&r)<<4|(o=this.KEY_STR.indexOf(e.charAt(l++)))>>2,i=(3&o)<<6|(a=this.KEY_STR.indexOf(e.charAt(l++))),s.push(t),64!==o&&s.push(n),64!==a&&s.push(i),t=n=i="",r=o=a="",l<e.length;);return s}}]),e}();ExifRestore.initClass();var contentLoaded=function(t,n){function i(e){if("readystatechange"!==e.type||"complete"===o.readyState)return("load"===e.type?t:o)[s](u+e.type,i,!1),!r&&(r=!0)?n.call(t,e.type||e):void 0}var r=!1,e=!0,o=t.document,a=o.documentElement,l=o.addEventListener?"addEventListener":"attachEvent",s=o.addEventListener?"removeEventListener":"detachEvent",u=o.addEventListener?"":"on";if("complete"!==o.readyState){if(o.createEventObject&&a.doScroll){try{e=!t.frameElement}catch(e){}e&&!function t(){try{a.doScroll("left")}catch(e){return void setTimeout(t,50)}return i("poll")}()}return o[l](u+"DOMContentLoaded",i,!1),o[l](u+"readystatechange",i,!1),t[l](u+"load",i,!1)}};function __guard__(e,t){return null!=e?t(e):void 0}function __guardMethod__(e,t,n){return null!=e&&"function"==typeof e[t]?n(e,t):void 0}Dropzone._autoDiscoverFunction=function(){if(Dropzone.autoDiscover)return Dropzone.discover()},contentLoaded(window,Dropzone._autoDiscoverFunction);
\ No newline at end of file
--- tags/ptiblogphp-20210622/custom.css (nonexistent)
+++ tags/ptiblogphp-20210622/custom.css (revision 14)
@@ -0,0 +1 @@
1+/* custom CSS - put here any ptiblogphp styles you'd like to overload */
--- tags/ptiblogphp-20210622/index.php (nonexistent)
+++ tags/ptiblogphp-20210622/index.php (revision 14)
@@ -0,0 +1,326 @@
1+<!DOCTYPE html>
2+<?php
3+
4+//
5+// ptiblogphp
6+//
7+// This is a simple blogging system, requires only standard PHP. All content
8+// is stored in filesystem (no database).
9+//
10+// Copyright (C) 2021 Mateusz Viste
11+// Published under the terms of the MIT license.
12+//
13+
14+$PVER = '20210622';
15+
16+// preinit a few global settings with default values
17+$ENTRIES_PER_PAGE = 5;
18+$ADMINPASS = '';
19+$ADMINLOGIN = '';
20+$TITLE = "MISSING TITLE";
21+
22+include 'settings.php';
23+
24+if (! empty($LANG)) {
25+ echo '<html lang="' . $LANG . '">' . "\n";
26+} else {
27+ echo '<html>' . "\n";
28+}
29+?>
30+ <head>
31+ <title><?php echo $TITLE; ?></title>
32+ <meta charset="UTF-8">
33+ <meta name="viewport" content="width=device-width, initial-scale=1">
34+ <meta name="generator" content="ptiblogphp/<?php echo $PVER; ?>">
35+ <link rel="stylesheet" type="text/css" href="style.css">
36+ <link rel="stylesheet" type="text/css" href="slide.css">
37+ <link rel="stylesheet" type="text/css" href="dropzone570/dropzone.min.css">
38+ <link rel="stylesheet" type="text/css" href="custom.css">
39+ </head>
40+
41+ <body>
42+ <div class="banner">
43+ <h1><?php echo $TITLE; ?></h1>
44+ </div>
45+
46+ <div class="zawartosc">
47+
48+ <?php
49+ $isadmin = false;
50+
51+ // funkcja ładująca listę artykułów
52+ function LadujArtykuly() {
53+ $r = array();
54+ $dirhandle = opendir('data');
55+ if (! $dirhandle) return($r);
56+ while (($entry = readdir($dirhandle)) !== false) {
57+ if ($entry[0] == '.') continue; // ignoruj ukryte pliki i katalogi oraz '.' i '..'
58+ if (! is_dir('data/' . $entry)) continue; // ignoruj pliki
59+ $r[] = $entry;
60+ }
61+ closedir($dirhandle);
62+ arsort($r); // sortuj anty-alfanumerycznie
63+ return($r);
64+ }
65+
66+ // ładuj listę plików z katalogu. Flaga:
67+ // 0 = wszystkie pliki
68+ // 1 = tylko zdjęcia
69+ // 2 = tylko nie-zdjęcia
70+ function ListaPlikow($katalog, $flaga) {
71+ $r = array();
72+ $dirhandle = opendir($katalog);
73+ if (! $dirhandle) return($r);
74+ while (($entry = readdir($dirhandle)) !== false) {
75+ if ($entry[0] == '.') continue; // ignoruj ukryte pliki i katalogi oraz '.' i '..'
76+ if (is_dir($katalog . '/' . $entry)) continue; // ignoruj katalogi
77+ if ($entry === 'body.txt') continue; // ignoruj plik z tekstem artykułu
78+ if (preg_match('/\.(jpg|jpeg|png)$/i', $entry)) {
79+ if ($flaga != 2) $r[$entry] = true;
80+ } else { // not a photo
81+ if ($flaga != 1) $r[$entry] = false;
82+ }
83+ }
84+ closedir($dirhandle);
85+ ksort($r); // sortuj alfanumerycznie
86+ return($r);
87+ }
88+
89+ function LadujPlikLinii($plik) {
90+ $r = explode("\n", file_get_contents($plik));
91+ return($r);
92+ }
93+
94+ function PaginationLink($p) {
95+ if ($p > 0) return('./?p=' . $p);
96+ return('./');
97+ }
98+
99+ // ustaw locale (np. dla generowania dat)
100+ setlocale(LC_ALL, "fr_FR");
101+
102+ // czytaj zmienne przekazane via get
103+ $p = 0;
104+ $action = "";
105+ $artid = "";
106+ if (!empty($_GET['p'])) $p = intval($_GET['p']);
107+ if (!empty($_GET['action'])) $action = $_GET['action'];
108+ if (!empty($_GET['artid'])) $artid = $_GET['artid'];
109+ if (!empty($_GET['zdjid'])) $zdjid = $_GET['zdjid'];
110+
111+ // nadpisz zmienne jeśli dostalismy operację POST
112+ if (!empty($_POST['p'])) $p = intval($_POST['p']);
113+ if (!empty($_POST['action'])) $action = $_POST['action'];
114+ if (!empty($_POST['artid'])) $artid = $_POST['artid'];
115+
116+ // inicjalizacja sesji
117+ session_set_cookie_params(3600 * 24 * 365); // set auth cookie lifetime to 1 year
118+ session_start();
119+
120+ // czy dostałem hasło? jeśli tak, sprawdź czy cokolwiek warte
121+ if ((isset($_POST['password'])) && (isset($_POST['login'])) && (!empty($ADMINPASS))) {
122+ if (($_POST['login'] === $ADMINLOGIN) && ($_POST['password'] === $ADMINPASS)) {
123+ $_SESSION['login'] = $_POST['login'];
124+ } else {
125+ echo '<p class="autherr">ERREUR D\'AUTHENTIFICATION</p>' . "\n";
126+ }
127+ }
128+
129+ // prośba o logout?
130+ if ($action === 'logout') {
131+ session_destroy();
132+ unset($_SESSION);
133+ $action = '';
134+ }
135+
136+ // admin?
137+ if ($_SESSION['login'] === $ADMINLOGIN) $isadmin = true;
138+
139+ if (isset($_SESSION['login'])) {
140+ echo "<p class=\"bonjour\">Bonjour {$_SESSION['login']}! <a href=\"./?action=logout&amp;p={$p}\">Déconnexion</a></p>\n";
141+ } else {
142+ echo "<p class=\"bonjour\"><a href=\"./?action=login&amp;p={$p}\">admin</a></p>\n";
143+ }
144+
145+ // wyświetl błąd jeśli nie-admin coś kombinuje
146+ if (! $isadmin) {
147+ if (($action === 'nowywpis') || ($action === 'dodajwpis')) {
148+ echo '<p class="autherr">FONCTION REFUSÉE, VEUILLEZ VOUS AUTHENTIFIER</p>' . "\n";
149+ $action = '';
150+ }
151+ }
152+
153+ // dodanie nowego wpisu? (albo edycja istniejącego)
154+ if (($isadmin) && ($action === 'dodajwpis')) {
155+ if (empty($artid)) $artid = time();
156+ $artdir = 'data/' . $artid;
157+ if (!is_dir('data')) mkdir('data'); // stwórz katalog danych jeśli jeszcze nie istnieje
158+ mkdir($artdir); // stwórz podkatalog dla artykułu
159+ $dh = fopen($artdir . '/body.txt', 'w');
160+ fwrite($dh, trim($_POST['arttit']));
161+ fwrite($dh, "\n");
162+ fwrite($dh, trim($_POST['artbody']));
163+ fclose($dh);
164+ // empty art? (delete)
165+ if (empty(trim($_POST['arttit'])) && empty(trim($_POST['artbody'])) && empty(ListaPlikow("data/{$artid}/", '/.*$/i'))) {
166+ unlink("data/{$artid}/body.txt");
167+ rmdir("data/{$artid}");
168+ }
169+ $action = '';
170+ }
171+
172+ if (($p == 0) && (empty($action))) {
173+ readfile("welcome.txt");
174+ } else if ($action === 'nowywpis') {
175+ echo "<p>Édition</p>\n";
176+ } else if ($action === 'login') {
177+ echo '<div class="authbox">' . "\n";
178+ echo '<div class="auth">' . "\n";
179+ echo "<p>Authentification:</p>\n";
180+ echo '<form action="./?p=' . $p . '" method="post" class="auth">' . "\n";
181+ echo '<div class="authcred">' . "\n";
182+ echo 'utilisateur: <input type="text" name="login" id="login"><br>' . "\n";
183+ echo 'mot de passe: <input type="password" name="password" id="password"><br>' . "\n";
184+ echo "</div>\n";
185+ echo '<p><input type="submit" value="connexion"></p>' . "\n";
186+ echo "</form>\n";
187+ echo "</div>\n";
188+ echo "</div>\n";
189+ goto BOTTOM;
190+ } else if (empty($action)) {
191+ echo '<p><a href="./"><img src="arrback.png" class="arrback"></a>&nbsp;<a href="./">Retour à l\'accueil</a></p>' . "\n";
192+ } else {
193+ echo '<p><a href="./"><img src="arrback.png" class="arrback"></a>&nbsp;<a href="./">Retour</a></p>' . "\n";
194+ }
195+
196+ // załaduj skrypt simpleSlider carousel: https://github.com/michu2k/SimpleSlider
197+ echo '<script src="SimpleSlider-v.1.9.0/dist/simpleSlider.min.js"></script>' . "\n";
198+
199+ // akcje adminowe
200+ if (($isadmin) && ($action === 'usunzdjecie')) {
201+ unlink("data/{$artid}/" . urldecode($zdjid));
202+ $action = 'zdjecia';
203+ }
204+
205+ if (($isadmin) && ($action === 'nowywpis')) { // nowy wpis
206+ $art_title = '';
207+ $art_body = '';
208+ if (! empty($artid)) { // edycja istniejącego wpisu
209+ $plik = LadujPlikLinii("data/{$artid}/body.txt");
210+ $art_title = $plik[0];
211+ array_splice($plik, 0, 1);
212+ foreach ($plik as $l) {
213+ $art_body .= $l . "\n";
214+ }
215+ }
216+ echo '<form action="' . PaginationLink($p) . '" method="post" class="nowywpis">' . "\n";
217+ echo "<div class=\"nowywpis\">\n";
218+ echo "<p>titre:</p>\n";
219+ if (! empty($artid)) {
220+ echo '<input type="hidden" id="artid" name="artid" value="' . $artid . '">' . "\n";
221+ }
222+ echo '<input type="hidden" id="action" name="action" value="dodajwpis">' . "\n";
223+ echo '<input type="text" id="arttit" name="arttit" value="' . htmlentities($art_title) . '">' . "\n";
224+ echo "<p>message:</p>\n";
225+ echo '<textarea name="artbody" id="artbody" rows="20">' . "\n";
226+ echo htmlentities($art_body);
227+ echo "</textarea>\n";
228+ echo "</div>\n";
229+ echo '<p style="text-align: center;"><a href="' . PaginationLink($p) . '">annuler</a> <input type="submit" value="envoyer" style="width: auto;"></p>' . "\n";
230+ echo "</form>\n";
231+ } else if (($isadmin) && ($action === 'zdjecia') && (! empty($artid))) { // zarządzanie zdjęciami
232+ echo "<p>Ajout de nouvelles photos:</p>\n";
233+ echo '<form action="./?artid=' . $artid . '&amp;action=uploadzdjecie" class="dropzone" id="formularzdropzone"></form>' . "\n";
234+ echo '<p class="admintool" style="text-align: center;"><a href="./?artid=' . $artid . '&amp;action=zdjecia">RAFRAICHIR</a></p>' . "\n";
235+ echo '<script src="./dropzone570/dropzone.min.js"></script>' . "\n";
236+ echo '<script>Dropzone.options.formularzdropzone = {resizeWidth: 1600, resizeHeight: 1200, dictDefaultMessage: "Déposez vos photos ici"};</script>' . "\n";
237+ $lista_plikow = ListaPlikow("data/{$artid}/", 0);
238+ foreach ($lista_plikow as $zd => $flaga_zdj) {
239+ $icon = 'file.png';
240+ if ($flaga_zdj) $icon = "data/{$artid}/" . htmlentities($zd);
241+ echo "<div class=\"managezd\"><img src=\"{$icon}\"><p>" . htmlentities($zd) . '</p><p>' . round(filesize("data/{$artid}/{$zd}") / 1024) . " KiB</p><p><a href=\"./?artid={$artid}&amp;action=usunzdjecie&amp;zdjid=" . urlencode($zd) . "\">SUPPRIMER</a></p></div>\n";
242+ }
243+ goto BOTTOM;
244+ } else if (($isadmin) && ($action === 'uploadzdjecie')) { // dropzone upload zdjęcia
245+ //$fh = fopen('log.txt', 'a');
246+ //fwrite($fh, "--- UPLOAD ---\n");
247+ foreach ($_FILES as $fname) {
248+ // fwrite($fh, $fname['name'] . "\n");
249+ move_uploaded_file($fname['tmp_name'], "data/{$artid}/{$fname['name']}");
250+ }
251+ //fclose($fh);
252+ } else if (($isadmin) && ($p == 0)) { // nic szczególnego
253+ echo "<p class=\"admintool\"><a href=\"./?action=nowywpis\">+ nouvelle entrée</a></p>\n";
254+ }
255+
256+ // wylistuj dostępne artykuły
257+ $arty = LadujArtykuly();
258+ $liczbastron = intval((count($arty) / $ENTRIES_PER_PAGE) + 0.9);
259+ array_splice($arty, 0, $p * $ENTRIES_PER_PAGE); // usuń nieinteresujące wpisy PRZED
260+ array_splice($arty, $ENTRIES_PER_PAGE); // zostaw odpowiednią ilość wpisów do wyświetlenia
261+ $licznik = 0;
262+
263+ foreach ($arty as $art) {
264+ $licznik++;
265+ $artcontent = LadujPlikLinii("data/{$art}/body.txt");
266+ echo "<div class=\"blogentry\">\n";
267+ if ($isadmin) {
268+ echo "<p class=\"admintool\"><a href=\"./?action=nowywpis&amp;artid={$art}&amp;p={$p}\">editer</a></p>\n";
269+ }
270+ echo "<h2>{$artcontent[0]}</h2>\n";
271+ echo "<h3>rédigé le " . strftime("%A, %e %B %Y", $art) . "</h3>\n";
272+ foreach ($artcontent as $i => $artline) {
273+ if ($i == 0) continue; // skip art title (already rendered)
274+ echo '<p>' . htmlentities($artline) . "</p>\n";
275+ }
276+ // mamy jakieś załączniki? (nie zdjęcia)
277+ $lista_plikow = ListaPlikow("data/{$art}/", 2);
278+ if (!empty($lista_plikow)) {
279+ echo '<p>';
280+ foreach ($lista_plikow as $plik => $plik_flaga) {
281+ echo "<img src=\"file.png\" style=\"height: 1em;\"> <a href=\"data/{$art}/{$plik}\">{$plik}</a> (" . round(filesize("data/{$art}/{$plik}") / 1024) . " KiB)<br>\n";
282+ }
283+ echo "</p>\n";
284+ }
285+ // SLAJDY START
286+ $lista_zdjec = ListaPlikow("data/{$art}/", 1);
287+ if (! empty($lista_zdjec)) { // zdjęcia?
288+ echo '<div class="simple-slider simple-slider-' . $licznik . '">' . "\n";
289+ if (count($lista_zdjec) > 1) echo ' <div class="slider-wrapper">' . "\n";
290+ foreach ($lista_zdjec as $f => $flaga_zdj) {
291+ echo ' <div class="slider-slide" style="background-image: url(\'data/' . $art . '/' . addslashes($f) . '\'); background-size: contain;"></div>' . "\n";
292+ }
293+ if (count($lista_zdjec) > 1) {
294+ echo " </div>\n";
295+ echo ' <div class="slider-btn slider-btn-prev"></div>' . "\n";
296+ echo ' <div class="slider-btn slider-btn-next"></div>' . "\n";
297+ }
298+ echo "</div>\n";
299+ if (count($lista_zdjec) > 1) echo "<script>var slide = new SimpleSlider('.simple-slider-{$licznik}', {autoplay: false, speed: 700});</script>\n";
300+ }
301+ // SLAJDY STOP
302+
303+ if ($isadmin) {
304+ echo "<p class=\"admintool\"><a href=\"./?action=zdjecia&amp;artid={$art}&amp;p={$p}\">ajout ou suppression de photos</a></p>\n";
305+ }
306+ echo "</div>\n";
307+ }
308+ echo '<p class="paginacja">';
309+ if ($p > 0) {
310+ echo '<a href="' . PaginationLink($p - 1) . '"><img src="arrleft.png" class="arractive"></a>';
311+ } else {
312+ echo '<img src="arrleft.png" class="arrinactive">';
313+ }
314+ echo ' page ' . ($p + 1) . ' sur ' . $liczbastron . ' ';
315+ if ($p + 1 < $liczbastron) {
316+ echo '<a href="' . PaginationLink($p + 1) . '"><img src="arrright.png" class="arractive"></a>';
317+ } else {
318+ echo '<img src="arrright.png" class="arrinactive">';
319+ }
320+ echo "</p>\n";
321+
322+ BOTTOM:
323+ ?>
324+ </div>
325+ </body>
326+</html>
--- tags/ptiblogphp-20210622/ptiblogphp.txt (nonexistent)
+++ tags/ptiblogphp-20210622/ptiblogphp.txt (revision 14)
@@ -0,0 +1,50 @@
1+
2+ ptiblogphp - a tiny PHP blog that is easy to set up and easy to run
3+ Copyright (C) 2021 Mateusz Viste
4+
5+
6+ptiblogphp is a tiny, extremely light PHP blog engine. It stores all its
7+content in filesystem, hence it requires no database. Only a web server with
8+PHP.
9+
10+Homepage: http://ptiblogphp.osdn.io
11+
12+
13+=== INSTALLATION AND SETUP ===================================================
14+
15+Installing ptiblogphp is as simple as copying all its files to a directory
16+that is exposed by your web server. Then, edit out the settings.php file so it
17+suits you and type in your own welcome message in welcome.txt.
18+You might also want to tune the CSS styles and images (banner and background)
19+to fit your preferences.
20+
21+
22+=== CONTACT ==================================================================
23+
24+Wanna get in touch with me? Follow this trail: http://mateusz.viste.fr
25+
26+
27+=== LICENSE ==================================================================
28+
29+ptiblogphp has been created by Mateusz Viste, who published it under the terms
30+of the MIT license, as listed below.
31+
32+Copyright (C) 2021 Mateusz Viste
33+
34+Permission is hereby granted, free of charge, to any person obtaining a copy
35+of this software and associated documentation files (the "Software"), to deal
36+in the Software without restriction, including without limitation the rights
37+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
38+copies of the Software, and to permit persons to whom the Software is
39+furnished to do so, subject to the following conditions:
40+
41+The above copyright notice and this permission notice shall be included in all
42+copies or substantial portions of the Software.
43+
44+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
46+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
47+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
50+SOFTWARE.
--- tags/ptiblogphp-20210622/settings.php (nonexistent)
+++ tags/ptiblogphp-20210622/settings.php (revision 14)
@@ -0,0 +1,10 @@
1+<?php
2+
3+$TITLE = 'ptiblogphp is online!';
4+$LANG = 'en';
5+$ENTRIES_PER_PAGE = 5;
6+
7+$ADMINLOGIN = 'admin';
8+$ADMINPASS = '';
9+
10+?>
--- tags/ptiblogphp-20210622/slide.css (nonexistent)
+++ tags/ptiblogphp-20210622/slide.css (revision 14)
@@ -0,0 +1,39 @@
1+@import url('./SimpleSlider-v.1.9.0/dist/simpleSlider.min.css');
2+
3+div.simple-slider {
4+ height: 26em;
5+ width: 100%;
6+ margin: 0;
7+ border: 1px #ccc solid;
8+ border-radius: 0.2em;
9+}
10+
11+@media (max-width: 800px) {
12+ div.simple-slider {
13+ height: 20em;
14+ }
15+}
16+
17+@media (max-width: 640px) {
18+ div.simple-slider {
19+ height: 16em;
20+ }
21+}
22+
23+@media (max-width: 500px) {
24+ div.simple-slider {
25+ height: 12em;
26+ }
27+}
28+
29+div.slider-slide {
30+ width: 100%;
31+ background-size: contain;
32+ background-repeat: no-repeat;
33+ background-color: #eee;
34+}
35+
36+.slider-btn {
37+ stroke: rgb(255,0,255);
38+ stroke-width: 2;
39+}
--- tags/ptiblogphp-20210622/style.css (nonexistent)
+++ tags/ptiblogphp-20210622/style.css (revision 14)
@@ -0,0 +1,254 @@
1+
2+html {
3+ background-color: #f5f7ff;
4+}
5+
6+body {
7+ font-size: 1.2em;
8+ font-family: sans-serif;
9+ max-width: 1200px;
10+ border-left: 1px #ccc solid;
11+ border-right: 1px #ccc solid;
12+ border-bottom: 1px #ccc solid;
13+ margin: 0 auto;
14+ padding: 0;
15+ background: #fff;
16+}
17+
18+div.banner {
19+ display: table;
20+ width: 100%;
21+ height: 12em;
22+ overflow: hidden;
23+ background-color: #235;
24+ background: url("banner.jpg");
25+ background-size: cover;
26+ background-position: center;
27+ border-bottom: 1px #ccc solid;
28+}
29+
30+div.banner h1 {
31+ font-family: sans-serif;
32+ display: table-cell;
33+ vertical-align: middle;
34+ text-align: center;
35+ font-size: 4em;
36+ padding: 0 0.5em;
37+ color: #fff;
38+ text-shadow:
39+ -1px -1px 1px #000,
40+ 1px -1px 1px #000,
41+ -1px 1px 1px #000,
42+ 1px 1px 1px #000;
43+}
44+/* zmniejsz tytuł na ekranach o niskiej rozdzielczości */
45+@media (max-width: 1024px) {
46+ div.banner h1 {
47+ font-size: 3em;
48+ }
49+ img {
50+ width: 100%;
51+ margin: 1em 0;
52+ }
53+}
54+@media (max-width: 500px) {
55+ div.banner h1 {
56+ font-size: 2.5em;
57+ }
58+}
59+
60+div.zawartosc {
61+ line-height: 1.5em;
62+ margin: 0;
63+ padding: 0 0.5em 0.5em 0.5em;
64+}
65+/* clearfix - so photos or stuff never go beyond div */
66+div.zawartosc:after {
67+ content: "";
68+ display: table;
69+ clear: both;
70+}
71+
72+div.authbox {
73+ margin-top: 1em;
74+ text-align: center;
75+ margin-bottom: 1em;
76+}
77+
78+div.auth {
79+ padding: 0 0.5em;
80+ border: 1px #ddd solid;
81+ border-radius: 0.2em;
82+ /* float: right; */
83+ display: inline-block;
84+ text-align: center;
85+}
86+
87+div.auth p {
88+ line-height: 1.15em;
89+}
90+
91+div.authcred {
92+ text-align: right;
93+}
94+
95+p.bonjour {
96+ background-color: #fec;
97+ border: 1px #999 solid;
98+ border-radius: 0.2em;
99+ float: right;
100+ padding: 0 0.5em;
101+ margin: -2.35em -0.3em 0 0;
102+ font-size: 0.8em;
103+}
104+
105+div.blogentry {
106+ background-color: #fefefe;
107+ margin: 0 0 0.9em 0;
108+ padding: 0.5em;
109+ border: 1px #ccc dotted;
110+ border-radius: 0.2em;
111+}
112+
113+div.blogentry h2 {
114+ font-size: 1.2em;
115+ text-align: left;
116+ font-weight: bold;
117+ font-style: normal;
118+ margin: 0;
119+}
120+
121+div.blogentry h3 {
122+ font-size: 0.85em;
123+ color: #888;
124+ text-align: left;
125+ font-weight: normal;
126+ font-style: normal;
127+ margin: -0.4em 0 0.5em 0;
128+}
129+
130+div.blogentry p {
131+ line-height: normal;
132+}
133+
134+p.paginacja {
135+ text-align: center;
136+}
137+
138+p.paginacja span {
139+ color: #ddd;
140+}
141+
142+p.autherr {
143+ font-weight: bold;
144+ color: #000;
145+ background-color: #faa;
146+ text-align: center;
147+}
148+
149+a {
150+ color: #00d;
151+ text-decoration: underline dotted;
152+}
153+
154+a:hover {
155+ color: #880;
156+}
157+
158+img.arrback {
159+ height: 1.4em;
160+ width: auto;
161+ vertical-align: middle;
162+ filter: opacity(0.4) drop-shadow(0 0 0 #33f);
163+}
164+
165+img.arrback:hover {
166+ filter: opacity(0.4) drop-shadow(0 0 0 #ff0);
167+}
168+
169+img.arractive {
170+ height: 1em;
171+ width: auto;
172+ filter: opacity(0.6) drop-shadow(0 0 0 #33f);
173+ vertical-align: middle;
174+}
175+
176+img.arractive:hover {
177+ filter: opacity(0.6) drop-shadow(0 0 0 #ff0);
178+}
179+
180+img.arrinactive {
181+ height: 1em;
182+ width: auto;
183+ opacity: 0.2;
184+ vertical-align: middle;
185+}
186+
187+p.admintool {
188+ text-align: right;
189+ margin: 1px 0 0.25em 0;
190+ font-size: 0.8em;
191+}
192+
193+p.admintool a {
194+ background-color: #ff4;
195+ border-radius: 0.2em;
196+ padding: 0 0.5em;
197+}
198+
199+div.nowywpis {
200+ border: 1px #ccc solid;
201+ border-radius: 0.2em;
202+ background-color: #f2f2f2;
203+ padding: 0.5em;
204+ margin-bottom: 1em;
205+}
206+
207+div.nowywpis p {
208+ margin: 0;
209+}
210+
211+form.nowywpis {
212+ width: 100%;
213+}
214+
215+form.nowywpis textarea {
216+ width: 100%;
217+}
218+
219+form.nowywpis input {
220+ width: 96%;
221+}
222+
223+div.managezd {
224+ border: 1px #aaa dashed;
225+ border-radius: 0.2em;
226+ background-color: #eee;
227+ padding: 0.3em 0.5em;
228+ margin: 0.5em 0;
229+ overflow: hidden; /* div zwieksza rozmiar do obrazka */
230+}
231+
232+div.managezd img {
233+ width: 10em;
234+ height: auto;
235+ margin: 0 0.5em 0 0;
236+ border: 1px #ccc solid;
237+ border-radius: 0.2em;
238+ float: left;
239+}
240+
241+div.managezd p {
242+ margin: 0;
243+}
244+
245+div.managezd a {
246+ border-radius: 0.2em;
247+ background-color: #fa4;
248+ padding: 0 0.5em;
249+}
250+
251+div.managezd a:hover {
252+ background-color: #f22;
253+ color: #111;
254+}
--- tags/ptiblogphp-20210622/welcome.txt (nonexistent)
+++ tags/ptiblogphp-20210622/welcome.txt (revision 14)
@@ -0,0 +1,3 @@
1+<p>Welcome to ptiblogphp! This is a default welcome message. You should modify it by editing the welcome.txt file.</p>
2+
3+<p>This file contains HTML, so you may use all kinds of HTML constructs like <span style="font-style: italic; font-weight: bold; color: red;">special font effects</span>, <a href="http://ptiblogphp.osdn.io">cool links</a> or <span title="hello, I am a popup message" style="text-decoration: underline wavy;">other fancy stuff</span>.</p>
Show on old repository browser