From ed4ef248f82ea53d861799a4e8e6615b96c776ea Mon Sep 17 00:00:00 2001 From: Humberto Alfonso Díaz Date: Mon, 1 Jul 2019 14:32:28 +0200 Subject: RESTRUCT Update config.xml and app.js --- src/config.xml | 4 +-- src/js/app.js | 80 ---------------------------------------------------------- 2 files changed, 2 insertions(+), 82 deletions(-) diff --git a/src/config.xml b/src/config.xml index b1d38ce..fdc3ab5 100644 --- a/src/config.xml +++ b/src/config.xml @@ -1,5 +1,5 @@ - + HTML5 HVAC @@ -14,7 +14,7 @@ - + \ No newline at end of file diff --git a/src/js/app.js b/src/js/app.js index 9c65e4f..e69de29 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1,80 +0,0 @@ -import Mustache from 'mustache'; - -var host = document.location.hostname; -var port = document.location.port; -var args = new URLSearchParams(document.location.search.substring(1)); -var token = args.get("x-afb-token") || args.get("token") || "HELLO"; -var afb; -var template; - -function log(smgs) { - document.getElementById('log').innerHTML += '
'+smgs+'
'; -} - -function getIcon(app) { - if( app.icon.match(/^.*\.svg$/) ) { - return '/icons/'+app.id; - } else { - return '/images/noicon.svg'; - } -} - -function display_applications(apps) { - var appContainer = document.getElementById('AppContainer'); - for( var i=0; i