-================================================== */
-
-/*3 Corp Colors*/
-
-.bg-primary {
- background-color: #44d;
-}
-
-.bg-secondary {
- background-color: #67d;
-}
-
-.bg-light {
- background-color: #edf2f7;
-}
-
-/*General Colors*/
-
-.bg-black {
- background-color: #111;
-}
-.bg-black-blue {
- background-color: #123;
-}
-.bg-blue {
- background-color: #346;
-}
-.bg-brown {
- background-color: #f8f8f9;
-}
-.bg-gray {
- background-color: #d5d9e2;
-}
-.bg-green {
- background-color: #077;
-}
-.bg-purple {
- background-color: #62b;
-}
-
-.bg-red {
- background-color: #c23;
-}
-
-.bg-white {
- background-color: #fff;
-}
-[class*="bg-"] .bg-white {
- text-shadow: none;
- color: #333;
-}
-
-/* BG Apple Keynote*/
-
-.bg-apple {
- background: linear-gradient(to bottom, #000 0%, #1a2028 50%, #293845 100%);
-}
-
-
-/* BG Facebook */
-
-.bg-facebook {
- background: #3b5998;
-}
-
-
-/*Font Color*/
-.bg-trans-dark,.bg-trans-gradient,
-.bg-primary,
-.bg-secondary,
-.bg-blue,
-.bg-green,.bg-purple,.bg-red,.bg-facebook,.bg-apple,[class*="bg-black"],[class*="bg-gradient-"] {
- color: #fff;
- text-shadow: 0 1px 0 #013;
-}
-
-.bg-light p {
- color: #456;
-}
-/*.bg-white p,*/
-.bg-brown p{color: #666;
-}
-
-/*Transparent/Opacity*/
-
-.bg-trans-dark {
- background: rgba(0, 0, 0, 0.8);
-}
-
-.bg-trans-light {
- background: rgba(0, 0, 0, 0.2);
-}
-
-/*Covers/Longforms...*/
-.bg-trans-gradient{
-background: linear-gradient(to top, rgba(0,0,0,0.8) 0%,rgba(0,0,0,0) 100%);
-}
-
-/*Horizontal Gradient*/
-
-.bg-gradient-h {
- background: linear-gradient(134deg,#32b 0,#62b 100%);
-}
-
-
-/*Vertical Gradient*/
-
-.bg-gradient-v {
- background: linear-gradient(to top, #62b 0%, #32b 100%);
-}
-
-
-/*Radial Gradient*/
-
-.bg-gradient-r {
- background: radial-gradient(ellipse at center, #62b 0%, #32b 100%);
-}
-
-/*White Gradient (vertical)*/
-.bg-gradient-white {
- background: linear-gradient(180deg,#f2f4f6 0,#fff 100%);
- color: #333;
- text-shadow: none;
-}
-
-/*Gray Gradient (horizontal)*/
-.bg-gradient-gray{
-background: linear-gradient(90deg,#f7f9fb 0,#dee2e6 100%);
-color: #333;
-text-shadow: none;
-}
-/*Border/Frame*/
-.frame {
- border: .8rem solid #fff;
-}
-
-/*Layer/Box Shadow*/
-.shadow,.pre {
-position: relative;
-}
-.shadow:before,.shadow:after {
- box-shadow: 0 16px 24px rgba(0, 20, 80, 0.3);
-}
-
-/*============================
-TYPOGRAPHY
-============================== */
-
-/* -- Horizontal separator -- */
-
-.text-separator:before {
- background-color: rgba(170, 0, 0, 0.8);
-}
-
-/* -- Pull Quote (Right/Left) -- */
-
-[class*="text-pull-"] {
-border-top: 4px solid rgba(0, 0, 0, 0.5);
-}
-img[class*="text-pull-"],figure[class*="text-pull-"] {
-border-top: none;
-}
-/* -- Context -- */
-
-[class*="bg-"] .text-context:before {
- background-color: #fff;
-}
-.text-context:before,.bg-white .text-context:before{
- background-color: rgba(0, 20, 80, 0.2);
-}
-
-/* -- Text shadow -- */
-.text-shadow {
- text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
-}
-
-/* -- time, ampersands, prepositions (for, of...), symbols... -- */
-
-[class*="card-"] time,
-h1 span {
- color: #abd;
-}
-
-/* -- comment -- */
-.code-comment {
- color: rgba(70, 170, 130, 0.9);
- text-shadow: none;
-}
-
-/*=========================================
-Header/Nav
-=========================================== */
-
-header[role=banner] {
- background-color: #fff;
-}
-
-.logo a {
- color: inherit;
-}
-
-nav[role=navigation] li a {
- background-color: rgba(50, 50, 50, .9);
-}
-
-nav[role=navigation] li a:hover {
- background-color: rgba(50, 50, 50, .7);
-}
-
-nav[role=navigation] li a,
-nav[role=navigation] li a:hover {
- color: #fff;
-}
-
-nav[role=navigation] li.active a {
- background-color: #555;
- color: #fff;
-}
-
-
-nav li.twitter a:hover {
- background-color: #1da1f3;
-}
-nav li.facebook a:hover {
- background-color: #3b5998;
-}
-
-nav li.linkedin a:hover {
- background-color: #1683bb;
-}
-
-nav li.dribbble a:hover {
- background-color: #ea4c89;
-}
-
-nav li.github a:hover {
- background-color: #60b044;
-}
-
-nav li.email a:hover {
- background: #dd4b39;
-}
-
-/*===================================================
-.flexblock li hover/active
-===================================================== */
-
-.flexblock li.active a,
-.metrics li:hover,
-.specs li:hover,.reasons li:hover {
- background-color: rgba(0, 20, 80, 0.03);
-}
-
-/*=========================================
-Features & Clients List
-=========================================== */
-
-.features li,.clients li {
- background-color: rgba(255, 255, 255, 0.9);
-}
-
-[class*="bg-"] .features li,
-[class*="bg-"] .clients li {
- background-color: rgba(255, 255, 255, 0.1);
-}
-
-.features li:hover,.clients li:hover {
-box-shadow: 0 8px 16px rgba(0,20,80,.02),0 4px 16px rgba(0,0,0,.08);
-}
-/*.features li span,.features li svg{color: #44d;}*/
-
-/*============================
-.flexblock with border
-============================== */
-
-.border {
- border-right: 1px solid rgba(0, 20, 80, 0.1);
- border-bottom: 1px solid rgba(0, 20, 80, 0.1);
-}
-
-.border li {
- border-top: 1px solid rgba(0, 20, 80, 0.1);
- border-left: 1px solid rgba(0, 20, 80, 0.1);
-}
-
-.flexblock.border li li {
- border: none;
-}
-
-/*===========================================
-flexblock.steps
-============================================= */
-
-.steps li:nth-child(1) {
- background-color: #e8eef7;
-}
-
-.steps li:nth-child(2) {
- background-color: #dde5f3;
-}
-
-.steps li:nth-child(3) {
- background-color: #cdd8ec;
-}
-
-.steps li:nth-child(4) {
- background-color: #bbcdec;
-}
-
-.process {
- border-top: 15px solid transparent;
- border-bottom: 15px solid transparent;
-}
-
-.steps li:hover,
-.steps.blink li:hover>a {
- background-color: #b8cef7;
-}
-
-@media (min-width: 1024px) {
- .process.step-2 {
- border-left-color: #e8eef7;
- }
- .process.step-3 {
- border-left-color: #dde5f3;
- }
- .process.step-4 {
- border-left-color: #cdd8ec;
- }
- .steps li:hover + li [class*="step-"] {
- border-left-color: #b8cef7;
- }
-}
-
-
-/*=========================================================
-Items: You can use for settings, drag&drop, close/delete...
-=========================================================== */
-
-.specs li:after {
- background: linear-gradient(to right, rgba(0, 20, 80, 0) 0%, rgba(0, 20, 80, 0.2) 50%, rgba(0, 20, 80, 0) 100%);
-}
-
-.specs li:last-child:after {
- background: none;
-}
-
-/*.specs li {background: rgba(255,255,255,0.2);}*/
-
-/*=========================================================
-Why/Steps/Motivation/Reasons - Decimal/Numbers
-=========================================================== */
-
-.reasons li:after {
- background: linear-gradient(to right, rgba(0, 20, 80, 0) 0%, rgba(0, 20, 80, 0.2) 50%, rgba(0, 20, 80, 0) 100%);
-}
-
-.reasons li:last-child:after {
- background: none;
-}
-
-/*=========================================
-Overlays
-=========================================== */
-
-.overlay {
- background-color: rgba(0, 0, 0, 0.2);
- /*background-color: rgba(255,255,255 , 0.9);*/
- /*border: 3px double #fff;*/
-}
-
-li:hover .overlay {
- background-color: rgba(0, 0, 0, 0.1);
-}
-
-.overlay,
-.overlay a {
- color: #fff;
- text-shadow: 0 1px 0 #111;
-}
-
-
-/*=========================================
-Gallery li+.overlay+image
-=========================================== */
-
-.gallery li {
- background-color: rgba(0, 20, 80, 0.06);
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.03);
-}
-
-.gallery li figcaption {
- background-color: #fff;
-}
-
-.flexblock.gallery li:hover {
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.08);
-}
-.gallery li footer {
-border-top:1px solid rgba(0,20,80,0.1);
-}
-
-.gallery li a {
- color: #333;
- text-shadow: none;
-}
-.flesblock.gallery li a footer{color: #aaa;}
-/*Arrow */
-
-.gallery li figcaption:before {
- border: .8rem solid black;
- border-color: transparent transparent #fff #fff;
- /*box-shadow: -3px 3px 3px 0 rgba(0, 0, 0, 0.4);*/
-}
-
-
-
-/*=========================================
-Plans / Pricing
-=========================================== */
-
-.plans>li div,
-.flexblock.plans li:hover div {
- background-color: #fff;
-}
-
-.plans>li:hover,
-.plans>li:nth-child(2) {
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
-}
-
-.plans:hover li:nth-child(2):not(:hover) {
- box-shadow: none;
-}
-
-.plans li h2 {
- background-color: rgba(0, 20, 80, 0.5);
- color: #fff;
-}
-
-.plans ul li {
- border-bottom: 1px solid rgba(0, 20, 80, 0.1);
-}
-
-.plans ul li:last-child {
- border-bottom: none;
-}
-
-.plans>li>a {
- color: inherit;
-}
-
-.plans>li>a {
- color: #333;
- text-shadow: none;
-}
-
-
-/*============================
-Activity/CV/Timeline/News
-============================== */
-
-.activity li {
- border-top: .1rem solid rgba(0, 20, 80, 0.1);
-}
-
-.activity li:hover {
- background-color: rgba(0, 20, 80, 0.02);
-}
-
-
-/*=========================================
-Resume/Work/CV/Portfolio
-=========================================== */
-
-.work-label,
-.work li a {
- border-bottom: 1px solid rgba(0, 20, 80, 0.1);
-}
-
-.work li:nth-child(odd)>a {
- background-color: rgba(0, 20, 80, 0.03);
-}
-
-.work li a:hover {
- background-color: rgba(0, 20, 80, 0.04);
-}
-
-
-/*===========================================
-Clients / Services / Logos...
-============================================= */
-
-
-.clients.border figcaption {border-top:1px solid rgba(0,20,80,0.1);
-}
-/*.clients>li {
- background: rgba(255, 255, 255, 0.8);
-}
-*/
-
-/*====================
-LOGOS
-====================== */
-
-img.blacklogo {
- background: none;
- /* --- Images (black logo/image) --- */
- -webkit-filter: grayscale(100%) brightness(10%) contrast(100%);
- filter: grayscale(100%) brightness(10%) contrast(100%);
-}
-
-
-/* --- Images (gray logo/image) --- */
-
-img.graylogo {
- -webkit-filter: grayscale(100%) brightness(10%) contrast(10%);
- filter: grayscale(100%) brightness(10%) contrast(10%);
-}
-
-
-/* --- Images (white Logo/Image) --- */
-
-img.whitelogo {
- -webkit-filter: brightness(0) invert(1);
- filter: brightness(0) invert(1);
-}
-
-
-/* --- Logo/Images Hover --- */
-
-li:hover img.blacklogo,
-li:hover img.graylogo,
-img.blacklogo:hover,img.graylogo:hover {
- background: none;
- /*Images - Original Color*/
- filter: grayscale(0%);
- -webkit-filter: grayscale(0%);
- filter: none;
- transition: all 0.6s ease;
-}
-
-
-/*=========================================================
-Cards
-=========================================================== */
-
-[class*="card-"]>a {
- color: inherit;
-}
-
-/* --- card ul specs --- */
-
-.description>li {
- border-bottom: 1px solid rgba(0, 20, 80, 0.1);
-}
-
-.description>li:last-child {
- border-bottom: none;
-}
-
-/*== Figure Background === */
-
-[class*="card-"][class*="bg-"] figure {
-background-color: rgba(0, 20, 80, 0.06);
-}
-
-/*== Ficaption Cards === */
-
-[class*="card"] figcaption,
-[class*="card"] figcaption a {
- color: #fff;
- background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
-}
-
-@media (min-width: 768px) {
- /*===CTA (Call to Action - Numbers, Price, Promo...) ===== */
- .cta .benefit {
- border-left-width: 1px;
- border-style: solid;
- border-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4) 50%, transparent) 1 100%;
- -webkit-border-image: -webkit-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4) 50%, transparent) 1 100%;
- -moz-border-image: -moz-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4) 50%, transparent) 1 100%;
-
- }
-}
-
-
-/*=========================================
-Tables
-=========================================== */
-
-table td,
-th,
-thead {
- border: 1px solid rgba(0, 0, 0, 0.5);
-}
-
-thead {
- background-color: rgba(0, 0, 0, 0.3);
-}
-
-tr:nth-child(even)>td {
- background: rgba(0, 0, 0, 0.1);
-}
-
-tr>td {
- border-top: 1px solid rgba(0, 0, 0, 0.5);
-}
-
-td:hover,
-tr:nth-child(even)>td:hover {
- background-color: rgba(255, 255, 255, 0.5);
-}
-
-
-/*============================
-Browser (Screenshots)
-============================== */
-
-.browser {
- border: 1px solid rgba(0, 20, 80, 0.1);
-}
-
-.browser:hover {
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
-}
-
-
-/*=== Topbar === */
-
-.browser:before {
- background-color: rgba(0, 20, 80, 0.1);
- color: rgba(255, 255, 255, 0.9);
- border-bottom: 1px solid rgba(0, 20, 80, 0.2);
-}
-
-.browser:hover:before {
- background-color: rgba(0, 20, 80, 0.12);
- color: #fff;
-}
-
-
-/*=========================================
-Forms
-=========================================== */
-
-input,
-textarea {
- background-color: #fafbfc;
-}
-
-input:focus,
-textarea:focus {
- background-color: #fff;
- box-shadow: 0 0 5px rgba(81, 203, 238, 1);
-}
-input:focus::-moz-placeholder {
- color: #ddd;
-}
-input:focus::-webkit-input-placeholder {
- color: #ddd;
-}
-a.button,[class*="badge-"]
-button[type="submit"],
-input {
- box-shadow: 0px 10px 16px -8px rgba(0, 20, 80, 0.3);
-}
-
-button,
-input,
-select,
-textarea,
-button[type="submit"],
-input[type="submit"],
-.button,.button:hover,
-button[type="submit"]:hover,
-input[type="submit"]:hover
-{
- border: 1px solid #44d;
-}
-
-button[type="submit"],
-input[type="submit"],
-.button,.button:hover,button[type="submit"]:hover,input[type="submit"]:hover {
- color: #fff;
- background-color: #44d;
- text-shadow: 0 1px 0 #123;
-}
-.button:active,button[type="submit"]:active,input[type="submit"]:active {
-background-color: #17d;
-}
-.ghost,.ghost:hover {background: none;color: inherit;text-shadow: none;}
-.bg-primary select,
-.bg-primary textarea,
-.bg-primary .button,
-.bg-primary button,.bg-primary button:hover,
-.bg-primary input,
-[class*="bg-gradient-"] .button,[class*="bg-"] a.button.ghost
-{
- border-color: #fff;
-}
-
-[class*="bg-"] a.button {
- color: #fff;
-}
-
-.bg-white a.button.ghost,.bg-gradient-white a.button.ghost {color: #333;border: 1px solid #44d;}
-
-:disabled,
-button:disabled:hover {
- background-color: #eee;
- border-color: #eee;
- color: #ccc;
-}
-fieldset {
- border: 1px solid #44d;
- background-color: rgba(0, 20, 80, 0.2)
-}
-
-legend {
- background-color: rgba(0, 0, 0, 0.6);
- color: #fff;
-}
-
-
-/* Inputs/Buttons - hover */
-
-input:hover,
-select:hover {
- box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
-}
-
-
-/* App Store Badges */
-
-[class*="badge-"] {
- border: 1px solid #345;
- background-color: #000;
- /* Transparent Button */
- /* background: none;*/
-}
-
-
-form .flexblock li:hover {
- background-color: rgba(0, 0, 0, 0.05);
-}
-
-/*============================
-Table of Contents
-============================== */
-
-.toc,
-.toc ol>li:before,
-.chapter {
- background-color: #f7f9fb;
-}
-
-.toc li .toc-page:before {
- border-bottom: 1px dotted rgba(0, 0, 0, 0.9);
-}
-
-
-/*============================
-Slides (Counter/Arrows)
-============================== */
-
-
-/*#navigation:hover {
- background-color: rgba(0, 0, 0, 0.03);
-}
-*/
-#counter,
-#navigation a {
- color: #abc;
-}
-
-#webslides:hover #navigation a:hover {
- color: #fff;
- background-color: rgba(0, 0, 0, 0.9);
-}
-
-/*============================
-Footer
-============================== */
-
-footer[role=contentinfo] {
- background-color: #fff;
-}
-
-/*footer:hover {
-background-color:rgba(255,255,255 , 0.3);
-}
-*/
-
-/*============================
-Slides Index
-============================== */
-
-#webslides-zoomed.grid > .column > .wrap-zoom {
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.04);
-}
-#webslides-zoomed.grid > .column > .wrap-zoom:hover {
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.08);
-}
-.text-slide-number {
- /*background-color: rgba(255, 255, 255, 0.1);*/
- color: #456;
- text-shadow: 0 1px 0 #fafafa;
- }
diff --git a/static/css/webslides.css b/static/css/webslides.css
new file mode 100644
index 0000000..649a395
--- /dev/null
+++ b/static/css/webslides.css
@@ -0,0 +1,11 @@
+/*!
+ * Name: WebSlides
+ * Version: 1.3.1
+ * Date: 2017-05-01
+ * Description: Making HTML presentations easy
+ * URL: https://github.com/webslides/webslides#readme
+ * Credits: @jlantunez, @LuisSacristan, @Belelros
+ */
+a {
+ display: -ms-flexbox;
+ display: flex; }
diff --git a/static/js/webslides.js b/static/js/webslides.js
index 9028c73..dc8fbb4 100644
--- a/static/js/webslides.js
+++ b/static/js/webslides.js
@@ -1,7 +1,7 @@
/*!
* Name: WebSlides
* Version: 1.3.1
- * Date: 2017-04-29
+ * Date: 2017-05-01
* Description: Making HTML presentations easy
* URL: https://github.com/webslides/webslides#readme
* Credits: @jlantunez, @LuisSacristan, @Belelros
@@ -71,7 +71,7 @@
/******/ __webpack_require__.p = "/static/js/";
/******/
/******/ // Load entry module and return exports
-/******/ return __webpack_require__(__webpack_require__.s = 5);
+/******/ return __webpack_require__(__webpack_require__.s = 6);
/******/ })
/************************************************************************/
/******/ ([
@@ -79,7 +79,7 @@
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__custom_event__ = __webpack_require__(18);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__custom_event__ = __webpack_require__(19);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -238,8 +238,7 @@ var DOM = function () {
}
/**
- * Checks if the element is visible.This is only intended
- * to be used in conjunction with DOM.hide and DOM.show
+ * Checks if the element is visible.
* @param {Element} el Element to check.
* @return {boolean}
*/
@@ -247,7 +246,7 @@ var DOM = function () {
}, {
key: 'isVisible',
value: function isVisible(el) {
- return el.style.display == '';
+ return el.offsetParent !== null;
}
/**
@@ -304,9 +303,9 @@ var DOM = function () {
}
/**
- * Gets the integer value of a style property
- * @param {string} prop CSS property value
- * @return {integer} The property without the units
+ * Gets the integer value of a style property.
+ * @param {string} prop CSS property value.
+ * @return {Number} The property without the units.
*/
}, {
@@ -316,10 +315,10 @@ var DOM = function () {
}
/**
- * Wraps a HTML structure arrond a element
- * @param {Element} elem the element to be wrapped
- * @param {string} tag the new element tag
- * @return {Element} the new element
+ * Wraps a HTML structure around an element.
+ * @param {Element} elem the element to be wrapped.
+ * @param {string} tag the new element tag.
+ * @return {Element} the new element.
*/
}, {
@@ -333,9 +332,9 @@ var DOM = function () {
}
/**
- * Inserts and element after another element
- * @param {Element} elem the element to be inserted
- * @param {Element} target the element to be inserted after
+ * Inserts and element after another element.
+ * @param {Element} elem the element to be inserted.
+ * @param {Element} target the element to be inserted after.
*/
}, {
@@ -343,7 +342,7 @@ var DOM = function () {
value: function after(elem, target) {
var parent = target.parentNode;
- if (parent.lastChild == target) {
+ if (parent.lastChild === target) {
parent.appendChild(elem);
} else {
parent.insertBefore(elem, target.nextSibling);
@@ -684,10 +683,10 @@ var MobileDetector = function () {
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__plugins_plugins__ = __webpack_require__(12);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__plugins_plugins__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__slide__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils_dom__ = __webpack_require__(0);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_scroll_to__ = __webpack_require__(20);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_scroll_to__ = __webpack_require__(21);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -1193,17 +1192,24 @@ var WebSlides = function () {
/***/ }),
/* 5 */
+/***/ (function(module, exports) {
+
+// removed by extract-text-webpack-plugin
+
+/***/ }),
+/* 6 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__modules_webslides__ = __webpack_require__(4);
+__webpack_require__(5);
window.WebSlides = __WEBPACK_IMPORTED_MODULE_0__modules_webslides__["a" /* default */];
/***/ }),
-/* 6 */
+/* 7 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -1306,7 +1312,7 @@ var AutoSlide = function () {
/* harmony default export */ __webpack_exports__["a"] = (AutoSlide);
/***/ }),
-/* 7 */
+/* 8 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -1362,7 +1368,7 @@ var ClickNav = function () {
/* harmony default export */ __webpack_exports__["a"] = (ClickNav);
/***/ }),
-/* 8 */
+/* 9 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -1432,7 +1438,7 @@ var Grid = function () {
/* harmony default export */ __webpack_exports__["a"] = (Grid);
/***/ }),
-/* 9 */
+/* 10 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -1539,7 +1545,7 @@ var Hash = function () {
/* harmony default export */ __webpack_exports__["a"] = (Hash);
/***/ }),
-/* 10 */
+/* 11 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -1633,7 +1639,7 @@ var Keyboard = function () {
/* harmony default export */ __webpack_exports__["a"] = (Keyboard);
/***/ }),
-/* 11 */
+/* 12 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -1809,21 +1815,21 @@ var Navigation = function () {
/* harmony default export */ __webpack_exports__["a"] = (Navigation);
/***/ }),
-/* 12 */
+/* 13 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__autoslide__ = __webpack_require__(6);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__click_nav__ = __webpack_require__(7);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__grid__ = __webpack_require__(8);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__hash__ = __webpack_require__(9);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__keyboard__ = __webpack_require__(10);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__navigation__ = __webpack_require__(11);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__scroll__ = __webpack_require__(13);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__touch__ = __webpack_require__(14);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__video__ = __webpack_require__(15);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__youtube__ = __webpack_require__(16);
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__zoom__ = __webpack_require__(17);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__autoslide__ = __webpack_require__(7);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__click_nav__ = __webpack_require__(8);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__grid__ = __webpack_require__(9);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__hash__ = __webpack_require__(10);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__keyboard__ = __webpack_require__(11);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__navigation__ = __webpack_require__(12);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__scroll__ = __webpack_require__(14);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__touch__ = __webpack_require__(15);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__video__ = __webpack_require__(16);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__youtube__ = __webpack_require__(17);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__zoom__ = __webpack_require__(18);
@@ -1851,7 +1857,7 @@ var Navigation = function () {
});
/***/ }),
-/* 13 */
+/* 14 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -1991,7 +1997,7 @@ var Scroll = function () {
/* harmony default export */ __webpack_exports__["a"] = (Scroll);
/***/ }),
-/* 14 */
+/* 15 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -2122,13 +2128,13 @@ var Touch = function () {
var info = Touch.normalizeEventInfo(event);
- if (event.touches.length == 1) {
+ if (event.touches.length === 1) {
this.startX_ = info.x;
this.startY_ = info.y;
this.endX_ = info.x;
this.endY_ = info.y;
} else if (event.touches.length > 1) {
- this.startTouches = this.getTouchCoorinates(event);
+ this.startTouches = Touch.getTouchCoordinates(event);
this.endTouches = this.startTouches;
this.isGesture = true;
}
@@ -2150,7 +2156,7 @@ var Touch = function () {
var info = Touch.normalizeEventInfo(event);
if (this.isGesture) {
- this.endTouches = this.getTouchCoorinates(event);
+ this.endTouches = Touch.getTouchCoordinates(event);
} else {
this.endX_ = info.x;
this.endY_ = info.y;
@@ -2193,15 +2199,21 @@ var Touch = function () {
}
/**
- * Get X,Y coordinates from touchs pointers
+ * Get X,Y coordinates from touch pointers.
* @param {Event} event
- * @return {array}
+ * @return {Object}
*/
- }, {
- key: 'getTouchCoorinates',
- value: function getTouchCoorinates(event) {
- return [{ x: event.touches[0].clientX, y: event.touches[0].clientY }, { x: event.touches[1].clientX, y: event.touches[1].clientY }];
+ }], [{
+ key: 'getTouchCoordinates',
+ value: function getTouchCoordinates(event) {
+ return [{
+ x: event.touches[0].clientX,
+ y: event.touches[0].clientY
+ }, {
+ x: event.touches[1].clientX,
+ y: event.touches[1].clientY
+ }];
}
/**
@@ -2211,7 +2223,7 @@ var Touch = function () {
* @return {Object} Normalised touch points.
*/
- }], [{
+ }, {
key: 'normalizeEventInfo',
value: function normalizeEventInfo(event) {
var touchEvent = { pageX: 0, pageY: 0 };
@@ -2235,7 +2247,7 @@ var Touch = function () {
/* harmony default export */ __webpack_exports__["a"] = (Touch);
/***/ }),
-/* 15 */
+/* 16 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -2322,7 +2334,7 @@ var Video = function () {
/* harmony default export */ __webpack_exports__["a"] = (Video);
/***/ }),
-/* 16 */
+/* 17 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -2658,7 +2670,7 @@ var YouTube = function () {
/* harmony default export */ __webpack_exports__["a"] = (YouTube);
/***/ }),
-/* 17 */
+/* 18 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -2718,7 +2730,7 @@ var Zoom = function () {
/**
* On key down handler. Will decide if Zoom in or out
- * @param {Event} event Key down event
+ * @param {Event} event Key down event.
*/
@@ -2727,14 +2739,14 @@ var Zoom = function () {
value: function onKeyDown(event) {
if (!this.isZoomed_ && __WEBPACK_IMPORTED_MODULE_1__utils_keys__["a" /* default */].MINUS.includes(event.which)) {
this.zoomIn();
- } else if (this.isZoomed_ && (__WEBPACK_IMPORTED_MODULE_1__utils_keys__["a" /* default */].PLUS.includes(event.which) || event.which == __WEBPACK_IMPORTED_MODULE_1__utils_keys__["a" /* default */].ESCAPE)) {
+ } else if (this.isZoomed_ && (__WEBPACK_IMPORTED_MODULE_1__utils_keys__["a" /* default */].PLUS.includes(event.which) || event.which === __WEBPACK_IMPORTED_MODULE_1__utils_keys__["a" /* default */].ESCAPE)) {
this.zoomOut();
}
}
/**
* Prepare zoom structure, scales the slides and uses a grid layout
- * to show them
+ * to show them.
*/
}, {
@@ -2767,8 +2779,8 @@ var Zoom = function () {
}
/**
- * Creates a block structure around the slide
- * @param {Element} elem slide element
+ * Creates a block structure around the slide.
+ * @param {Element} elem slide element.
*/
}, {
@@ -2783,7 +2795,7 @@ var Zoom = function () {
var div = __WEBPACK_IMPORTED_MODULE_0__utils_dom__["a" /* default */].wrap(wrap, 'div');
div.className = CLASSES.DIV;
// Adding some layer for controling click events
- var divLayer = document.createElement('div');
+ var divLayer = __WEBPACK_IMPORTED_MODULE_0__utils_dom__["a" /* default */].createNode('div');
divLayer.className = 'zoom-layer';
divLayer.addEventListener('click', function (e) {
e.stopPropagation();
@@ -2792,9 +2804,8 @@ var Zoom = function () {
});
wrap.appendChild(divLayer);
// Slide number
- var slideNumber = document.createElement('p');
+ var slideNumber = __WEBPACK_IMPORTED_MODULE_0__utils_dom__["a" /* default */].createNode('p', '', '' + (elem.i + 1));
slideNumber.className = 'text-slide-number';
- slideNumber.textContent = '' + (elem.i + 1);
div.appendChild(slideNumber);
this.setSizes_(div, wrap, elem);
@@ -2817,12 +2828,12 @@ var Zoom = function () {
// Sets element size: window size - relative margins
var scale = divCSS.width.includes('%') ? 100 / __WEBPACK_IMPORTED_MODULE_0__utils_dom__["a" /* default */].parseSize(divCSS.width) : window.innerWidth / __WEBPACK_IMPORTED_MODULE_0__utils_dom__["a" /* default */].parseSize(divCSS.width);
- if (scale == 1) {
+ if (scale === 1) {
// If the scale is 100% means it is mobile
var wsW = this.ws_.el.clientWidth;
elem.el.style.width = (wsW - marginW) * 2 + 'px';
elem.el.style.height = (wsW - marginH) * 1.5 + 'px';
- elem.el.style.minHeight = scale == 1 ? 'auto' : '';
+ elem.el.style.minHeight = scale === 1 ? 'auto' : '';
// Because of flexbox, wrap height is required
wrap.style.height = (wsW - marginH) * 1.5 / 2 + 'px';
} else {
@@ -2834,7 +2845,7 @@ var Zoom = function () {
}
/**
- * Toggles zoom
+ * Toggles zoom.
*/
}, {
@@ -2848,7 +2859,7 @@ var Zoom = function () {
}
/**
- * Zoom In the slider, scales the slides and uses a grid layout to show them
+ * Zoom In the slider, scales the slides and uses a grid layout to show them.
*/
}, {
@@ -2869,7 +2880,7 @@ var Zoom = function () {
}
/**
- * Zoom Out the slider, remove scale from the slides
+ * Zoom Out the slider, remove scale from the slides.
*/
}, {
@@ -2890,13 +2901,12 @@ var Zoom = function () {
}
/**
- * When windows resize it is necessary to recalculate layers sizes
- * @param {Event} ev
+ * When windows resize it is necessary to recalculate layers sizes.
*/
}, {
key: 'onWindowResize',
- value: function onWindowResize(ev) {
+ value: function onWindowResize() {
var _this5 = this;
if (this.isZoomed_) this.zoomOut();
@@ -2915,7 +2925,7 @@ var Zoom = function () {
/* harmony default export */ __webpack_exports__["a"] = (Zoom);
/***/ }),
-/* 18 */
+/* 19 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -2963,7 +2973,7 @@ var WSCustomEvent = canIuseNativeCustom() ? NativeCustomEvent : IECustomEvent;
/* harmony default export */ __webpack_exports__["a"] = (WSCustomEvent);
/***/ }),
-/* 19 */
+/* 20 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@@ -2988,11 +2998,11 @@ function linear(p) {
/* harmony default export */ __webpack_exports__["a"] = ({ swing: swing, linear: linear });
/***/ }),
-/* 20 */
+/* 21 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__easing__ = __webpack_require__(19);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__easing__ = __webpack_require__(20);
/* harmony export (immutable) */ __webpack_exports__["a"] = scrollTo;
diff --git a/static/js/webslides.min.js b/static/js/webslides.min.js
index a808806..08ebec5 100644
--- a/static/js/webslides.min.js
+++ b/static/js/webslides.min.js
@@ -1,9 +1,9 @@
/*!
* Name: WebSlides
* Version: 1.3.1
- * Date: 2017-04-29
+ * Date: 2017-05-01
* Description: Making HTML presentations easy
* URL: https://github.com/webslides/webslides#readme
* Credits: @jlantunez, @LuisSacristan, @Belelros
*/
-!function(e){function t(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var i={};t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/static/js/",t(t.s=5)}([function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=i(18),o=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=document.createElement(e);return n.id=t,i&&(n.textContent=i),n}},{key:"once",value:function(e,t,i){var n=function n(s){s.target===e&&(e.removeEventListener(t,n),i(s))};e.addEventListener(t,n,!1)}},{key:"getTransitionEvent",value:function(e){if(a&&!e)return a;a="";for(var t=e||document.createElement("ws"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},n=Object.keys(i),s=0,o=n.length;s2&&void 0!==arguments[2]?arguments[2]:{},n=new s.a(t,{detail:i});e.dispatchEvent(n)}},{key:"toArray",value:function(e){return[].slice.call(e)}},{key:"isFocusableElement",value:function(){var e=!1;if(document.activeElement){var t="inherit"!==document.activeElement.contentEditable&&void 0!==document.activeElement.contentEditable;e=["INPUT","SELECT","OPTION","TEXTAREA"].indexOf(document.activeElement.tagName)>-1||t}return e}},{key:"parseSize",value:function(e){return Number(e.replace(/[^\d\.]/g,""))}},{key:"wrap",value:function(e,t){var i=document.createElement(t);return e.parentElement.insertBefore(i,e),i.appendChild(e),i}},{key:"after",value:function(e,t){var i=t.parentNode;i.lastChild==t?i.appendChild(e):i.insertBefore(e,t.nextSibling)}}]),e}();t.a=l},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=i(0);i.d(t,"a",function(){return l}),i.d(t,"b",function(){return r});var o=function(){function e(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=t.autoslide,s=void 0!==i&&i,o=t.changeOnClick,a=void 0!==o&&o,r=t.loop,l=void 0===r||r,c=t.minWheelDelta,h=void 0===c?40:c,d=t.navigateOnScroll,f=void 0===d||d,v=t.scrollWait,y=void 0===v?450:v,p=t.slideOffset,m=void 0===p?50:p;if(n(this,e),this.el=document.getElementById("webslides"),!this.el)throw new Error("Couldn't find the webslides container!");this.isMoving=!1,this.slides=null,this.currentSlideI_=-1,this.currentSlide_=null,this.maxSlide_=0,this.isVertical=this.el.classList.contains(u.VERTICAL),this.plugins={},this.options={autoslide:s,changeOnClick:a,loop:l,minWheelDelta:h,navigateOnScroll:f,scrollWait:y,slideOffset:m},this.initialised=!1,this.removeChildren_(),this.grabSlides_(),this.createPlugins_(),this.initSlides_(),this.onInit_()}return l(e,[{key:"removeChildren_",value:function(){for(var e=this.el.childNodes,t=e.length;t--;){var i=e[t];o.a.isCandidate(i)||this.el.removeChild(i)}}},{key:"createPlugins_",value:function(){var e=this;Object.keys(c).forEach(function(t){var i=c[t];e.plugins[t]=new i(e)})}},{key:"onInit_",value:function(){this.initialised=!0,a.a.fireEvent(this.el,"ws:init"),document.documentElement.classList.add(u.READY)}},{key:"grabSlides_",value:function(){this.slides=a.a.toArray(this.el.childNodes).map(function(e,t){return new o.a(e,t)}),this.maxSlide_=this.slides.length}},{key:"goToSlide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isValidIndexSlide_(e)&&!this.isMoving&&this.currentSlideI_!==e){this.isMoving=!0;var i=!1;null!==t?i=t:this.currentSlideI_>=0&&(i=e>this.currentSlideI_);var n=this.slides[e];null===this.currentSlide_||!this.isVertical||this.plugins.touch&&this.plugins.touch.isEnabled?this.transitionToSlide_(i,n,this.onSlideChange_):this.scrollTransitionToSlide_(i,n,this.onSlideChange_)}}},{key:"scrollTransitionToSlide_",value:function(e,t,n){var s=this;this.el.style.overflow="hidden",e?t.show():(t.moveBeforeFirst(),t.show(),i.i(r.a)(this.currentSlide_.el.offsetTop,0)),i.i(r.a)(t.el.offsetTop,500,function(){s.currentSlide_.hide(),e&&s.currentSlide_.moveAfterLast(),s.el.style.overflow="auto",setTimeout(function(){n.call(s,t)},150)})}},{key:"transitionToSlide_",value:function(e,t,n){var s=this;i.i(r.a)(0,0);var o="slideInRight";e||(t.moveBeforeFirst(),o="slideInLeft"),this.currentSlide_&&(e&&this.currentSlide_.moveAfterLast(),this.currentSlide_.hide()),t.show(),this.initialised&&this.plugins.touch&&this.plugins.touch.isEnabled?(a.a.once(t.el,a.a.getAnimationEvent(),function(){t.el.classList.remove(o),n.call(s,t)}),t.el.classList.add(o)):n.call(this,t)}},{key:"onSlideChange_",value:function(e){this.currentSlide_&&this.currentSlide_.disable(),this.currentSlide_=e,this.currentSlideI_=e.i,this.currentSlide_.enable(),this.isMoving=!1,a.a.fireEvent(this.el,"ws:slide-change",{slides:this.maxSlide_,currentSlide0:this.currentSlideI_,currentSlide:this.currentSlideI_+1})}},{key:"goNext",value:function(){var e=this.currentSlideI_+1;if(e>=this.maxSlide_){if(!this.options.loop)return;e=0}this.goToSlide(e,!0)}},{key:"goPrev",value:function(){var e=this.currentSlideI_-1;if(e<0){if(!this.options.loop)return;e=this.maxSlide_-1}this.goToSlide(e,!1)}},{key:"isValidIndexSlide_",value:function(e){return e>=0&&e=this.maxSlide_)&&(e=0),0!==e)for(var t=0;t0&&(this.interval_=setInterval(this.ws_.goNext.bind(this.ws_),e))}},{key:"stop",value:function(){this.interval_&&(clearInterval(this.interval_),this.interval_=null)}}]),e}();t.a=a},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var i=0;iMath.abs(t);if(this.isGoingUp_=t<0,this.isGoingLeft_=i<0,s){if(n)return;e.preventDefault()}(Math.abs(t)>=this.ws_.options.minWheelDelta||Math.abs(i)>=this.ws_.options.minWheelDelta)&&(s&&this.isGoingLeft_||!s&&this.isGoingUp_?this.ws_.goPrev():this.ws_.goNext(),e.preventDefault())}}}]),e}();t.a=a},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=i(3),o=function(){function e(e,t){for(var i=0;i1&&(this.startTouches=this.getTouchCoorinates(t),this.endTouches=this.startTouches,this.isGesture=!0)}}},{key:"onMove_",value:function(t){if(!this.ws_.isDisabled()){var i=e.normalizeEventInfo(t);this.isGesture?this.endTouches=this.getTouchCoorinates(t):(this.endX_=i.x,this.endY_=i.y)}}},{key:"onStop_",value:function(){if(!this.ws_.isDisabled())if(this.isGesture){var e=Math.sqrt(Math.pow(this.startTouches[0].x-this.startTouches[1].x,2)+Math.pow(this.startTouches[0].y-this.startTouches[1].y,2)),t=Math.sqrt(Math.pow(this.endTouches[0].x-this.endTouches[1].x,2)+Math.pow(this.endTouches[0].y-this.endTouches[1].y,2));e>t&&this.ws_.toggleZoom(),this.isGesture=!1}else{var i=this.startX_-this.endX_,n=this.startY_-this.endY_;Math.abs(i)>Math.abs(n)&&(i<-this.ws_.options.slideOffset?this.ws_.goPrev():i>this.ws_.options.slideOffset&&this.ws_.goNext())}}},{key:"getTouchCoorinates",value:function(e){return[{x:e.touches[0].clientX,y:e.touches[0].clientY},{x:e.touches[1].clientX,y:e.touches[1].clientY}]}}],[{key:"normalizeEventInfo",value:function(e){var t={pageX:0,pageY:0};return void 0!==e.changedTouches?t=e.changedTouches[0]:void 0!==e.originalEvent&&void 0!==e.originalEvent.changedTouches&&(t=e.originalEvent.changedTouches[0]),{x:e.offsetX||e.layerX||t.pageX,y:e.offsetY||e.layerY||t.pageY}}}]),e}();t.a=r},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=i(0),o=i(1),a=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:500,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=e-o.scrollTop,a=o.scrollTop;if(!t)return o.scrollTop=e,void i();!function r(l){l+=16;var u=Math.min(1,l/t),c=s.a.swing(u,l*u,e,n,t);o.scrollTop=Math.floor(a+c*n),l1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=document.createElement(e);return n.id=t,i&&(n.textContent=i),n}},{key:"once",value:function(e,t,i){var n=function n(s){s.target===e&&(e.removeEventListener(t,n),i(s))};e.addEventListener(t,n,!1)}},{key:"getTransitionEvent",value:function(e){if(a&&!e)return a;a="";for(var t=e||document.createElement("ws"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},n=Object.keys(i),s=0,o=n.length;s2&&void 0!==arguments[2]?arguments[2]:{},n=new s.a(t,{detail:i});e.dispatchEvent(n)}},{key:"toArray",value:function(e){return[].slice.call(e)}},{key:"isFocusableElement",value:function(){var e=!1;if(document.activeElement){var t="inherit"!==document.activeElement.contentEditable&&void 0!==document.activeElement.contentEditable;e=["INPUT","SELECT","OPTION","TEXTAREA"].indexOf(document.activeElement.tagName)>-1||t}return e}},{key:"parseSize",value:function(e){return Number(e.replace(/[^\d\.]/g,""))}},{key:"wrap",value:function(e,t){var i=document.createElement(t);return e.parentElement.insertBefore(i,e),i.appendChild(e),i}},{key:"after",value:function(e,t){var i=t.parentNode;i.lastChild===t?i.appendChild(e):i.insertBefore(e,t.nextSibling)}}]),e}();t.a=l},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=i(0);i.d(t,"a",function(){return l}),i.d(t,"b",function(){return r});var o=function(){function e(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=t.autoslide,s=void 0!==i&&i,o=t.changeOnClick,a=void 0!==o&&o,r=t.loop,l=void 0===r||r,c=t.minWheelDelta,h=void 0===c?40:c,d=t.navigateOnScroll,f=void 0===d||d,v=t.scrollWait,y=void 0===v?450:v,p=t.slideOffset,m=void 0===p?50:p;if(n(this,e),this.el=document.getElementById("webslides"),!this.el)throw new Error("Couldn't find the webslides container!");this.isMoving=!1,this.slides=null,this.currentSlideI_=-1,this.currentSlide_=null,this.maxSlide_=0,this.isVertical=this.el.classList.contains(u.VERTICAL),this.plugins={},this.options={autoslide:s,changeOnClick:a,loop:l,minWheelDelta:h,navigateOnScroll:f,scrollWait:y,slideOffset:m},this.initialised=!1,this.removeChildren_(),this.grabSlides_(),this.createPlugins_(),this.initSlides_(),this.onInit_()}return l(e,[{key:"removeChildren_",value:function(){for(var e=this.el.childNodes,t=e.length;t--;){var i=e[t];o.a.isCandidate(i)||this.el.removeChild(i)}}},{key:"createPlugins_",value:function(){var e=this;Object.keys(c).forEach(function(t){var i=c[t];e.plugins[t]=new i(e)})}},{key:"onInit_",value:function(){this.initialised=!0,a.a.fireEvent(this.el,"ws:init"),document.documentElement.classList.add(u.READY)}},{key:"grabSlides_",value:function(){this.slides=a.a.toArray(this.el.childNodes).map(function(e,t){return new o.a(e,t)}),this.maxSlide_=this.slides.length}},{key:"goToSlide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isValidIndexSlide_(e)&&!this.isMoving&&this.currentSlideI_!==e){this.isMoving=!0;var i=!1;null!==t?i=t:this.currentSlideI_>=0&&(i=e>this.currentSlideI_);var n=this.slides[e];null===this.currentSlide_||!this.isVertical||this.plugins.touch&&this.plugins.touch.isEnabled?this.transitionToSlide_(i,n,this.onSlideChange_):this.scrollTransitionToSlide_(i,n,this.onSlideChange_)}}},{key:"scrollTransitionToSlide_",value:function(e,t,n){var s=this;this.el.style.overflow="hidden",e?t.show():(t.moveBeforeFirst(),t.show(),i.i(r.a)(this.currentSlide_.el.offsetTop,0)),i.i(r.a)(t.el.offsetTop,500,function(){s.currentSlide_.hide(),e&&s.currentSlide_.moveAfterLast(),s.el.style.overflow="auto",setTimeout(function(){n.call(s,t)},150)})}},{key:"transitionToSlide_",value:function(e,t,n){var s=this;i.i(r.a)(0,0);var o="slideInRight";e||(t.moveBeforeFirst(),o="slideInLeft"),this.currentSlide_&&(e&&this.currentSlide_.moveAfterLast(),this.currentSlide_.hide()),t.show(),this.initialised&&this.plugins.touch&&this.plugins.touch.isEnabled?(a.a.once(t.el,a.a.getAnimationEvent(),function(){t.el.classList.remove(o),n.call(s,t)}),t.el.classList.add(o)):n.call(this,t)}},{key:"onSlideChange_",value:function(e){this.currentSlide_&&this.currentSlide_.disable(),this.currentSlide_=e,this.currentSlideI_=e.i,this.currentSlide_.enable(),this.isMoving=!1,a.a.fireEvent(this.el,"ws:slide-change",{slides:this.maxSlide_,currentSlide0:this.currentSlideI_,currentSlide:this.currentSlideI_+1})}},{key:"goNext",value:function(){var e=this.currentSlideI_+1;if(e>=this.maxSlide_){if(!this.options.loop)return;e=0}this.goToSlide(e,!0)}},{key:"goPrev",value:function(){var e=this.currentSlideI_-1;if(e<0){if(!this.options.loop)return;e=this.maxSlide_-1}this.goToSlide(e,!1)}},{key:"isValidIndexSlide_",value:function(e){return e>=0&&e=this.maxSlide_)&&(e=0),0!==e)for(var t=0;t0&&(this.interval_=setInterval(this.ws_.goNext.bind(this.ws_),e))}},{key:"stop",value:function(){this.interval_&&(clearInterval(this.interval_),this.interval_=null)}}]),e}();t.a=a},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var i=0;iMath.abs(t);if(this.isGoingUp_=t<0,this.isGoingLeft_=i<0,s){if(n)return;e.preventDefault()}(Math.abs(t)>=this.ws_.options.minWheelDelta||Math.abs(i)>=this.ws_.options.minWheelDelta)&&(s&&this.isGoingLeft_||!s&&this.isGoingUp_?this.ws_.goPrev():this.ws_.goNext(),e.preventDefault())}}}]),e}();t.a=a},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=i(3),o=function(){function e(e,t){for(var i=0;i1&&(this.startTouches=e.getTouchCoordinates(t),this.endTouches=this.startTouches,this.isGesture=!0)}}},{key:"onMove_",value:function(t){if(!this.ws_.isDisabled()){var i=e.normalizeEventInfo(t);this.isGesture?this.endTouches=e.getTouchCoordinates(t):(this.endX_=i.x,this.endY_=i.y)}}},{key:"onStop_",value:function(){if(!this.ws_.isDisabled())if(this.isGesture){var e=Math.sqrt(Math.pow(this.startTouches[0].x-this.startTouches[1].x,2)+Math.pow(this.startTouches[0].y-this.startTouches[1].y,2)),t=Math.sqrt(Math.pow(this.endTouches[0].x-this.endTouches[1].x,2)+Math.pow(this.endTouches[0].y-this.endTouches[1].y,2));e>t&&this.ws_.toggleZoom(),this.isGesture=!1}else{var i=this.startX_-this.endX_,n=this.startY_-this.endY_;Math.abs(i)>Math.abs(n)&&(i<-this.ws_.options.slideOffset?this.ws_.goPrev():i>this.ws_.options.slideOffset&&this.ws_.goNext())}}}],[{key:"getTouchCoordinates",value:function(e){return[{x:e.touches[0].clientX,y:e.touches[0].clientY},{x:e.touches[1].clientX,y:e.touches[1].clientY}]}},{key:"normalizeEventInfo",value:function(e){var t={pageX:0,pageY:0};return void 0!==e.changedTouches?t=e.changedTouches[0]:void 0!==e.originalEvent&&void 0!==e.originalEvent.changedTouches&&(t=e.originalEvent.changedTouches[0]),{x:e.offsetX||e.layerX||t.pageX,y:e.offsetY||e.layerY||t.pageY}}}]),e}();t.a=r},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=i(0),o=i(1),a=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:500,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=e-o.scrollTop,a=o.scrollTop;if(!t)return o.scrollTop=e,void i();!function r(l){l+=16;var u=Math.min(1,l/t),c=s.a.swing(u,l*u,e,n,t);o.scrollTop=Math.floor(a+c*n),l