From 5211e1df6034f420ffc4f265a4c86a986a2bc5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Sat, 24 Nov 2018 20:53:17 +0100 Subject: [PATCH] =?UTF-8?q?q=C3=9Fgq=C3=9Fk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/autoloader.js | 64 +++++++++++++++--------------------------- dist/autoloader.min.js | 2 +- dist/standalone.js | 2 +- src/autoloader.js | 62 +++++++++++++++------------------------- 4 files changed, 47 insertions(+), 83 deletions(-) diff --git a/dist/autoloader.js b/dist/autoloader.js index 45e47bb..e6ac194 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Sat Nov 24 2018 20:49:42 GMT+0100 (CET)*/ +/*Generated on:Sat Nov 24 2018 20:53:16 GMT+0100 (CET)*/ var AutomaticDispose_Branch = "master"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var da_lss_adis_time = new Date().getTime(); @@ -4570,30 +4570,29 @@ ADisDB.on("ready", () => { //console.log(ADisDB); //console.log(ADisSettings('Krankentransport-Automatic')); - - // - - // - Google Font - // - - - var styleElement = document.createElement("link"); - styleElement.rel = "stylesheet"; - styleElement.href = "https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700"; - ADis_MyHead.appendChild(styleElement); - - // - - // - FontAwesome 5 - // - - - var scriptElement = document.createElement("script"); - scriptElement.type = "text/javascript"; - scriptElement.src = "https://use.fontawesome.com/releases/v5.5.0/js/all.js"; - ADis_MyHead.appendChild(scriptElement); - - // - - // - Navbar Dashboard - // - - if (window.location.pathname === "/" || window.location.pathname === "/#") { + // - + // - Google Font + // - + + var styleElement = document.createElement("link"); + styleElement.rel = "stylesheet"; + styleElement.href = "https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700"; + ADis_MyHead.appendChild(styleElement); + + // - + // - FontAwesome 5 + // - + + var scriptElement = document.createElement("script"); + scriptElement.type = "text/javascript"; + scriptElement.src = "https://use.fontawesome.com/releases/v5.5.0/js/all.js"; + ADis_MyHead.appendChild(scriptElement); + + // - + // - Navbar Dashboard + // - + $(document).ready(function () { ADis_CreateDashboard(); ADis_CreateIframes(); @@ -4628,23 +4627,6 @@ ADisDB.on("ready", () => { ADis_MyHead.appendChild(styleElement); } - // - - // - Load Automatic Modes - // - Load Opener - // - - - function ADis_UpdateOwnMissionsToDone(MissionID, updateData) { - if (typeof updateData != 'undefined') { - return ADisDB.ADisMissionsOwn.put({ - missionID: MissionID - }, updateData).catch((err) => {}) - } - return ADisDB.ADisMissionsOwn.put({ - missionID: MissionID, - done: 'true' - }).catch((err) => {}) - } - // - // - Mission Variablen // - diff --git a/dist/autoloader.min.js b/dist/autoloader.min.js index 6e39a07..111b778 100755 --- a/dist/autoloader.min.js +++ b/dist/autoloader.min.js @@ -1 +1 @@ -"use strict";function asyncGeneratorStep(e,t,n,s,a,i,r){try{var o=e[i](r),c=o.value}catch(e){return void n(e)}o.done?t(c):Promise.resolve(c).then(s,a)}function _asyncToGenerator(o){return function(){var e=this,r=arguments;return new Promise(function(t,n){var s=o.apply(e,r);function a(e){asyncGeneratorStep(s,t,n,a,i,"next",e)}function i(e){asyncGeneratorStep(s,t,n,a,i,"throw",e)}a(void 0)})}}var AutomaticDispose_Branch="master",AutomaticDispose_URL="https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/",da_lss_adis_time=(new Date).getTime(),ADis_AllMissions=0;void 0!==window.name&&console.log(window.name);var ADis_MyHead=document.getElementsByTagName("head")[0],ADis_MyBody=document.getElementsByTagName("body")[0];function includesString(e,t){return e.toLowerCase().includes(t.toLowerCase())}function ADisSettings(){return _ADisSettings.apply(this,arguments)}function _ADisSettings(){return(_ADisSettings=_asyncToGenerator(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={},e.next=3,ADisDB.ADisSettings.each(function(e){t[e.name]=e.value});case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}ADisDB.on("ready",function(){(e=document.createElement("link")).rel="stylesheet",e.href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700",ADis_MyHead.appendChild(e);var e,t=document.createElement("script");(t.type="text/javascript",t.src="https://use.fontawesome.com/releases/v5.5.0/js/all.js",ADis_MyHead.appendChild(t),"/"===window.location.pathname||"/#"===window.location.pathname)&&((e=document.createElement("link")).rel="stylesheet",e.type="text/css",e.media="screen",e.href=AutomaticDispose_URL+AutomaticDispose_Branch+"/style/interface.css",ADis_MyHead.appendChild(e))}); \ No newline at end of file +"use strict";function asyncGeneratorStep(e,t,n,s,a,i,r){try{var o=e[i](r),c=o.value}catch(e){return void n(e)}o.done?t(c):Promise.resolve(c).then(s,a)}function _asyncToGenerator(o){return function(){var e=this,r=arguments;return new Promise(function(t,n){var s=o.apply(e,r);function a(e){asyncGeneratorStep(s,t,n,a,i,"next",e)}function i(e){asyncGeneratorStep(s,t,n,a,i,"throw",e)}a(void 0)})}}var AutomaticDispose_Branch="master",AutomaticDispose_URL="https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/",da_lss_adis_time=(new Date).getTime(),ADis_AllMissions=0;void 0!==window.name&&console.log(window.name);var ADis_MyHead=document.getElementsByTagName("head")[0],ADis_MyBody=document.getElementsByTagName("body")[0];function includesString(e,t){return e.toLowerCase().includes(t.toLowerCase())}function ADisSettings(){return _ADisSettings.apply(this,arguments)}function _ADisSettings(){return(_ADisSettings=_asyncToGenerator(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={},e.next=3,ADisDB.ADisSettings.each(function(e){t[e.name]=e.value});case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}ADisDB.on("ready",function(){if("/"===window.location.pathname||"/#"===window.location.pathname){(e=document.createElement("link")).rel="stylesheet",e.href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700",ADis_MyHead.appendChild(e);var e,t=document.createElement("script");t.type="text/javascript",t.src="https://use.fontawesome.com/releases/v5.5.0/js/all.js",ADis_MyHead.appendChild(t),(e=document.createElement("link")).rel="stylesheet",e.type="text/css",e.media="screen",e.href=AutomaticDispose_URL+AutomaticDispose_Branch+"/style/interface.css",ADis_MyHead.appendChild(e)}}); \ No newline at end of file diff --git a/dist/standalone.js b/dist/standalone.js index 7f2544b..c803240 100644 --- a/dist/standalone.js +++ b/dist/standalone.js @@ -1,4 +1,4 @@ -/*Generated on:Sat Nov 24 2018 20:49:42 GMT+0100 (CET)*/ +/*Generated on:Sat Nov 24 2018 20:53:16 GMT+0100 (CET)*/ function includesString(string1, string2) { return string1.toLowerCase().includes(string2.toLowerCase()); } diff --git a/src/autoloader.js b/src/autoloader.js index cd24bc2..628c1ed 100755 --- a/src/autoloader.js +++ b/src/autoloader.js @@ -32,30 +32,29 @@ ADisDB.on("ready", () => { //console.log(ADisDB); //console.log(ADisSettings('Krankentransport-Automatic')); - - // - - // - Google Font - // - - - var styleElement = document.createElement("link"); - styleElement.rel = "stylesheet"; - styleElement.href = "https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700"; - ADis_MyHead.appendChild(styleElement); - - // - - // - FontAwesome 5 - // - - - var scriptElement = document.createElement("script"); - scriptElement.type = "text/javascript"; - scriptElement.src = "https://use.fontawesome.com/releases/v5.5.0/js/all.js"; - ADis_MyHead.appendChild(scriptElement); - - // - - // - Navbar Dashboard - // - - if (window.location.pathname === "/" || window.location.pathname === "/#") { + // - + // - Google Font + // - + + var styleElement = document.createElement("link"); + styleElement.rel = "stylesheet"; + styleElement.href = "https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700"; + ADis_MyHead.appendChild(styleElement); + + // - + // - FontAwesome 5 + // - + + var scriptElement = document.createElement("script"); + scriptElement.type = "text/javascript"; + scriptElement.src = "https://use.fontawesome.com/releases/v5.5.0/js/all.js"; + ADis_MyHead.appendChild(scriptElement); + + // - + // - Navbar Dashboard + // - + //=require ../script/interface.js var styleElement = document.createElement("link"); styleElement.rel = "stylesheet"; @@ -65,23 +64,6 @@ ADisDB.on("ready", () => { ADis_MyHead.appendChild(styleElement); } - // - - // - Load Automatic Modes - // - Load Opener - // - - - function ADis_UpdateOwnMissionsToDone(MissionID, updateData) { - if (typeof updateData != 'undefined') { - return ADisDB.ADisMissionsOwn.put({ - missionID: MissionID - }, updateData).catch((err) => {}) - } - return ADisDB.ADisMissionsOwn.put({ - missionID: MissionID, - done: 'true' - }).catch((err) => {}) - } - //=require ../script/mission.js //=require ../script/sprechwunsch.js