From a843698b9f05bb555aaa5dd3829bbbcb20b3b08e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 15 Jan 2018 20:30:22 +0100 Subject: [PATCH] More js fixes --- code/espurna/data/index.html.gz | Bin 63173 -> 63173 bytes code/espurna/static/index.html.gz.h | 1178 +++++++++++++-------------- code/gulpfile.js | 6 +- code/html/custom.js | 128 +-- 4 files changed, 656 insertions(+), 656 deletions(-) diff --git a/code/espurna/data/index.html.gz b/code/espurna/data/index.html.gz index 28c287883a97705fdc3a81ded2e315917919a3cc..9cf1ff33a2d3405f1caf0954f2fd4de87132ac7b 100644 GIT binary patch delta 11792 zcmV+rF7MIB?E}T_1F(w7f0@P+ElQT$IBg}SjLOfz<3YVq3Ry`qpP3DBL$$meq_s4-3Wu%QFY&wvd(M0^f2<|pAcj^x$Md8% zh=XJZjb3Y|zk$;4grQmrSP@R-XG2H*+hQA9-gl7qCKmovp^7jgAL<%J2UW?B;EUd_ zKFy*e9D23cBn;4EJ0zmUF8{D+QJwG7CL%p1nGDJm(pVc7Q6K&o2RT z4^F~(q`sc*ceXnDf7emx=gu~KzWVPITPE5}?U1SF-u+o4@gM|1DDf`}wE)(}h--PMEjHXD847l?e_jA5;>{YSwNXp5bEbc$C}Hdn7pmy@VSsi~*0nIy@B90ZdP zZNhLXlqRycKh?(QhM7)@aEO~7?nH!^SBqdznx`3q1h8qs){)h=$tfXBSJbSobzm!n z`FoC=e+rx=@I6O=HS`Um#fG744zj>KCe)JNq05wd!Jj62Hb;dl(T9BJgr!v*Mi&<$ zE-`LJqb}Y-krh#dy-{Jplam_{)^rh;1AmhVJw&^J)?jnO0y(%cl~ysOH5C@^kaIj>T52<2^+z}0PSZ==z?u&5zyC+>T6OoV(S(_Na@zgi^d9Z(_Py5T zA0IvlYjIX}bjW3DpT0=qOXhM>aST;hTlrRBI>39T9S#{&z}+vm#kvj$=o7AygRn;&vf+}RcZ46Dj^T)Z z7d{Pty&dJC$J8l>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N zXo;82ybvXj+U4B>4G9_TvWhjJlVM?TR#zX)M)7C1GYPyz;%40rUa6+f${^f6;x`#06x9nupH`Q(;DA8TaJ*A~l zAP10KVd=RjRDTUHvxBf*=_4WOYm+%ZXT%;16Z}7b{{tOz+}Gw8LXJHQWQs9M3y?wI zoKzxvX`c`SgK{3(V*~x9;wZhV`)h6KAW`E+;ui3Quy>671pXcPk;mwu(QynDBh6pO zr3pAU;p*YfrqC;ld^UxiVbHTF^sbVC6d0SmcnV}VL^egMyF1WL5I`s+P713@W z7{Y*{N{{9{7*%<6_rItX)RC1`*}5pJoLAItLp1c?_k?54#IBS(Dmau8Go2K189AHamB?-o8>ASg(~kB>1HCO zZC2}swgi6om8uVP`NW}o2P@0C@0-I~Ie4s;N1KJvvh{E87HJ0?3LrYhm44f$E~xOL zA)yO;tQ5G#p2cf1%rM#qP*-;x4?BUl)>kOZ-nn9JJl zFn_^KueDKo8NpJEKWzdwOB=LdsbyopXi{r6Od(f5_|6!Pl9u&D20)p1O!QmX`Tx9C4bu7&? zMqjkuC|^a&DLYJvzKKj5ts^9$^y|L9zJCT-JB~?4t#-EalQKHJJ7r^sdk;0AjZ%u3 z7#qJPDummU7*Nr+(9d>k_!LYJ{v=K$a#*Yp9xc`gmnJRJ8Ye^v8ldhs3IE zfQmuP>#h(GA;+S6$)YR7*3zNBURUnXgQ9iyU!@BV84bG;_J4DabZ1Ln{`n$W(0RDH zR&^e^?Lgahwabuc&g0$&6%0b0cYmFCYii{D`Mb9#=O@6Dzj|?W{^I8sZ%>Y~y@%VI z#SgSM6Ib?l;RfvLTl-XP?GwDbLsh8t+Z*mok-?0s|}ji#+>$FjTCU+pc^#>!~PA zNx>T*3p&IWk5Msk$>mi(n~z>bpNzXKhX(wjNQD@wH6#HTJ$i;H^MRY{qR3Khx-;Lw Z%&T)qFD 0) { @@ -83,8 +82,7 @@ function htmllintReporter(filepath, issues) { }); process.exitCode = 1; } -} - +}; gulp.task('build_certs', function() { toHeader('server.cer'); diff --git a/code/html/custom.js b/code/html/custom.js index 13d88862..906fc2e0 100644 --- a/code/html/custom.js +++ b/code/html/custom.js @@ -37,7 +37,7 @@ function sensorName(id) { "SHT3X I2C", "BH1750" ]; if (1 <= id && id <= names.length) { - return names[id-1]; + return names[id-1]; } return null; } @@ -51,7 +51,7 @@ function magnitudeType(type) { "PM1.0", "PM2.5", "PM10", "CO2", "Lux" ]; if (1 <= type && type <= types.length) { - return types[type-1]; + return types[type-1]; } return null; } @@ -62,7 +62,7 @@ function magnitudeError(error) { "CRC Error", "I2C Error", "GPIO Error" ]; if (0 <= error && error < errors.length) { - return errors[error]; + return errors[error]; } return "Error " + error; } @@ -81,7 +81,9 @@ function checkPassword(str) { function zeroPad(number, positions) { var zeros = ""; - for (var i = 0; i < positions; i++) zeros += "0"; + for (var i = 0; i < positions; i++) { + zeros += "0"; + } return (zeros + number).slice(-positions); } @@ -167,11 +169,11 @@ function getData(form) { function randomString(length, chars) { var mask = ""; - if (chars.indexOf("a") > -1) mask += "abcdefghijklmnopqrstuvwxyz"; - if (chars.indexOf("A") > -1) mask += "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - if (chars.indexOf("#") > -1) mask += "0123456789"; - if (chars.indexOf("@") > -1) mask += "ABCDEF"; - if (chars.indexOf("!") > -1) mask += "~`!@#$%^&*()_+-={}[]:\";'<>?,./|\\"; + if (chars.indexOf("a") > -1) { mask += "abcdefghijklmnopqrstuvwxyz"; } + if (chars.indexOf("A") > -1) { mask += "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; } + if (chars.indexOf("#") > -1) { mask += "0123456789"; } + if (chars.indexOf("@") > -1) { mask += "ABCDEF"; } + if (chars.indexOf("!") > -1) { mask += "~`!@#$%^&*()_+-={}[]:\";'<>?,./|\\"; } var result = ""; for (var i = length; i > 0; --i) { result += mask[Math.round(Math.random() * (mask.length - 1))]; @@ -213,48 +215,6 @@ function doReload(milliseconds) { }, milliseconds); } -function doUpdate() { - - var form = $("#formSave"); - if (validateForm(form)) { - - // Get data - var data = getData(form); - websock.send(JSON.stringify({"config": data})); - - // Empty special fields - $(".pwrExpected").val(0); - $("input[name='pwrResetCalibration']"). - prop("checked", false). - iphoneStyle("refresh"); - - // Change handling - numChanged = 0; - setTimeout(function() { - - var response; - - if (numReboot > 0) { - response = window.confirm("You have to reboot the board for the changes to take effect, do you want to do it now?"); - if (response === true) doReboot(false); - } else if (numReconnect > 0) { - response = window.confirm("You have to reconnect to the WiFi for the changes to take effect, do you want to do it now?"); - if (response === true) doReconnect(false); - } else if (numReload > 0) { - response = window.confirm("You have to reload the page to see the latest changes, do you want to do it now?"); - if (response === true) doReload(); - } - - resetOriginals(); - - }, 1000); - - } - - return false; - -} - function doUpgrade() { var contents = $("input[name='upgrade']")[0].files[0]; @@ -373,6 +333,48 @@ function doReconnect(ask) { } +function doUpdate() { + + var form = $("#formSave"); + if (validateForm(form)) { + + // Get data + var data = getData(form); + websock.send(JSON.stringify({"config": data})); + + // Empty special fields + $(".pwrExpected").val(0); + $("input[name='pwrResetCalibration']"). + prop("checked", false). + iphoneStyle("refresh"); + + // Change handling + numChanged = 0; + setTimeout(function() { + + var response; + + if (numReboot > 0) { + response = window.confirm("You have to reboot the board for the changes to take effect, do you want to do it now?"); + if (response === true) { doReboot(false); } + } else if (numReconnect > 0) { + response = window.confirm("You have to reconnect to the WiFi for the changes to take effect, do you want to do it now?"); + if (response === true) { doReconnect(false); } + } else if (numReload > 0) { + response = window.confirm("You have to reload the page to see the latest changes, do you want to do it now?"); + if (response === true) { doReload(); } + } + + resetOriginals(); + + }, 1000); + + } + + return false; + +} + function doBackup() { document.getElementById("downloader").src = webhost + "config"; return false; @@ -491,6 +493,16 @@ function createMagnitudeList(data, container, template_name) { // Wifi // ----------------------------------------------------------------------------- +function delNetwork() { + var parent = $(this).parents(".pure-g"); + $(parent).remove(); +} + +function moreNetwork() { + var parent = $(this).parents(".pure-g"); + $(".more", parent).toggle(); +} + function addNetwork() { var numNetworks = $("#networks > div").length; @@ -514,16 +526,6 @@ function addNetwork() { } -function delNetwork() { - var parent = $(this).parents(".pure-g"); - $(parent).remove(); -} - -function moreNetwork() { - var parent = $(this).parents(".pure-g"); - $(".more", parent).toggle(); -} - // ----------------------------------------------------------------------------- // Relays scheduler // ----------------------------------------------------------------------------- @@ -1111,8 +1113,8 @@ function hasChanged() { var hasChanged = $(this).attr("hasChanged") || 0; var action = $(this).attr("action"); - if (typeof originalValue === "undefined") {return;} - if (action === "none") {return;} + if (typeof originalValue === "undefined") { return; } + if (action === "none") { return; } if (newValue !== originalValue) { if (hasChanged === 0) {