diff --git a/website/.vscode/launch.json b/website/.vscode/launch.json deleted file mode 100644 index 2ba986f..0000000 --- a/website/.vscode/launch.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "chrome", - "request": "launch", - "name": "Launch Chrome against localhost", - "url": "http://localhost:8080", - "webRoot": "${workspaceFolder}" - } - ] -} \ No newline at end of file diff --git a/website/appjs.js b/website/appjs.js index d08b203..c518f09 100644 --- a/website/appjs.js +++ b/website/appjs.js @@ -1,43 +1,4 @@ -function onclick1() { - var click = document.getElementById("arrow0"); - click.classList.toggle("mystyle"); - var expand = document.getElementById("listExpand1"); - expand.classList.toggle("expand"); - var appear = document.getElementById("roko1"); - appear.classList.toggle("appear"); -} -function onclick2() { - var click = document.getElementById("arrow2"); - click.classList.toggle("mystyle"); - var expand = document.getElementById("listExpand2"); - expand.classList.toggle("expand"); - var appear = document.getElementById("roko2"); - appear.classList.toggle("appear"); -} -function onclick3() { - var click = document.getElementById("arrow3"); - click.classList.toggle("mystyle"); - var expand = document.getElementById("listExpand3"); - expand.classList.toggle("expand"); - var appear = document.getElementById("roko3"); - appear.classList.toggle("appear"); -} -function onclick4() { - var click = document.getElementById("arrow4"); - click.classList.toggle("mystyle"); - var expand = document.getElementById("listExpand4"); - expand.classList.toggle("expand"); - var appear = document.getElementById("roko4"); - appear.classList.toggle("appear"); -} -function onclick5() { - var click = document.getElementById("arrow5"); - click.classList.toggle("mystyle"); - var expand = document.getElementById("listExpand5"); - expand.classList.toggle("expand"); - var appear = document.getElementById("roko5"); - appear.classList.toggle("appear"); -} + function bmenu() { var burger = document.getElementById("bonger"); burger.classList.toggle("appear") diff --git a/website/desc_short.js b/website/desc_short.js index 0b03ab9..82fec3d 100644 --- a/website/desc_short.js +++ b/website/desc_short.js @@ -26,7 +26,7 @@ $(document).ready(function() {
${key}: ${value}
`); - $(".sensors_big").append(`${key}: ${value}
`); + if (value.startsWith("[translate]-")) { + value = value.slice(12); + } + + // appending to DOM + $(`#sensors_small${id}`).append(`${key}: ${value}
`); + $(`#sensors_big${id}`).append(`${key}: ${value}
`); }); }); diff --git a/website/ip.txt b/website/ip.txt index e56ea71..d18580b 100644 --- a/website/ip.txt +++ b/website/ip.txt @@ -1 +1 @@ -127.0.0.1 \ No newline at end of file +localhost \ No newline at end of file