From 21fb8d8b59cff8d4666721e693841f2af04f2faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 8 Feb 2018 13:00:33 +0100 Subject: [PATCH] Small fixes to custom and gulpfile js --- code/espurna/data/index.html.gz | Bin 63831 -> 63846 bytes code/espurna/static/index.html.gz.h | 1267 ++++++++++++++------------- code/gulpfile.js | 13 +- code/html/custom.js | 89 +- 4 files changed, 688 insertions(+), 681 deletions(-) diff --git a/code/espurna/data/index.html.gz b/code/espurna/data/index.html.gz index ae283de0f9c150421861fd9ac235999e62456f8d..59618a91aa86593f5f01df6a553b3fc6fa50a15c 100644 GIT binary patch delta 9375 zcmV;QBw*Xu@&o4b1F#Ipf3PEVg{2!3f|PHR%=Kf~jPg9g^T@3*A1~wV>IQZ@eR?A^ z^%8cSW75wWCPFa_qg9$pN$luE*R>DIa{f>6-@Vx0F4}uP{6JbK5*Ymn`MA}iE!knw zMx=&3y~;;M3MGOSALh?Vzf4Sr(ABB(%VG-qRiy2y#^hLXHqH)Ie|W~7RC^b&MnV|L zv*0BjhUGz4q|%{I$oI?3EWP4eADSwlq{-)F0(E!de?|wFSrnb)FID9mbk%`}Uy-J* zIg$gby^M+fDB%1IufuqbE*4tk(+myfT5u=!TX4P4W1uN?8F}xpRotXq4A3X8%d+Wq zbxd_}069ppoZ9Afe>sn$D@1Et-j^>$eJ%1e;_GKFO%>oV@HiYMl5cSY;oG z!uwu(;=PH+Xlm9e;aJh0o`$7DzfiC58}|M1X}AICE4_bHR0R{^J5hNT3QX}Lhx~Yq zlf}b}4ZS#NgRS)th)VMvI2FFp^Bo_bzgiz*5z}3|bra9$e@LY)f|1T=$mArz!{oS< zCpo##ldJY=^aC7SCCQ;7R9guXR^e*F-h{&nROgmyG9YOQ9d(ljuvRz?p_w*$vvqwm z>i9A;8Go5vTj3|g?W1M znbkSzOyKKbeEGF~%Q7O=GmvgS^>YPB7NuXeaC_%za=_X7H+LUN>f11IXCGLGhA$?G^?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Nr zTt0?EhzVC{#eW$f7-L!O#fJEwz@)zq{s4b}{GpI|*j&>M0DM?C;Jmn3HvsOqOrjJ zd+~hzR6>x4_2F>7n1%Q11eLgdFR0j>ZV=4F`tgAkF@Ktn7TM3!FE%v$<@Q4siLk!t z*wNADhJ|gVWScYTaa%tRyq0gHXPL}>s(?8w%p%zutb3LIvy0j#UFpt&T|&uhw%K0+ zvA!%F^Ig=4}%0(MDyxcjU(m=hRf&ncnjEdvb@GTi-V zSbtG9QI)G?h*~c6S^$N5EtF`h1v5k~i>ek=dxnyl8A)m;F5KjgY7k3=Se6i%HHZs@ zxKI#7(j=d=*1J$YT9D$$5&i!Xl|MWNI!3oWsTX?qVt=QkWqy&;#6AAGE>Ni2zvngq zf^M0G!kCpH%_0iT>j{Z*R)V0Yk(lMxV1K22Mw1DZ*MEj;OsO$+um;DpFk@N6lp5#Nf(n?W<&+IdIRS& zL`QOFg&0zNXrM}>TcsqccMssDbLF^EhdWj}+`|T|U7<>xpN)(!!beyXmkkoKa(~*f zc|r3;s>!74LZ`Otp`eQG&!lKd`_hF`C9z4*8-q?d<9T|4PO^<*XO&rDBqt_ovowL6 zO+`8|hKRK*iIW036Qi!A&fSRZ>mOWU- z7}dI=fX_+eTMCPslS1yXKB{7#I3QMfG%y}WFkhbrGb*;IDJjDJ%3O_K)!?3*@j1ujPUjf!Z^nPu#B8&Faw8SD{T{hA@(u`Svi!;H~a_Be^?jwW)<2Xs8jEp(ezm>570c^zZ)KCx9`Olaw_h28cPUwU6vxiLcooJ*ExIs(2<^Z5b{n$DJabT+%Zij zO$(($E4a*C$LfC6o-huAl!cIgz)gg@B-~G^)H@6sY1ptX0h6Qc=mOC 0) { issues.forEach(function (issue) { gutil.log(gutil.colors.cyan('[gulp-htmllint] ') + gutil.colors.white(filepath + ' [' + issue.line + ',' + issue.column + ']: ') + gutil.colors.red('(' + issue.code + ') ' + issue.msg)); diff --git a/code/html/custom.js b/code/html/custom.js index 03ba7d46..06a9af16 100644 --- a/code/html/custom.js +++ b/code/html/custom.js @@ -166,8 +166,10 @@ function getData(form) { // Populate data $("input,select", form).each(function() { + var name = $(this).attr("name"); if (name) { + var value = ""; // Do not report these fields @@ -179,7 +181,9 @@ function getData(form) { if ($(this).attr("type") === "checkbox") { value = $(this).is(":checked") ? 1 : 0; } else if ($(this).attr("type") === "radio") { - if (!$(this).is(":checked")) {return;} + if (!$(this).is(":checked")) { + return; + } value = $(this).val(); } else { value = $(this).val(); @@ -187,7 +191,9 @@ function getData(form) { // Build the object if (name in data) { - if (!Array.isArray(data[name])) data[name] = [data[name]]; + if (!Array.isArray(data[name])) { + data[name] = [data[name]]; + } data[name].push(value); } else if (is_group.indexOf(name) >= 0) { data[name] = [value]; @@ -196,6 +202,7 @@ function getData(form) { } } + }); // Post process @@ -249,12 +256,9 @@ function resetOriginals() { } function doReload(milliseconds) { - milliseconds = (typeof milliseconds == "undefined") ? - 0 : - parseInt(milliseconds, 10); setTimeout(function() { window.location.reload(); - }, milliseconds); + }, parseInt(milliseconds, 10)); } /** @@ -363,19 +367,19 @@ function doReboot(ask) { var response; - ask = (typeof ask == "undefined") ? true : ask; + ask = (typeof ask === "undefined") ? true : ask; if (numChanged > 0) { response = window.confirm("Some changes have not been saved yet, do you want to save them first?"); if (response === true) { - return doUpdate(); + return doUpdate(); } } if (ask) { response = window.confirm("Are you sure you want to reboot the device?"); if (response === false) { - return false; + return false; } } @@ -386,21 +390,22 @@ function doReboot(ask) { } function doReconnect(ask) { + var response; - ask = (typeof ask == "undefined") ? true : ask; + ask = (typeof ask === "undefined") ? true : ask; if (numChanged > 0) { response = window.confirm("Some changes have not been saved yet, do you want to save them first?"); if (response === true) { - return doUpdate(); + return doUpdate(); } } if (ask) { response = window.confirm("Are you sure you want to disconnect from the current WIFI network?"); if (response === false) { - return false; + return false; } } @@ -439,7 +444,7 @@ function doUpdate() { 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(); } + if (response === true) { doReload(0); } } resetOriginals(); @@ -460,7 +465,7 @@ function doBackup() { function onFileUpload(event) { var inputFiles = this.files; - if (inputFiles === undefined || inputFiles.length === 0) { + if (typeof inputFiles === "undefined" || inputFiles.length === 0) { return false; } var inputFile = inputFiles[0]; @@ -800,10 +805,20 @@ function initChannels(num) { var max = num; if (colors) { max = num % 3; - if ((max > 0) & useWhite) max--; + if ((max > 0) & useWhite) { + max-- + }; } var start = num - max; + var onChannelSliderChange = function() { + var id = $(this).attr("data"); + var value = $(this).val(); + var parent = $(this).parents(".pure-g"); + $("span", parent).html(value); + websock.send(JSON.stringify({"action": "channel", "data" : { "id": id, "value": value }})); + } + // add templates var template = $("#channelTemplate").children(); for (var i=0; i legend").length; @@ -851,24 +878,6 @@ function addRfbNode() { return line; } -function rfbLearn() { - var parent = $(this).parents(".pure-g"); - var input = $("input", parent); - websock.send(JSON.stringify({"action": "rfblearn", "data" : {"id" : input.attr("data-id"), "status": input.attr("data-status")}})); -} - -function rfbForget() { - var parent = $(this).parents(".pure-g"); - var input = $("input", parent); - websock.send(JSON.stringify({"action": "rfbforget", "data" : {"id" : input.attr("data-id"), "status": input.attr("data-status")}})); -} - -function rfbSend() { - var parent = $(this).parents(".pure-g"); - var input = $("input", parent); - websock.send(JSON.stringify({"action": "rfbsend", "data" : {"id" : input.attr("data-id"), "status": input.attr("data-status"), "data": input.val()}})); -} - // ----------------------------------------------------------------------------- // Processing // -----------------------------------------------------------------------------