208 lines
909 KiB
JavaScript
208 lines
909 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, { enumerable: true, get: getter });
|
||
|
/******/ }
|
||
|
/******/ };
|
||
|
/******/
|
||
|
/******/ // define __esModule on exports
|
||
|
/******/ __webpack_require__.r = function(exports) {
|
||
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||
|
/******/ }
|
||
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||
|
/******/ };
|
||
|
/******/
|
||
|
/******/ // create a fake namespace object
|
||
|
/******/ // mode & 1: value is a module id, require it
|
||
|
/******/ // mode & 2: merge all properties of value into the ns
|
||
|
/******/ // mode & 4: return value when already ns object
|
||
|
/******/ // mode & 8|1: behave like require
|
||
|
/******/ __webpack_require__.t = function(value, mode) {
|
||
|
/******/ if(mode & 1) value = __webpack_require__(value);
|
||
|
/******/ if(mode & 8) return value;
|
||
|
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||
|
/******/ var ns = Object.create(null);
|
||
|
/******/ __webpack_require__.r(ns);
|
||
|
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||
|
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||
|
/******/ return ns;
|
||
|
/******/ };
|
||
|
/******/
|
||
|
/******/ // 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);
|
||
|
/******/ })
|
||
|
/************************************************************************/
|
||
|
/******/ ({
|
||
|
|
||
|
/***/ "./node_modules/jquery/dist/jquery.js":
|
||
|
/*!********************************************!*\
|
||
|
!*** ./node_modules/jquery/dist/jquery.js ***!
|
||
|
\********************************************/
|
||
|
/*! no static exports found */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n * jQuery JavaScript Library v3.4.1\n * https://jquery.com/\n *\n * Includes Sizzle.js\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2019-05-01T21:04Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( true && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket #14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar document = window.document;\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar concat = arr.concat;\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\nvar isFunction = function isFunction( obj ) {\n\n // Support: Chrome <=57, Firefox <=52\n // In some browsers, typeof returns \"function\" for HTML <object> elements\n // (i.e., `typeof document.createElement( \"object\" ) === \"function\"`).\n // We don't want to classify *any* DOM node as a function.\n return typeof obj === \"function\" && typeof obj.nodeType !== \"number\";\n };\n\n\nvar isWindow = function isWindow( obj ) {\n\t\treturn obj != null && obj === obj.window;\n\t};\n\n\n\n\n\tvar preservedScriptAttributes = {\n\t\ttype: true,\n\t\tsrc: true,\n\t\tnonce: true,\n\t\tnoModule: true\n\t};\n\n\tfunction DOMEval( code, node, doc ) {\n\t\tdoc = doc || document;\n\n\t\tvar i, val,\n\t\t\tscript = doc.createElement( \"script\" );\n\n\t\tscript.text = code;\n\t\tif ( node ) {\n\t\t\tfor ( i in preservedScriptAttributes ) {\n\n\t\t\t\t// Support: Firefox 64+, Edge 18+\n\t\t\t\t// Some browsers don't support the \"nonce\" property on scripts.\n\t\t\t\t// On the other hand, just using `getAttribute` is not enough as\n\t\t\t\t// the `nonce` attribute is reset to an empty string whenever it\n\t\t\t\t// becomes browsing-context connected.\n\t\t\t\t// See https://github.com/whatwg/html/issues/2369\n\t\t\t\t// See https://html.spec.whatwg.org/#nonce-attributes\n\t\t\t\t// The `node.getAttribute` check was added for the sake of\n\t\t\t\t// `jQuery.globalEval` so that it can fake a nonce-containing node\n\t\t\t\t// via an object.\n\t\t\t\tval = node[ i ] || node.getAttribute && node.getAttribute( i );\n\t\t\t\tif ( val ) {\n\t\t\t\t\tscript.setAttribute( i, val );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdoc.head.appendChild( script ).parentNode.removeChild( script );\n\t}\n\n\nfunction toType( obj ) {\n\tif ( obj == null ) {\n\t\treturn obj + \"\";\n\t}\n\n\t// Support: Android <=2.3 only (functionish RegExp)\n\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\tclass2type[ toString.call( obj ) ] || \"object\" :\n\t\ttypeof obj;\n}\n/*
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ "./src/domain/globals.ts":
|
||
|
/*!*******************************!*\
|
||
|
!*** ./src/domain/globals.ts ***!
|
||
|
\*******************************/
|
||
|
/*! exports provided: Globals */
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Globals\", function() { return Globals; });\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\nvar Globals = /** @class */ (function () {\r\n function Globals() {\r\n }\r\n Globals.registerTheme = function (name, styleClass) {\r\n if (Globals.themes.some(function (value) { return value.name === name; })) {\r\n console.log(\"Theme with name '\" + name + \"' already registered; ignoring register request for styleClass '\" + styleClass + \"'.\");\r\n }\r\n else {\r\n Globals.themes.push({\r\n name: name,\r\n styleClass: styleClass\r\n });\r\n }\r\n };\r\n Globals.hasThemes = function () {\r\n return Globals.themes.length > 0;\r\n };\r\n Globals.hasMultipleThemes = function () {\r\n return Globals.themes.length > 1;\r\n };\r\n Globals.getFirstTheme = function () {\r\n return Globals.getTheme(0);\r\n };\r\n Globals.getTheme = function (index) {\r\n return Globals.themes[index];\r\n };\r\n Globals.getThemes = function () {\r\n return Globals.themes;\r\n };\r\n Globals.registerLayout = function (layout) {\r\n var available = Globals.layouts.some(function (element) {\r\n if (layout.code === element.code) {\r\n console.error(\"Error: Language code '\" + layout.code + \"' cannot be registered for layout '\" + layout.prettyName + \"' \\n because it is already registered for layout '\" + element.prettyName + \"'!\");\r\n return false;\r\n }\r\n return true;\r\n });\r\n if (available) {\r\n Globals.layouts.push(layout);\r\n }\r\n };\r\n Globals.hasLayouts = function () {\r\n return Globals.layouts.length > 0;\r\n };\r\n Globals.hasMultipleLayouts = function () {\r\n return Globals.layouts.length > 1;\r\n };\r\n Globals.getFirstLayout = function () {\r\n return Globals.layouts[0];\r\n };\r\n Globals.getLayouts = function () {\r\n return Globals.layouts;\r\n };\r\n Globals.layouts = [];\r\n Globals.themes = [];\r\n return Globals;\r\n}());\r\n\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvZG9tYWluL2dsb2JhbHMudHMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZG9tYWluL2dsb2JhbHMudHM/MGU2NiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcbiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxuIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcbiBidXQgV0lUSE9VVCBBTlkgV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZlxuIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gIFNlZSB0aGVcbiBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBmb3IgbW9yZSBkZXRhaWxzLlxuXG4gWW91IHNob3VsZCBoYXZlIHJlY2VpdmVkIGEgY29weSBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2VcbiBhbG9uZyB3aXRoIHRoaXMgcHJvZ3JhbS4gIElmIG5vdCwgc2VlIDxodHRwOi8vd3d3LmdudS5vcmcvbGljZW5zZXMvPi5cbiAqL1xuXG5pbXBvcnQge0
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ "./src/domain/layout.ts":
|
||
|
/*!******************************!*\
|
||
|
!*** ./src/domain/layout.ts ***!
|
||
|
\******************************/
|
||
|
/*! exports provided: EMPTY_LAYOUT */
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"EMPTY_LAYOUT\", function() { return EMPTY_LAYOUT; });\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\nvar EMPTY_LAYOUT = {\r\n code: null,\r\n hours: null,\r\n letters: [],\r\n minutes: null,\r\n permanent: [],\r\n prettyName: null,\r\n version: 2\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMv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gICAgcmVhZG9ubHkgY29kZTogc3RyaW5nO1xuICAgIGdldENvYXJzZU1pbnV0ZT86ICh0aW1lOiBEYXRlKSA9PiBudW1iZXI7XG4gICAgZ2V0RG90TWludXRlPzogKHRpbWU6IERhdGUpID0+IG51bWJlcjtcbiAgICBnZXRIb3VyPzogKHRpbWU6IERhdGUpID0+IG51bWJlcjtcbiAgICBnZXRTZWNvbmRzPzogKHRpbWU6IERhdGUpID0+IG51bWJlcjtcbiAgICByZWFkb25seSBob3VyczogVGltZURlZmluaXRpb247XG4gICAgcmVhZG9ubHkgbGV0dGVyczogc3RyaW5nW107XG4gICAgcmVhZG9ubHkgbWludXRlczogVGltZURlZmluaXRpb247XG4gICAgcGFyc2VkPzogTGV0dGVyW11bXTtcbiAgICByZWFkb25seSBwZXJtYW5lbnQ6IFdvcmREZWZpbml0aW9uIHwgV29yZERlZmluaXRpb25bXTtcbiAgICByZWFkb25seSBwcmV0dHlOYW1lOiBzdHJpbmc7XG4gICAgc2Vjb25kcz86IFRpbWVEZWZpbml0aW9uO1xuICAgIHJlYWRvbmx5IHZlcnNpb246IG51bWJlcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBXb3JkRGVmaW5pdGlvbiB7XG4gICAgW2xpbmU6IG51bWJlcl06IG51bWJlcltdO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFRpbWVEZWZpbml0aW9uIHtcbiAgICBbdmFsdWVzOiBzdHJpbmddOiBXb3JkRGVmaW5pdGlvbiB8IFdvcmREZWZpbml0aW9uW107XG59XG5cbmV4cG9ydCBjb25zdCBFTVBUWV9MQVlPVVQ6IExheW91dCA9IHtcbiAgICBjb2RlOiBudWxsLFxuICAgIGhvdXJzOiBudWxsLFxuICAgIGxldHRlcnM6IFtdLFxuICAgIG1pbnV0ZXM6IG51bGwsXG4gICAgcGVybWFuZW50OiBbXSxcbiAgICBwcmV0dHlOYW1lOiBudWxsLFxuICAgIHZlcnNpb246IDJcbn07XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTs7Ozs7Ozs7Ozs7OztBQWFBO0FBNEJBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/domain/layout.ts\n");
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ "./src/domain/letter.ts":
|
||
|
/*!******************************!*\
|
||
|
!*** ./src/domain/letter.ts ***!
|
||
|
\******************************/
|
||
|
/*! exports provided: Letter */
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Letter\", function() { return Letter; });\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n/**\r\n * Ein Buchstabe. Hilfsklasse für den Renderer und Inhalt der Layout-Arrays.\r\n * @param value Der Buchstabe, der Dargestellt werden soll.\r\n * @param style Die CSS-Styleklassen des Buchstabens.\r\n */\r\nvar Letter = /** @class */ (function () {\r\n function Letter(value, style) {\r\n this.style = '';\r\n this.value = value;\r\n if (!!style) {\r\n this.style = style;\r\n }\r\n }\r\n Letter.prototype.addStyle = function (style) {\r\n if (this.style === '') {\r\n this.style = style;\r\n }\r\n else {\r\n this.style += \" \" + style;\r\n }\r\n };\r\n ;\r\n Letter.prototype.toString = function () {\r\n return \"<span class=\\\"item letter \" + this.style + \"\\\">\" + this.value + \"</span>\";\r\n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ozs7Ozs7OztBQWFBO0FBRUE7Ozs7QUFJQTtBQUNBO0FBSUE7QUFGQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7OyIsInNvdXJjZVJvb3QiOi
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ "./src/index.ts":
|
||
|
/*!**********************!*\
|
||
|
!*** ./src/index.ts ***!
|
||
|
\**********************/
|
||
|
/*! no exports provided */
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _domain_globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./domain/globals */ \"./src/domain/globals.ts\");\n/* harmony import */ var _theme_autodetector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./theme-autodetector */ \"./src/theme-autodetector.ts\");\n/* harmony import */ var _uhr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./uhr */ \"./src/uhr.ts\");\n/* harmony import */ var _layout_layout_de_ch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./layout/layout-de_ch */ \"./src/layout/layout-de_ch.ts\");\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\n\r\n\r\n\r\n// First things first: discover included themes and register them\r\nObject(_theme_autodetector__WEBPACK_IMPORTED_MODULE_1__[\"autodetectThemes\"])();\r\n// Now register some layouts\r\n_domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].registerLayout(_layout_layout_de_ch__WEBPACK_IMPORTED_MODULE_3__[\"Layout_de_CH\"]);\r\n$.widget(\"fritteli.uhr\", {\r\n \"options\": {\r\n width: '100%',\r\n status: 'on',\r\n language: 'de_CH',\r\n theme: _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].getFirstTheme().styleClass,\r\n force: false,\r\n controls: true,\r\n cookiePath: undefined,\r\n autoresize: true,\r\n mode: 'normal'\r\n },\r\n \"start\": function () {\r\n this.__fritteli_uhr_instance.start();\r\n },\r\n \"stop\": function () {\r\n this.__fritteli_uhr_instance.stop();\r\n },\r\n \"toggle\": function () {\r\n this.__fritteli_uhr_instance.toggle();\r\n },\r\n \"language\": function (key) {\r\n this.__fritteli_uhr_instance.setLanguage(key);\r\n },\r\n \"theme\": function (styleClass) {\r\n this.__fritteli_uhr_instance.setTheme(styleClass);\r\n },\r\n \"time\": function (time) {\r\n this.__fritteli_uhr_instance.setTime(time);\r\n },\r\n \"mode\": function (mode) {\r\n this.__fritteli_uhr_instance.setMode(mode);\r\n },\r\n \"width\": function (width) {\r\n this.__fritteli_uhr_instance.setWidth(width);\r\n },\r\n // constructor method\r\n \"_create\": function () {\r\n this.__fritteli_uhr_instance = new _uhr__WEBPACK_IMPORTED_MODULE_2__[\"Uhr\"](this);\r\n },\r\n // destructor method\r\n \"_destroy\": function () {\r\n this.__fritteli_uhr_instance.destroy();\r\n },\r\n \"__fritteli_uhr_instance\": null\r\n});\r\n$.fritteli.uhr.register = _domain_globals__WEBPACK_IMPORTED_MODULE_0__[\"Globals\"].registerLayout;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaW5kZXgudHMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvaW5kZXgudHM/ZmZiNCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuIFRoaXMgcHJvZ3JhbSBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgY2FuIHJlZGlzdHJpYnV0ZSBpdCBhbmQvb3IgbW9kaWZ5XG4gaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcbiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxuIChhdCB5b3VyIG9wdGlvbikgYW55IGxhdGVyIHZlcnNpb24uXG5cbiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcbiBidXQgV0lUSE9VVCBBTlkgV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZlxuIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4g
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ "./src/layout/layout-de_ch.ts":
|
||
|
/*!************************************!*\
|
||
|
!*** ./src/layout/layout-de_ch.ts ***!
|
||
|
\************************************/
|
||
|
/*! exports provided: Layout_de_CH */
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Layout_de_CH\", function() { return Layout_de_CH; });\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\nvar es_isch = { 1: [1, 2, 4, 5, 6, 7] };\r\nvar ab = { 4: [1, 2] };\r\nvar vor = { 3: [9, 10, 11] };\r\nvar haubi = { 4: [4, 5, 6, 7, 8] };\r\nvar fuef = { 1: [9, 10, 11] };\r\nvar zae = { 2: [9, 10, 11] };\r\nvar viertu = { 2: [1, 2, 3, 4, 5, 6] };\r\nvar zwaenzg = { 3: [1, 2, 3, 4, 5, 6] };\r\nvar Layout_de_CH = {\r\n code: 'de_CH',\r\n hours: {\r\n '0,12': { 10: [1, 2, 3, 4, 5, 6] },\r\n '1,13': { 5: [1, 2, 3] },\r\n '2,14': { 5: [4, 5, 6, 7] },\r\n '3,15': { 5: [9, 10, 11] },\r\n '4,16': { 6: [1, 2, 3, 4, 5] },\r\n '5,17': { 6: [6, 7, 8, 9] },\r\n '6,18': { 7: [1, 2, 3, 4, 5, 6] },\r\n '7,19': { 7: [7, 8, 9, 10, 11] },\r\n '8,20': { 8: [1, 2, 3, 4, 5] },\r\n '9,21': { 8: [6, 7, 8, 9] },\r\n '10,22': { 9: [1, 2, 3, 4] },\r\n '11,23': { 9: [8, 9, 10, 11] }\r\n },\r\n letters: [\r\n 'ESKISCHAFÜF',\r\n 'VIERTUBFZÄÄ',\r\n 'ZWÄNZGSIVOR',\r\n 'ABOHAUBIEGE',\r\n 'EISZWÖISDRÜ',\r\n 'VIERIFÜFIQT',\r\n 'SÄCHSISIBNI',\r\n 'ACHTINÜNIEL',\r\n 'ZÄNIERBEUFI',\r\n 'ZWÖUFINAUHR'\r\n ],\r\n minutes: {\r\n \"5,6,7,8,9\": [fuef, ab],\r\n \"10,11,12,13,14\": [zae, ab],\r\n \"15,16,17,18,19\": [viertu, ab],\r\n \"20,21,22,23,24\": [zwaenzg, ab],\r\n \"25,26,27,28,29\": [fuef, vor, haubi],\r\n \"30,31,32,33,34\": haubi,\r\n \"35,36,37,38,39\": [fuef, ab, haubi],\r\n \"40,41,42,43,44\": [zwaenzg, vor],\r\n \"45,46,47,48,49\": [viertu, vor],\r\n \"50,51,52,53,54\": [zae, vor],\r\n \"55,56,57,58,59\": [fuef, vor]\r\n },\r\n permanent: es_isch,\r\n prettyName: 'Bärndütsch',\r\n version: 2\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbGF5b3V0L2xheW91dC1kZV9jaC50cy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9sYXlvdXQvbGF5b3V0LWRlX2NoLnRzP2E2ODIiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxuIGl0IHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgYXMgcHVibGlzaGVkIGJ5XG4gdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgZWl0aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3JcbiAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLlxuXG4gVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsXG4gYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcbiBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1IgQSBQQVJUSUNVTEFSIFBVUlBPU0UuICBTZWUgdGhlXG4gR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy5cblxuIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXG4gYWxvbmcgd2l0aCB0aGlzIHByb2dyYW0uICBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXG4gKi9cblxuaW1wb3J0IHtMYXlvdXQsIFdvcmREZWZpbml0aW9ufSBmcm9tIFwiLi4vZG9tYWluL2xheW91dFwiO1xuXG5jb25zdCBlc19pc2NoOiBXb3JkRGVmaW5pdGlvbiA9IHsxOiBbMSwgMiwgNCwgNSwgNiwgN119O1xuY29uc3QgYWIgPSB7NDogWzEsIDJdfTtcbmNvbnN0IHZvciA9IHszOiBbOSwgMTAsIDExXX07XG5jb25zdCBoYXViaSA9IHs0OiBbNCwgNSwgNiwgNywgOF19O1xuY29uc3QgZnVlZiA9IHsxOiBbOSwgMTAsIDExXX07XG5jb25zdCB6YWUgPSB7M
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ "./src/renderer.ts":
|
||
|
/*!*************************!*\
|
||
|
!*** ./src/renderer.ts ***!
|
||
|
\*************************/
|
||
|
/*! exports provided: UhrRenderer */
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"UhrRenderer\", function() { return UhrRenderer; });\n/* harmony import */ var _domain_letter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./domain/letter */ \"./src/domain/letter.ts\");\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nvar UhrRendererV2Delegate = /** @class */ (function () {\r\n function UhrRendererV2Delegate(layout) {\r\n this.layout = layout;\r\n }\r\n UhrRendererV2Delegate.prototype.parse = function () {\r\n var letters = [];\r\n this.layout.letters.forEach(function (lineString) {\r\n var line = [];\r\n for (var c = 0; c < lineString.length; c++) {\r\n line.push(new _domain_letter__WEBPACK_IMPORTED_MODULE_0__[\"Letter\"](lineString[c]));\r\n }\r\n letters.push(line);\r\n });\r\n this.parseArrayOrObject(letters, 'on', this.layout.permanent);\r\n if (typeof this.layout.seconds !== 'undefined' && this.layout.seconds !== null) {\r\n this.parseTimeDefinition(letters, 'second', this.layout.seconds);\r\n }\r\n else {\r\n this.parseTimeDefinition(letters, 'second', UhrRendererV2Delegate.seconds);\r\n }\r\n this.parseTimeDefinition(letters, 'minute', this.layout.minutes);\r\n this.parseTimeDefinition(letters, 'hour', this.layout.hours);\r\n return letters;\r\n };\r\n ;\r\n UhrRendererV2Delegate.prototype.parseObject = function (letters, styleClass, object) {\r\n if (typeof object !== 'undefined' && object !== null) {\r\n Object.keys(object)\r\n .map(function (key) { return Number(key); })\r\n .forEach(function (y) { return object[y].forEach(function (x) { return letters[y - 1][x - 1].addStyle(styleClass); }); });\r\n }\r\n };\r\n UhrRendererV2Delegate.prototype.parseArrayOrObject = function (letters, styleClass, input) {\r\n var _this = this;\r\n if (typeof input !== 'undefined' && input !== null) {\r\n if (Array.isArray(input)) {\r\n input.forEach(function (item) { return _this.parseObject(letters, styleClass, item); });\r\n }\r\n else {\r\n this.parseObject(letters, styleClass, input);\r\n }\r\n }\r\n };\r\n UhrRendererV2Delegate.prototype.parseTimeDefinition = function (letters, styleClass, definition) {\r\n var _this = this;\r\n if (typeof definition !== 'undefined' && definition !== null) {\r\n Object.keys(definition).forEach(function (listString) {\r\n var timeValues = listString.split(',');\r\n var highlightLetters = definition[listString];\r\n timeValues.forEach(function (timeValue) { return _this.parseArrayOrObject(letters, styleClass + timeValue, highlightLetters); });\r\n });\r\n }\r\n };\r\n UhrRendererV2Delegate.vorne0 = {\r\n 3: [2, 3, 4],\r\n 4: [1, 5],\r\n 5: [1, 4, 5],\r\n 6: [1, 3, 5],\r\n 7: [1, 2, 5],\r\n 8: [1, 5],\r\n 9: [2, 3, 4]\r\n };\r\n UhrRendererV2Delegate.hinten0 = {\r\n 3: [8, 9, 10],\r\n 4: [7, 11],\r\n 5: [7, 10, 11],\r\n 6: [7, 9, 11],\r\n 7: [7, 8, 11],\r\n 8: [7, 11],\r\n 9: [8, 9, 10]\r\n
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ "./src/theme-autodetector.ts":
|
||
|
/*!***********************************!*\
|
||
|
!*** ./src/theme-autodetector.ts ***!
|
||
|
\***********************************/
|
||
|
/*! exports provided: autodetectThemes */
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"autodetectThemes\", function() { return autodetectThemes; });\n/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ \"./node_modules/jquery/dist/jquery.js\");\n/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _domain_globals__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./domain/globals */ \"./src/domain/globals.ts\");\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\n\r\nfunction autodetectThemes() {\r\n jquery__WEBPACK_IMPORTED_MODULE_0__('link[rel=stylesheet]').each(function (index, item) {\r\n var styleSheet = jquery__WEBPACK_IMPORTED_MODULE_0__(item);\r\n var styleClass = styleSheet.attr('data-class');\r\n if (styleClass !== undefined) {\r\n var name_1 = styleSheet.attr('data-name');\r\n if (name_1 === undefined) {\r\n name_1 = styleClass;\r\n }\r\n _domain_globals__WEBPACK_IMPORTED_MODULE_1__[\"Globals\"].registerTheme(name_1, styleClass);\r\n }\r\n });\r\n // fall-back if no theme was included\r\n if (!_domain_globals__WEBPACK_IMPORTED_MODULE_1__[\"Globals\"].hasThemes()) {\r\n _domain_globals__WEBPACK_IMPORTED_MODULE_1__[\"Globals\"].registerTheme('', '');\r\n }\r\n}\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdGhlbWUtYXV0b2RldGVjdG9yLnRzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3RoZW1lLWF1dG9kZXRlY3Rvci50cz8zMjdkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU6IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnlcbiBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieVxuIHRoZSBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb24sIGVpdGh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1lOiBzdHJpbmcgPSBzdHlsZVNoZWV0LmF0dHIoJ2RhdGEtbmFtZScpO1xuICAgICAgICAgICAgaWYgKG5hbWUgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgIG5hbWUgPSBzdHlsZUNsYXNzO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgR2xvYmFscy5yZWdpc3RlclRoZW1lKG5hbWUsIHN0eWxlQ2xhc3MpO1xuICAgICAgICB9XG4gICAgfSk7XG5cbiAgICAvLyBmYWxsLWJhY2sgaWYgbm8gdGhlbWUgd2FzIGluY2x1ZGVkXG4gICAgaWYgKCFHbG9iYWxzLmhhc1RoZW1lcygpKSB7XG4gICAgICAgIEdsb2Jh
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ "./src/uhr.ts":
|
||
|
/*!********************!*\
|
||
|
!*** ./src/uhr.ts ***!
|
||
|
\********************/
|
||
|
/*! exports provided: Uhr */
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Uhr\", function() { return Uhr; });\n/* harmony import */ var _domain_globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./domain/globals */ \"./src/domain/globals.ts\");\n/* harmony import */ var _renderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./renderer */ \"./src/renderer.ts\");\n/* harmony import */ var _domain_layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./domain/layout */ \"./src/domain/layout.ts\");\n/*\r\n This program is free software: you can redistribute it and/or modify\r\n it under the terms of the GNU General Public License as published by\r\n the Free Software Foundation, either version 3 of the License, or\r\n (at your option) any later version.\r\n\r\n This program is distributed in the hope that it will be useful,\r\n but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n GNU General Public License for more details.\r\n\r\n You should have received a copy of the GNU General Public License\r\n along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\n\r\n\r\nvar Uhr = /** @class */ (function () {\r\n function Uhr(widgetInstance) {\r\n this.widgetInstance = widgetInstance;\r\n this.timer = null;\r\n this.currentMinute = null;\r\n var userTime = this.widgetInstance.options.time;\r\n if (this.widgetInstance.options.time === undefined) {\r\n this.widgetInstance.options.time = new Date();\r\n }\r\n this.parseHash();\r\n this.setupHTML();\r\n this.wireFunctionality();\r\n if (userTime !== undefined) {\r\n this.setTime(userTime);\r\n }\r\n }\r\n Uhr.prototype.destroy = function () {\r\n if (!!this.timer) {\r\n window.clearInterval(this.timer);\r\n this.timer = null;\r\n }\r\n this.widgetInstance.element\r\n .removeAttr('style')\r\n .removeAttr('class')\r\n .empty();\r\n $(\"#uhr-configlink\" + this.widgetInstance.uuid).remove();\r\n $(\"#uhr-controlpanel\" + this.widgetInstance.uuid).remove();\r\n };\r\n Uhr.prototype.start = function () {\r\n var _this = this;\r\n if (!this.isOn()) {\r\n this.timer = window.setInterval(function () {\r\n _this.widgetInstance.options.time = new Date();\r\n _this.update();\r\n }, 1000);\r\n this.update();\r\n this.setCookie('uhr-status', 'on');\r\n }\r\n };\r\n Uhr.prototype.stop = function () {\r\n if (this.isOn()) {\r\n window.clearInterval(this.timer);\r\n this.timer = null;\r\n this.update();\r\n this.setCookie('uhr-status', 'off');\r\n }\r\n };\r\n Uhr.prototype.toggle = function () {\r\n if (this.isOn()) {\r\n this.stop();\r\n }\r\n else {\r\n this.start();\r\n }\r\n };\r\n Uhr.prototype.setLanguage = function (key) {\r\n var _this = this;\r\n if (key !== this.widgetInstance.options.language) {\r\n this.widgetInstance.options.language = key;\r\n var renderer = new _renderer__WEBPACK_IMPORTED_MODULE_1__[\"UhrRenderer\"](this.getCurrentLayout(), this.widgetInstance.element.find('.letterarea'));\r\n renderer.render(function () {\r\n _this.currentMinute = -1;\r\n _this.update();\r\n });\r\n this.setCookie('uhr-language', key);\r\n this.update();\r\n }\r\n };\r\n Uhr.prototype.setTheme = function (styleClass) {\r\n if (styleClass !== this.widgetInstance.options.theme) {\r\n this.widgetInstance.element.removeClass(this.widgetInstance.options.theme).addClass(styleClass);\r\n $(\"#uhr-onoffswitch\" + this.widgetInstance.uuid).removeClass(this.
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 0:
|
||
|
/*!****************************!*\
|
||
|
!*** multi ./src/index.ts ***!
|
||
|
\****************************/
|
||
|
/*! no static exports found */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
module.exports = __webpack_require__(/*! ./src/index.ts */"./src/index.ts");
|
||
|
|
||
|
|
||
|
/***/ })
|
||
|
|
||
|
/******/ });
|