advanced-accordion.js
2 years ago
advanced-accordion.min.js
2 years ago
advanced-data-table.js
2 years ago
advanced-data-table.min.js
2 years ago
advanced-tabs.js
2 years ago
advanced-tabs.min.js
2 years ago
beehive-elements.js
3 years ago
beehive-elements.min.js
4 years ago
betterdocs-category-grid.js
3 years ago
betterdocs-category-grid.min.js
4 years ago
business-reviews.js
3 years ago
business-reviews.min.js
3 years ago
content-ticker.js
3 years ago
content-ticker.min.js
3 years ago
count-down.js
3 years ago
count-down.min.js
3 years ago
data-table.js
3 years ago
data-table.min.js
3 years ago
event-calendar.js
2 years ago
event-calendar.min.js
2 years ago
facebook-feed.js
2 years ago
facebook-feed.min.js
2 years ago
fancy-text.js
3 years ago
fancy-text.min.js
3 years ago
filterable-gallery.js
2 years ago
filterable-gallery.min.js
2 years ago
general.js
2 years ago
general.min.js
2 years ago
image-accordion.js
2 years ago
image-accordion.min.js
2 years ago
interactive-circle.js
2 years ago
interactive-circle.min.js
2 years ago
load-more.js
2 years ago
load-more.min.js
2 years ago
login-register.js
2 years ago
login-register.min.js
2 years ago
nft-gallery.js
3 years ago
nft-gallery.min.js
3 years ago
post-grid.js
3 years ago
post-grid.min.js
3 years ago
price-table.js
3 years ago
price-table.min.js
3 years ago
product-grid.js
3 years ago
product-grid.min.js
3 years ago
progress-bar.js
3 years ago
progress-bar.min.js
3 years ago
quick-view.js
2 years ago
quick-view.min.js
3 years ago
reading-progress.js
3 years ago
reading-progress.min.js
3 years ago
scroll-to-top.js
3 years ago
scroll-to-top.min.js
3 years ago
simple-menu.js
2 years ago
simple-menu.min.js
2 years ago
sticky-video.js
2 years ago
sticky-video.min.js
2 years ago
svg-draw.js
2 years ago
svg-draw.min.js
2 years ago
table-of-content.js
3 years ago
table-of-content.min.js
3 years ago
twitter-feed.js
2 years ago
twitter-feed.min.js
2 years ago
typeform.js
3 years ago
typeform.min.js
3 years ago
woo-cart.js
2 years ago
woo-cart.min.js
2 years ago
woo-checkout.js
2 years ago
woo-checkout.min.js
2 years ago
woo-product-carousel.js
3 years ago
woo-product-carousel.min.js
3 years ago
woo-product-gallery.js
3 years ago
woo-product-gallery.min.js
3 years ago
woo-product-list.js
2 years ago
woo-product-list.min.js
2 years ago
wrapper-link.js
3 years ago
wrapper-link.min.js
2 years ago
count-down.js
100 lines
| 1 | /******/ (function(modules) { // webpackBootstrap |
| 2 | /******/ // The module cache |
| 3 | /******/ var installedModules = {}; |
| 4 | /******/ |
| 5 | /******/ // The require function |
| 6 | /******/ function __webpack_require__(moduleId) { |
| 7 | /******/ |
| 8 | /******/ // Check if module is in cache |
| 9 | /******/ if(installedModules[moduleId]) { |
| 10 | /******/ return installedModules[moduleId].exports; |
| 11 | /******/ } |
| 12 | /******/ // Create a new module (and put it into the cache) |
| 13 | /******/ var module = installedModules[moduleId] = { |
| 14 | /******/ i: moduleId, |
| 15 | /******/ l: false, |
| 16 | /******/ exports: {} |
| 17 | /******/ }; |
| 18 | /******/ |
| 19 | /******/ // Execute the module function |
| 20 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); |
| 21 | /******/ |
| 22 | /******/ // Flag the module as loaded |
| 23 | /******/ module.l = true; |
| 24 | /******/ |
| 25 | /******/ // Return the exports of the module |
| 26 | /******/ return module.exports; |
| 27 | /******/ } |
| 28 | /******/ |
| 29 | /******/ |
| 30 | /******/ // expose the modules object (__webpack_modules__) |
| 31 | /******/ __webpack_require__.m = modules; |
| 32 | /******/ |
| 33 | /******/ // expose the module cache |
| 34 | /******/ __webpack_require__.c = installedModules; |
| 35 | /******/ |
| 36 | /******/ // define getter function for harmony exports |
| 37 | /******/ __webpack_require__.d = function(exports, name, getter) { |
| 38 | /******/ if(!__webpack_require__.o(exports, name)) { |
| 39 | /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); |
| 40 | /******/ } |
| 41 | /******/ }; |
| 42 | /******/ |
| 43 | /******/ // define __esModule on exports |
| 44 | /******/ __webpack_require__.r = function(exports) { |
| 45 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
| 46 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
| 47 | /******/ } |
| 48 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); |
| 49 | /******/ }; |
| 50 | /******/ |
| 51 | /******/ // create a fake namespace object |
| 52 | /******/ // mode & 1: value is a module id, require it |
| 53 | /******/ // mode & 2: merge all properties of value into the ns |
| 54 | /******/ // mode & 4: return value when already ns object |
| 55 | /******/ // mode & 8|1: behave like require |
| 56 | /******/ __webpack_require__.t = function(value, mode) { |
| 57 | /******/ if(mode & 1) value = __webpack_require__(value); |
| 58 | /******/ if(mode & 8) return value; |
| 59 | /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; |
| 60 | /******/ var ns = Object.create(null); |
| 61 | /******/ __webpack_require__.r(ns); |
| 62 | /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); |
| 63 | /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); |
| 64 | /******/ return ns; |
| 65 | /******/ }; |
| 66 | /******/ |
| 67 | /******/ // getDefaultExport function for compatibility with non-harmony modules |
| 68 | /******/ __webpack_require__.n = function(module) { |
| 69 | /******/ var getter = module && module.__esModule ? |
| 70 | /******/ function getDefault() { return module['default']; } : |
| 71 | /******/ function getModuleExports() { return module; }; |
| 72 | /******/ __webpack_require__.d(getter, 'a', getter); |
| 73 | /******/ return getter; |
| 74 | /******/ }; |
| 75 | /******/ |
| 76 | /******/ // Object.prototype.hasOwnProperty.call |
| 77 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; |
| 78 | /******/ |
| 79 | /******/ // __webpack_public_path__ |
| 80 | /******/ __webpack_require__.p = ""; |
| 81 | /******/ |
| 82 | /******/ |
| 83 | /******/ // Load entry module and return exports |
| 84 | /******/ return __webpack_require__(__webpack_require__.s = "./src/js/view/count-down.js"); |
| 85 | /******/ }) |
| 86 | /************************************************************************/ |
| 87 | /******/ ({ |
| 88 | |
| 89 | /***/ "./src/js/view/count-down.js": |
| 90 | /*!***********************************!*\ |
| 91 | !*** ./src/js/view/count-down.js ***! |
| 92 | \***********************************/ |
| 93 | /*! no static exports found */ |
| 94 | /***/ (function(module, exports) { |
| 95 | |
| 96 | eval("var CountDown = function CountDown($scope, $) {\n var $coundDown = $scope.find(\".eael-countdown-wrapper\").eq(0),\n $countdown_id = $coundDown.data(\"countdown-id\") !== undefined ? $coundDown.data(\"countdown-id\") : \"\",\n $expire_type = $coundDown.data(\"expire-type\") !== undefined ? $coundDown.data(\"expire-type\") : \"\",\n $expiry_text = $coundDown.data(\"expiry-text\") !== undefined ? $coundDown.data(\"expiry-text\") : \"\",\n $expiry_title = $coundDown.data(\"expiry-title\") !== undefined ? $coundDown.data(\"expiry-title\") : \"\",\n $redirect_url = $coundDown.data(\"redirect-url\") !== undefined ? $coundDown.data(\"redirect-url\") : \"\",\n $template = $coundDown.data(\"template\") !== undefined ? $coundDown.data(\"template\") : \"\",\n $countdown_type = $coundDown.data(\"countdown-type\") !== undefined ? $coundDown.data(\"countdown-type\") : \"\",\n $evergreen_time = $coundDown.data(\"evergreen-time\") !== undefined ? $coundDown.data(\"evergreen-time\") : \"\",\n $recurring = $coundDown.data(\"evergreen-recurring\") !== undefined ? $coundDown.data(\"evergreen-recurring\") : false,\n $recurring_stop_time = $coundDown.data(\"evergreen-recurring-stop\") !== undefined ? $coundDown.data(\"evergreen-recurring-stop\") : \"\";\n jQuery(document).ready(function ($) {\n \"use strict\";\n\n var countDown = $(\"#eael-countdown-\" + $countdown_id),\n eael_countdown_options = {\n end: function end() {\n if ($expire_type == \"text\") {\n countDown.html('<div class=\"eael-countdown-finish-message\"><h4 class=\"expiry-title\">' + $expiry_title + \"</h4>\" + '<div class=\"eael-countdown-finish-text\">' + $expiry_text + \"</div></div>\");\n } else if ($expire_type === \"url\") {\n if (isEditMode) {\n countDown.html(\"Your Page will be redirected to given URL (only on Frontend).\");\n } else {\n window.location.href = $redirect_url;\n }\n } else if ($expire_type === \"template\") {\n countDown.html($coundDown.find(\".eael-countdown-expiry-template\").html());\n } else {\n //do nothing!\n }\n }\n };\n if ($countdown_type === 'evergreen') {\n var $evergreen_interval = \"eael_countdown_evergreen_interval_\".concat($countdown_id),\n $evergreen_time_key = \"eael_countdown_evergreen_time_\".concat($countdown_id),\n $interval = localStorage.getItem($evergreen_interval),\n $date = localStorage.getItem($evergreen_time_key),\n HOUR_IN_MILISECONDS = 60 * 60 * 1000;\n if ($date === null || $interval === null || $interval != $evergreen_time) {\n $date = Date.now() + parseInt($evergreen_time) * 1000;\n localStorage.setItem($evergreen_interval, $evergreen_time.toString());\n localStorage.setItem($evergreen_time_key, $date.toString());\n }\n if ($recurring !== false) {\n $recurring_stop_time = new Date($recurring_stop_time);\n var $recurring_after = parseFloat($recurring) * HOUR_IN_MILISECONDS;\n if (parseInt($date) + $recurring_after < Date.now()) {\n $date = Date.now() + parseInt($evergreen_time) * 1000;\n localStorage.setItem($evergreen_time_key, $date.toString());\n }\n if ($recurring_stop_time.getTime() < $date) {\n $date = $recurring_stop_time.getTime();\n }\n }\n eael_countdown_options.date = new Date(parseInt($date));\n }\n countDown.eacountdown(eael_countdown_options);\n });\n};\njQuery(window).on(\"elementor/frontend/init\", function () {\n elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-countdown.default\", CountDown);\n});\n\n//# sourceURL=webpack:///./src/js/view/count-down.js?"); |
| 97 | |
| 98 | /***/ }) |
| 99 | |
| 100 | /******/ }); |