163 lines
No EOL
12 KiB
JavaScript
163 lines
No EOL
12 KiB
JavaScript
/******/ (function(modules) { // webpackBootstrap
|
|
/******/ // The module cache
|
|
/******/ var installedModules = {};
|
|
/******/
|
|
/******/ // The require function
|
|
/******/ function __webpack_require__(moduleId) {
|
|
/******/
|
|
/******/ // Check if module is in cache
|
|
/******/ if(installedModules[moduleId]) {
|
|
/******/ return installedModules[moduleId].exports;
|
|
/******/ }
|
|
/******/ // Create a new module (and put it into the cache)
|
|
/******/ var module = installedModules[moduleId] = {
|
|
/******/ i: moduleId,
|
|
/******/ l: false,
|
|
/******/ exports: {}
|
|
/******/ };
|
|
/******/
|
|
/******/ // Execute the module function
|
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
/******/
|
|
/******/ // Flag the module as loaded
|
|
/******/ module.l = true;
|
|
/******/
|
|
/******/ // Return the exports of the module
|
|
/******/ return module.exports;
|
|
/******/ }
|
|
/******/
|
|
/******/
|
|
/******/ // expose the modules object (__webpack_modules__)
|
|
/******/ __webpack_require__.m = modules;
|
|
/******/
|
|
/******/ // expose the module cache
|
|
/******/ __webpack_require__.c = installedModules;
|
|
/******/
|
|
/******/ // define getter function for harmony exports
|
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
/******/ Object.defineProperty(exports, name, {
|
|
/******/ configurable: false,
|
|
/******/ enumerable: true,
|
|
/******/ get: getter
|
|
/******/ });
|
|
/******/ }
|
|
/******/ };
|
|
/******/
|
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
/******/ __webpack_require__.n = function(module) {
|
|
/******/ var getter = module && module.__esModule ?
|
|
/******/ function getDefault() { return module['default']; } :
|
|
/******/ function getModuleExports() { return module; };
|
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
/******/ return getter;
|
|
/******/ };
|
|
/******/
|
|
/******/ // Object.prototype.hasOwnProperty.call
|
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
/******/
|
|
/******/ // __webpack_public_path__
|
|
/******/ __webpack_require__.p = "";
|
|
/******/
|
|
/******/ // Load entry module and return exports
|
|
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
|
/******/ })
|
|
/************************************************************************/
|
|
/******/ ([
|
|
/* 0 */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_css__ = __webpack_require__(1);
|
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_css__);
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
setInterval(function() {
|
|
var timeleft = parseInt($("#timeleft").html());
|
|
if (timeleft > 0) {
|
|
timeleft--;
|
|
} else {
|
|
timeleft = 0;
|
|
}
|
|
|
|
$("#timeleft").html(timeleft);
|
|
|
|
var minutes = Math.floor(timeleft/60);
|
|
var seconds = timeleft % 60;
|
|
|
|
$("#timeleft_view").html(minutes+":"+seconds.toString().padStart(2, "0"));
|
|
}, 1000);
|
|
|
|
$("#reloadCaptcha").on("click",function(eventObject) {
|
|
image = eventObject.currentTarget;
|
|
|
|
setSrcQuery(document.getElementById('image'), "reload=" + (new Date()).getTime());
|
|
});
|
|
|
|
$("#myInput").on("keyup", function(eventObject) {
|
|
|
|
var input, filter, ul, li, a, i;
|
|
|
|
input = eventObject.currentTarget;
|
|
filter = input.value.toUpperCase();
|
|
ul = document.getElementById("myUL");
|
|
li = ul.getElementsByTagName('a');
|
|
|
|
// Loop through all list items, and hide those who don't match the search query
|
|
for (i = 0; i < li.length; i++) {
|
|
a = li[i]; //li[i].getElementsByTagName("a")[0];
|
|
if (a.innerHTML.toUpperCase().indexOf(filter) > -1) {
|
|
li[i].style.display = "";
|
|
li[i].classList.add("oef-selected-by-search");
|
|
} else {
|
|
li[i].style.display = "none";
|
|
li[i].classList.remove("oef-selected-by-search");
|
|
}
|
|
}
|
|
|
|
});
|
|
|
|
function deleteHandler(eventObject) {
|
|
var url = this.dataset.url;
|
|
var modalEl = $('#karmen-modal-remove');
|
|
|
|
var el = $(this);
|
|
|
|
modalEl.modal({backdrop: 'static'}).one('click', '#karmen-modal-btn-confirm', function() {
|
|
|
|
$.ajax({
|
|
url: url,
|
|
type: 'DELETE',
|
|
success: function(result) {
|
|
modalEl.modal('hide');
|
|
window.location.replace(result.redirect_url);
|
|
}
|
|
});
|
|
|
|
});
|
|
|
|
return false;
|
|
};
|
|
|
|
$(".karmen-ajax-delete").on("click", deleteHandler);
|
|
|
|
$("#reset_responses").on("click", function(eventObject) {
|
|
$('.form-check-input').removeAttr('checked');
|
|
});
|
|
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 1 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// removed by extract-text-webpack-plugin
|
|
|
|
/***/ })
|
|
/******/ ]);
|
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vd2VicGFjay9ib290c3RyYXAgMjM0OWI1NDU2MjQ5MGEzYzg5ZGEiLCJ3ZWJwYWNrOi8vLy4vc3JjL2luZGV4LmpzIiwid2VicGFjazovLy8uL3NyYy9zdHlsZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtRQUFBO1FBQ0E7O1FBRUE7UUFDQTs7UUFFQTtRQUNBO1FBQ0E7UUFDQTtRQUNBO1FBQ0E7UUFDQTtRQUNBO1FBQ0E7UUFDQTs7UUFFQTtRQUNBOztRQUVBO1FBQ0E7O1FBRUE7UUFDQTtRQUNBOzs7UUFHQTtRQUNBOztRQUVBO1FBQ0E7O1FBRUE7UUFDQTtRQUNBO1FBQ0E7UUFDQTtRQUNBO1FBQ0E7UUFDQSxLQUFLO1FBQ0w7UUFDQTs7UUFF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