diff options
author | coderick14 | 2017-06-25 19:52:21 +0530 |
---|---|---|
committer | coderick14 | 2017-06-25 19:52:21 +0530 |
commit | 616886d5075802d043a8a0a6f141dd537d76c8b3 (patch) | |
tree | 1b04ef0de9e983769b663251b241460fed4dd2ac /templates/admin/testexp.html | |
parent | 7f86af60ad1ae0aa2d4e4f5b42d5a3c7a47bd170 (diff) | |
download | SBHS-2018-Rpi-616886d5075802d043a8a0a6f141dd537d76c8b3.tar.gz SBHS-2018-Rpi-616886d5075802d043a8a0a6f141dd537d76c8b3.tar.bz2 SBHS-2018-Rpi-616886d5075802d043a8a0a6f141dd537d76c8b3.zip |
Change BASE_URL and fix logging format in admin panel
Diffstat (limited to 'templates/admin/testexp.html')
-rw-r--r-- | templates/admin/testexp.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/admin/testexp.html b/templates/admin/testexp.html index d9cbce9..c47adaa 100644 --- a/templates/admin/testexp.html +++ b/templates/admin/testexp.html @@ -13,6 +13,10 @@ padding: 15px; display: none; } + #log-data > span { + word-spacing: 5em; + margin-left: 3em; + } </style> <div class="container"> <div class="row"> @@ -71,7 +75,7 @@ </div> </div> <script> - var BASE_URL = window.location.origin; + var BASE_URL = window.location.origin + "/sbhs"; $("#tableId").on("click", "tr", function(e) { $("#tableId").find("tr.highlight").removeClass("highlight"); $(this).addClass("highlight"); @@ -214,7 +218,7 @@ if (data.status_code == 200) { console.log(data.message.logs.replace("/\n/g", "<br/>")); document.getElementById("username").innerHTML = "User : " + data.message.user; - document.getElementById("log-data").innerHTML = "<pre>Timestamp Heater Fan Temp</pre>" + data.message.logs.replace(new RegExp("\n","g"), "<br/>"); + document.getElementById("log-data").innerHTML = "<pre>Iteration Heater Fan Temp</pre><span>" + data.message.logs.replace(new RegExp("\n","g"), "</span><br/><span>") + "</span>"; } else { alert(data.status_code); |