From 29cdd55085a378d33a632af8b4af8ee76a5af7f2 Mon Sep 17 00:00:00 2001 From: Wojciech Kaczmarski <44336093+sp5wwp@users.noreply.github.com> Date: Wed, 16 Oct 2019 21:05:50 +0200 Subject: [PATCH] Add files via upload --- rpi/pi/fans/fan.py | 178 ++++++++++++ rpi/pi/init.sh | 8 + rpi/pi/tty/main.c | 67 +++++ rpi/www/Untitled1.css | 108 ++++++++ rpi/www/diag.css | 438 ++++++++++++++++++++++++++++++ rpi/www/diag.html | 331 ++++++++++++++++++++++ rpi/www/gauge.min.js | 27 ++ rpi/www/images/builtwithwwb15.png | Bin 0 -> 1540 bytes rpi/www/index.css | 262 ++++++++++++++++++ rpi/www/index.html | 95 +++++++ rpi/www/info.css | 255 +++++++++++++++++ rpi/www/info.html | 92 +++++++ rpi/www/jquery-3.4.1.min.js | 2 + rpi/www/log.css | 286 +++++++++++++++++++ rpi/www/log.html | 93 +++++++ rpi/www/scrollspy.min.js | 12 + rpi/www/settings.css | 262 ++++++++++++++++++ rpi/www/settings.html | 94 +++++++ rpi/www/vals.txt | 9 + 19 files changed, 2619 insertions(+) create mode 100644 rpi/pi/fans/fan.py create mode 100644 rpi/pi/init.sh create mode 100644 rpi/pi/tty/main.c create mode 100644 rpi/www/Untitled1.css create mode 100644 rpi/www/diag.css create mode 100644 rpi/www/diag.html create mode 100644 rpi/www/gauge.min.js create mode 100644 rpi/www/images/builtwithwwb15.png create mode 100644 rpi/www/index.css create mode 100644 rpi/www/index.html create mode 100644 rpi/www/info.css create mode 100644 rpi/www/info.html create mode 100644 rpi/www/jquery-3.4.1.min.js create mode 100644 rpi/www/log.css create mode 100644 rpi/www/log.html create mode 100644 rpi/www/scrollspy.min.js create mode 100644 rpi/www/settings.css create mode 100644 rpi/www/settings.html create mode 100644 rpi/www/vals.txt diff --git a/rpi/pi/fans/fan.py b/rpi/pi/fans/fan.py new file mode 100644 index 0000000..b6373c4 --- /dev/null +++ b/rpi/pi/fans/fan.py @@ -0,0 +1,178 @@ +import RPi.GPIO as GPIO +import time + +from w1thermsensor import W1ThermSensor +#import smbus +from smbus2 import SMBus + +#Consts +T_SENSOR_1="000009a5e43c" +T_SENSOR_2="000009a60a09" +PCF_CTRL = 0x21 +PCF_DATA = 0x20 + +#CTRL +OE_1 = 0 +OE_2 = 1 +OE_3 = 2 +CLK_EN= 3 +CLR = 4 +LATCH = 5 +FAN_R = 6 +FAN_L = 7 + +#---------------------------------------------------------------------------- +def GetRPM(fan): + if fan == 0: + val=(1< +#include +#include +#include +#include +#include + +#include +#include +#include + +FILE *fp; +uint8_t c=0; +uint8_t cnt=0; +uint8_t rx_buff[100]; + +//UDP +struct sockaddr_in servaddr, cliaddr; + +int main(int argc, char *argv[]) +{ + int sockfd = socket(AF_INET, SOCK_DGRAM, 0); + + memset(&servaddr, 0, sizeof(servaddr)); + memset(&cliaddr, 0, sizeof(cliaddr)); + memset(rx_buff, 0, 100); + + servaddr.sin_family = AF_INET; //IPv4 + servaddr.sin_addr.s_addr = inet_addr(argv[1]);//INADDR_ANY; + servaddr.sin_port = htons(atoi(argv[2])); + bind(sockfd, (const struct sockaddr*)&servaddr, sizeof(servaddr)); + + fp = fopen("/dev/ttyS0", "rb"); //sudo stty -F /dev/ttyS0 115200 raw + + while(1) + { + if(fread(&rx_buff[cnt], 1, 94, fp)==94) + { + if(rx_buff[0]=='A') + //cnt++; + //if(cnt==94) + { + //uint32_t id_from=(rx_buff[20]<<16) | (rx_buff[21]<<8) | rx_buff[22]; + //uint32_t id_to=(rx_buff[23]<<16) | (rx_buff[24]<<8) | rx_buff[25]; + //uint16_t frame_num=((rx_buff[1]&0x0F)<<8) | rx_buff[2]; + + //printf("%d->%d\n", id_from, id_to); + //if(!(frame_num%10)) + //printf("%d\n", frame_num); + sendto(sockfd, &rx_buff[35+1], 16, MSG_CONFIRM, (const struct sockaddr *) &servaddr, sizeof(servaddr)); + //usleep(40000); + //sendto(sockfd, "\n", 2, + // MSG_CONFIRM, (const struct sockaddr *) &servaddr, + // sizeof(servaddr)); + //memset(rx_buff, 0, 100); + //cnt=0; + } + } + + //fp = fopen("/dev/ttyS0", "wb"); + //fwrite(argv[1], 1, strlen(argv[1]), fp); + //fclose(fp); + //sleep(1); + } + + return 0; +} diff --git a/rpi/www/Untitled1.css b/rpi/www/Untitled1.css new file mode 100644 index 0000000..75327e5 --- /dev/null +++ b/rpi/www/Untitled1.css @@ -0,0 +1,108 @@ +a +{ + color: #0000FF; + text-decoration: underline; +} +a:visited +{ + color: #800080; +} +a:active +{ + color: #FF0000; +} +a:hover +{ + color: #0000FF; + text-decoration: underline; +} +input:focus, textarea:focus, select:focus +{ + outline: none; +} +.visibility-hidden +{ + visibility: hidden; +} +h1, .h1 +{ + font-family: Arial; + font-weight: bold; + font-size: 32px; + text-decoration: none; + color: #000000; + background-color: transparent; + margin: 0px 0px 0px 0px; + padding: 0px 0px 0px 0px; + display: inline; +} +h2, .h2 +{ + font-family: Arial; + font-weight: bold; + font-size: 27px; + text-decoration: none; + color: #000000; + background-color: transparent; + margin: 0px 0px 0px 0px; + padding: 0px 0px 0px 0px; + display: inline; +} +h3, .h3 +{ + font-family: Arial; + font-weight: bold; + font-size: 24px; + text-decoration: none; + color: #000000; + background-color: transparent; + margin: 0px 0px 0px 0px; + padding: 0px 0px 0px 0px; + display: inline; +} +h4, .h4 +{ + font-family: Arial; + font-weight: bold; + font-size: 21px; + font-style: italic; + text-decoration: none; + color: #000000; + background-color: transparent; + margin: 0px 0px 0px 0px; + padding: 0px 0px 0px 0px; + display: inline; +} +h5, .h5 +{ + font-family: Arial; + font-weight: bold; + font-size: 19px; + text-decoration: none; + color: #000000; + background-color: transparent; + margin: 0px 0px 0px 0px; + padding: 0px 0px 0px 0px; + display: inline; +} +h6, .h6 +{ + font-family: Arial; + font-weight: bold; + font-size: 16px; + text-decoration: none; + color: #000000; + background-color: transparent; + margin: 0px 0px 0px 0px; + padding: 0px 0px 0px 0px; + display: inline; +} +.CustomStyle +{ + font-family: "Courier New"; + font-weight: bold; + font-size: 16px; + text-decoration: none; + color: #2E74B5; + background-color: transparent; +} diff --git a/rpi/www/diag.css b/rpi/www/diag.css new file mode 100644 index 0000000..e53a33b --- /dev/null +++ b/rpi/www/diag.css @@ -0,0 +1,438 @@ +div#container +{ + width: 970px; + position: relative; + margin: 0 auto 0 auto; + text-align: left; +} +body +{ + background-color: #FFFFFF; + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 13px; + line-height: 1.1875; + margin: 0; + text-align: center; +} +#PageHeader +{ + background-color: #212121; + background-image: none; + box-sizing: border-box; +} +#wb_Text9 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text9 div +{ + text-align: center; +} +#wb_Text1 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text1 +{ + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 24px; + line-height: 27.5px; +} +#wb_Text1 p, #wb_Text1 ul +{ + margin: 0; + padding: 0; +} +#wb_Text2 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text2 +{ + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 24px; + line-height: 27.5px; +} +#wb_Text2 p, #wb_Text2 ul +{ + margin: 0; + padding: 0; +} +#wb_Text3 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text3 +{ + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 24px; + line-height: 27.5px; +} +#wb_Text3 p, #wb_Text3 ul +{ + margin: 0; + padding: 0; +} +#wb_Text5 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text5 +{ + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 24px; + line-height: 27.5px; +} +#wb_Text5 p, #wb_Text5 ul +{ + margin: 0; + padding: 0; +} +#wb_CssMenu1 +{ + border: 0px solid #C0C0C0; + background-color: transparent; + margin: 0; + text-align: right; +} +#wb_CssMenu1 ul +{ + list-style-type: none; + margin: 0; + padding: 0; + position: relative; + display: inline-block; +} +#wb_CssMenu1 li +{ + float: left; + margin: 0; + padding: 0px 0px 0px 0px; +} +#wb_CssMenu1 a +{ + display: block; + float: left; + color: #DCDCDC; + border: 0px solid #CCCCCC; + background-color: transparent; + background-image: none; + font-family: Arial; + font-weight: bold; + font-size: 13px; + font-style: normal; + text-decoration: none; + height: 40px; + line-height: 40px; + padding: 0px 5px 0px 18px; + vertical-align: middle; + text-align: center; +} +#wb_CssMenu1 li:hover a, #wb_CssMenu1 a:hover, #wb_CssMenu1 .active +{ + color: #F05F40; + background-color: transparent; + background-image: none; + border: 0px solid #222222; +} +#wb_CssMenu1 li.firstmain +{ + padding-left: 0px; +} +#wb_CssMenu1 li.lastmain +{ + padding-right: 0px; +} +#wb_CssMenu1 br +{ + clear: both; + font-size: 1px; + height: 0; + line-height: 0; +} +#wb_CssMenu2 +{ + border: 0px solid #C0C0C0; + background-color: transparent; + margin: 0; + text-align: left; +} +#wb_CssMenu2 ul +{ + list-style-type: none; + margin: 0; + padding: 0; + position: relative; + display: inline-block; +} +#wb_CssMenu2 li +{ + float: left; + margin: 0; + padding: 6px 4px 6px 0px; +} +#wb_CssMenu2 a +{ + display: block; + float: left; + color: #DCDCDC; + border: 0px solid #CCCCCC; + background-color: transparent; + background-image: none; + font-family: Arial; + font-weight: bold; + font-size: 13px; + font-style: normal; + text-decoration: none; + height: 28px; + line-height: 28px; + padding: 0px 5px 0px 5px; + vertical-align: middle; + text-align: center; +} +#wb_CssMenu2 li:hover a, #wb_CssMenu2 a:hover +{ + color: #F05F40; + background-color: transparent; + background-image: none; + border: 0px solid #2E6DA4; +} +#wb_CssMenu2 li.firstmain +{ + padding-left: 6px; +} +#wb_CssMenu2 li.lastmain +{ + padding-right: 6px; +} +#wb_CssMenu2 br +{ + clear: both; + font-size: 1px; + height: 0; + line-height: 0; +} +#wb_Text4 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text4 +{ + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 24px; + line-height: 27.5px; +} +#wb_Text4 p, #wb_Text4 ul +{ + margin: 0; + padding: 0; +} +#wb_Text6 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text6 +{ + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 24px; + line-height: 27.5px; +} +#wb_Text6 p, #wb_Text6 ul +{ + margin: 0; + padding: 0; +} +#wb_Text7 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text7 +{ + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 24px; + line-height: 27.5px; +} +#wb_Text7 p, #wb_Text7 ul +{ + margin: 0; + padding: 0; +} +#wb_Text10 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text10 +{ + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 24px; + line-height: 27.5px; +} +#wb_Text10 p, #wb_Text10 ul +{ + margin: 0; + padding: 0; +} +#wb_Text8 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text8 +{ + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 24px; + line-height: 27.5px; +} +#wb_Text8 p, #wb_Text8 ul +{ + margin: 0; + padding: 0; +} +#wb_Footer +{ + clear: both; + position: fixed; + left: 0; + bottom: 0; + z-index: 7777; + table-layout: fixed; + display: table; + text-align: center; + width: 100%; + background-color: #000000; + background-image: none; + border: 0px solid #CCCCCC; + box-sizing: border-box; + margin: 0; +} +#Footer +{ + box-sizing: border-box; + padding: 15px 15px 15px 15px; + margin-right: auto; + margin-left: auto; +} +#Footer > .row +{ + margin-right: -15px; + margin-left: -15px; +} +#Footer > .row > .col-1 +{ + box-sizing: border-box; + font-size: 0px; + min-height: 1px; + padding-right: 15px; + padding-left: 15px; + position: relative; +} +#Footer +{ + width: 970px; +} +#Footer > .row > .col-1 +{ + float: left; +} +#Footer > .row > .col-1 +{ + background-color: transparent; + background-image: none; + border: 0px solid #FFFFFF; + width: 100%; + text-align: center; +} +#Footer:before, +#Footer:after, +#Footer .row:before, +#Footer .row:after +{ + display: table; + content: " "; +} +#Footer:after, +#Footer .row:after +{ + clear: both; +} +@media (max-width: 480px) +{ +#Footer +{ + width: 100%; +} +#Footer > .row > .col-1 +{ + float: none; + width: 100%; +} +} diff --git a/rpi/www/diag.html b/rpi/www/diag.html new file mode 100644 index 0000000..ac3d658 --- /dev/null +++ b/rpi/www/diag.html @@ -0,0 +1,331 @@ + + + + +M17 Diagnostics + + + + + + + + + + +
+WYSIWYG Web Builder +
+
+
+
+
+

Case

+
+

PA

+
+
+
+

Left fan SP

+
+
+
+

Right fan SP

+
+
+
+

Battery

+
+
+
+

PSU

+
+
+
+

Left fan RPM

+
+
+
+

Right fan RPM

+
+
+
+

Battery

+
+ + + + \ No newline at end of file diff --git a/rpi/www/gauge.min.js b/rpi/www/gauge.min.js new file mode 100644 index 0000000..200dadd --- /dev/null +++ b/rpi/www/gauge.min.js @@ -0,0 +1,27 @@ +/*! + * The MIT License (MIT) + * + * Copyright (c) 2016 Mykhailo Stadnyk + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * @version 2.1.5 + */ +!function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t1&&(d=1),1!==d&&(c=r(d),isFinite(c)&&!isNaN(c)&&(d=c)),t&&t(d),s0){for(a=e.toFixed(i).toString().split("."),n=r-a[0].length;o1?(r=~i.indexOf("."),~i.indexOf("-")?"-"+[t.majorTicksInt+t.majorTicksDec+2+(r?1:0)-i.length].join("0")+i.replace("-",""):[t.majorTicksInt+t.majorTicksDec+1+(r?1:0)-i.length].join("0")+i):i}function f(e){return e*Math.PI/180}function m(e,t){return{x:-e*Math.sin(t),y:e*Math.cos(t)}}function v(e,t,i,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=e.createLinearGradient(o?0:n,o?n:0,o?0:r,o?r:0);return a.addColorStop(0,t),a.addColorStop(1,i),a}function b(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return e.restore(),!0;e.save();var i=t.borderShadowWidth;return i&&(e.shadowBlur=i,e.shadowColor=t.colorBorderShadow),!0}function g(e,t){t.needleShadow&&(e.shadowOffsetX=2,e.shadowOffsetY=2,e.shadowBlur=10,e.shadowColor=t.colorNeedleShadowDown)}function p(e,t,i){return e["font"+t+"Style"]+" "+e["font"+t+"Weight"]+" "+e["font"+t+"Size"]*i+"px "+e["font"+t]}function w(e){e.shadowOffsetX=null,e.shadowOffsetY=null,e.shadowBlur=null,e.shadowColor="",e.strokeStyle=null,e.lineWidth=0,e.save()}function y(e,t,i,r){t.valueTextShadow&&(e.shadowOffsetX=i,e.shadowOffsetY=i,e.shadowBlur=r,e.shadowColor=t.colorValueTextShadow)}function k(e,t,i,r,o,n){if(t.valueBox){w(e);var a=t.valueDec?1+t.valueDec:0,l="9".repeat(Math.max.apply(null,[String(parseInt(i)).length+a].concat(t.majorTicks.map(function(e){return String(parseInt(e,10)).length+a})))),s=t.valueText||h(i,t),d=n/200,u=n/100,f=.4*u,m=1.2*u;e.font=p(t,"Value",d),y(e,t,f,m);var v=e.measureText(t.valueText?s:"-"+h(Number(l),t)).width;w(e);var b=parseFloat(t.fontValueSize)*d+f+m,g=u*parseFloat(t.valueBoxStroke),k=2*n-2*g,x=v+10*u,T=1.1*b+f+m,S=u*t.valueBoxBorderRadius,W=(parseFloat(t.valueBoxWidth)||0)/100*k;W>x&&(x=W),x>k&&(x=k);var O=r-x/2,V=o-T/2,P=o-5.75*u;if(e.beginPath(),S?c(e,O,V,x,T,S):e.rect(O,V,x,T),g){var M=e.createRadialGradient(r,P,10*u,r,P,20*u);M.addColorStop(0,t.colorValueBoxRect),M.addColorStop(1,t.colorValueBoxRectEnd),e.strokeStyle=M,e.lineWidth=g,e.stroke()}t.colorValueBoxShadow&&(e.shadowBlur=1.2*u,e.shadowColor=t.colorValueBoxShadow),t.colorValueBoxBackground&&(e.fillStyle=t.colorValueBoxBackground,e.fill()),e.closePath(),e.restore(),y(e,t,f,m),e.fillStyle=t.colorValueText,e.textAlign="center",e.textBaseline="alphabetic",e.fillText(s,O+x/2,o+T/2-b/3),e.restore()}}function x(e){var t=e.value,i=e.minValue,r=e.maxValue,o=.01*(r-i);return{normal:tr?r:t,indented:tr?r+o:t}}function T(e,t,i,r,o){i.beginPath(),i.arc(0,0,ye(e),0,2*Se,!0),i.lineWidth=t,i.strokeStyle=o?Te.linearGradient(i,r,o,e):r,i.stroke(),i.closePath()}function S(e,t){var i=be.pixelRatio;return e.maxRadius||(e.maxRadius=e.max-t.borderShadowWidth-t.borderOuterWidth*i-t.borderMiddleWidth*i-t.borderInnerWidth*i+(t.borderOuterWidth?.5:0)+(t.borderMiddleWidth?.5:0)+(t.borderInnerWidth?.5:0)),e.maxRadius}function W(e,t){var i=be.pixelRatio,r=t.borderShadowWidth*i,o=e.max-r-t.borderOuterWidth*i/2,n=o-t.borderOuterWidth*i/2-t.borderMiddleWidth*i/2+.5,a=n-t.borderMiddleWidth*i/2-t.borderInnerWidth*i/2+.5,l=S(e,t),s=void 0,d=!1;e.save(),t.borderOuterWidth&&(d=Te.drawShadow(e,t,d),T(o,t.borderOuterWidth*i,e,t.colorBorderOuter,t.colorBorderOuterEnd)),t.borderMiddleWidth&&(d=Te.drawShadow(e,t,d),T(n,t.borderMiddleWidth*i,e,t.colorBorderMiddle,t.colorBorderMiddleEnd)),t.borderInnerWidth&&(d=Te.drawShadow(e,t,d),T(a,t.borderInnerWidth*i,e,t.colorBorderInner,t.colorBorderInnerEnd)),Te.drawShadow(e,t,d),e.beginPath(),e.arc(0,0,ye(l),0,2*Se,!0),t.colorPlateEnd?(s=e.createRadialGradient(0,0,l/2,0,0,l),s.addColorStop(0,t.colorPlate),s.addColorStop(1,t.colorPlateEnd)):s=t.colorPlate,e.fillStyle=s,e.fill(),e.closePath(),e.restore()}function O(e,t){var i=e.max*(parseFloat(t.highlightsWidth)||0)/100;if(i){var r=ye(P(e,t)-i/2),o=0,n=t.highlights.length,a=(t.maxValue-t.minValue)/t.ticksAngle;for(e.save();on?o:n,n>o,o>n?i:r):a,t>0?Te.roundRect(e,i,r,o,n,t):e.rect(i,r,o,n),e.fill(),e.closePath()}function z(e,t,i,r,o,n,a,l,s){e.beginPath(),e.lineWidth=t,e.strokeStyle=s?Te.linearGradient(e,l,s,a,!0,o):l,i>0?Te.roundRect(e,r,o,n,a,i):e.rect(r,o,n,a),e.stroke(),e.closePath()}function L(e,t,i,r,o,n){var a=be.pixelRatio;e.save();var l=t.borderRadius*a,s=o-t.borderShadowWidth-t.borderOuterWidth*a,d=s-t.borderOuterWidth*a-t.borderMiddleWidth*a,c=d-t.borderMiddleWidth*a-t.borderInnerWidth*a,h=c-t.borderInnerWidth*a,u=n-t.borderShadowWidth-t.borderOuterWidth*a,f=u-t.borderOuterWidth*a-t.borderMiddleWidth*a,m=f-t.borderMiddleWidth*a-t.borderInnerWidth*a,v=m-t.borderInnerWidth*a,b=i-(d-s)/2,g=b-(c-d)/2,p=g-(h-c)/2,w=r-(f-u)/2,y=w-(m-f)/2,k=y-(v-m)/2,x=0,T=!1;return t.borderOuterWidth&&(T=Te.drawShadow(e,t,T),z(e,t.borderOuterWidth*a,l,i+t.borderOuterWidth*a/2-x,r+t.borderOuterWidth*a/2-x,s,u,t.colorBorderOuter,t.colorBorderOuterEnd),x+=.5*a),t.borderMiddleWidth&&(T=Te.drawShadow(e,t,T),z(e,t.borderMiddleWidth*a,l-=1+2*x,b+t.borderMiddleWidth*a/2-x,w+t.borderMiddleWidth*a/2-x,d+2*x,f+2*x,t.colorBorderMiddle,t.colorBorderMiddleEnd),x+=.5*a),t.borderInnerWidth&&(T=Te.drawShadow(e,t,T),z(e,t.borderInnerWidth*a,l-=1+2*x,g+t.borderInnerWidth*a/2-x,y+t.borderInnerWidth*a/2-x,c+2*x,m+2*x,t.colorBorderInner,t.colorBorderInnerEnd),x+=.5*a),Te.drawShadow(e,t,T),D(e,l,p,k,h+2*x,v+2*x,t.colorPlate,t.colorPlateEnd),e.restore(),[p,k,h,v]}function G(e,t,i,r,o,n){var a=be.pixelRatio,l=n>=o,s=l?.85*o:n,d=l?n:o;i=l?we(i+(o-s)/2):i;var c=!!t.title,h=!!t.units,u=!!t.valueBox,f=void 0,m=void 0,v=void 0;l?(m=we(.05*d),f=we(.075*d),v=we(.11*d),c&&(d-=f,r+=f),h&&(d-=m),u&&(d-=v)):(m=f=we(.15*s),c&&(s-=f,r+=f),h&&(s-=m));var b=2*t.barStrokeWidth,g=t.barBeginCircle?we(s*t.barBeginCircle/200-b/2):0,p=we(s*t.barWidth/100-b),w=we(d*t.barLength/100-b),y=we((d-w)/2),k=we(i+(l?s/2:y+g)),x=we(r+(l?d-y-g+b/2:s/2)),T=!l||t.hasLeft&&t.hasRight?0:(t.hasRight?-1:1)*t.ticksWidth/100*s,S=l||t.hasLeft&&t.hasRight?0:(t.hasRight?-1:1)*t.ticksWidth/100*s;return e.barDimensions={isVertical:l,width:s,length:d,barWidth:p,barLength:w,strokeWidth:b,barMargin:y,radius:g,pixelRatio:a,barOffset:null,titleMargin:c?f:0,unitsMargin:h?m:0,get ticksLength(){return this.barLength-this.barOffset-this.strokeWidth},X:i+T,Y:r+S,x0:k+T,y0:x+S,baseX:i,baseY:r,ticksPadding:t.ticksPadding/100},e.barDimensions}function F(e,t,i,r,o,n,a){var l=G(e,t,r,o,n,a),s=l.isVertical,d=l.width,c=l.barWidth,h=l.barLength,u=l.strokeWidth,f=l.barMargin,m=l.radius,v=l.x0,b=l.y0,g=l.X,p=l.Y,w=h;if(e.save(),e.beginPath(),t.barBeginCircle){var y=Te.radians(s?270:0),k=Math.asin(c/2/m),x=Math.cos(k),T=Math.sin(k),S=v+(s?m*T:m*x-u/2),W=s?b-m*x:b+m*T,O=ye(s?W-b:S-v);e.barDimensions.barOffset=we(O+m);var V=s?we(v-m*T):S,P=s?W:we(b-m*T);"progress"===i&&(h=e.barDimensions.barOffset+(h-e.barDimensions.barOffset)*(Te.normalizedValue(t).normal-t.minValue)/(t.maxValue-t.minValue));var M=we(S+h-e.barDimensions.barOffset+u/2),A=we(W-h+e.barDimensions.barOffset-u/2);e.arc(v,b,m,y+k,y-k),s?(e.moveTo(S,P),e.lineTo(S,A),e.lineTo(V,A),e.lineTo(V,P)):(e.moveTo(S,P),e.lineTo(M,P),e.lineTo(M,W),e.lineTo(S,W))}else{var B=we(s?g+(d-c)/2:g+f),j=we(s?p+h+f:p+(d-c)/2);"progress"===i&&(h*=(t.value-t.minValue)/(t.maxValue-t.minValue)),s?e.rect(B,j,c,-h):e.rect(B,j,h,c)}"progress"!==i&&t.barStrokeWidth&&(e.lineWidth=u,e.strokeStyle=t.colorBarStroke,e.stroke()),"progress"!==i&&t.colorBar?(e.fillStyle=t.colorBarEnd?Te.linearGradient(e,t.colorBar,t.colorBarEnd,h,s,s?p:g):t.colorBar,e.fill()):"progress"===i&&t.colorBarProgress&&(e.fillStyle=t.colorBarProgressEnd?Te.linearGradient(e,t.colorBarProgress,t.colorBarProgressEnd,w,s,s?p:g):t.colorBarProgress,e.fill()),e.closePath(),t.barBeginCircle&&(e.barDimensions.radius+=u),e.barDimensions.barWidth+=u,e.barDimensions.barLength+=u}function X(e,t,i,r,o,n){F(e,t,"",i,r,o,n)}function Y(e,t){return t.needleSide!==e||t.tickSide!==e||t.numberSide!==e}function U(e,t,i,r,o,n){t.barProgress&&F(e,t,"progress",i,r,o,n)}function q(e,t){var i=e.barDimensions,r=i.isVertical,o=i.width,n=i.length,a=i.barWidth,l=i.barOffset,s=i.barMargin,d=i.X,c=i.Y,h=i.ticksLength,u=i.ticksPadding,f=o*(parseFloat(t.highlightsWidth)||0)/100;if(t.highlights&&f){var m="right"!==t.tickSide,v="left"!==t.tickSide,b=0,g=t.highlights.length,p=(o-a)/2,w=t.maxValue-t.minValue,y=we(r?d+p:d+s+l),k=f,x=r?c+n-s-l:c+p,T=we((t.ticksWidth/100+u)*o)+(f-t.ticksWidth/100*o),S=we(a+u*o);for(e.save();bn&&(d*=-1),e.moveTo(i-h,r),e.lineTo(i+h,r),e.lineTo(i+h,r+d),e.lineTo(i,n),e.lineTo(i-h,r+d),e.lineTo(i-h,r)):(i>o&&(d*=-1),e.moveTo(i,r-h),e.lineTo(i,r+h),e.lineTo(i+d,r+h),e.lineTo(o,r),e.lineTo(i+d,r-h),e.lineTo(i,r-h)),e.fill(),e.closePath()}function ae(e,t,i,r,o,n,a){var l=(parseFloat(t.fontValueSize)||0)*n/200,s=(.11*a-l)/2;e.barDimensions.isVertical&&Te.drawValueBox(e,t,i,r+n/2,o+a-l-s,n)}var le=function(){function e(e,t){var i=[],r=!0,o=!1,n=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){o=!0,n=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw n}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),se=function e(t,i,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){var n=Object.getPrototypeOf(t);return null===n?void 0:e(n,i,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},de=function e(t,i,r,o){var n=Object.getOwnPropertyDescriptor(t,i);if(void 0===n){var a=Object.getPrototypeOf(t);null!==a&&e(a,i,r,o)}else if("value"in n&&n.writable)n.value=r;else{var l=n.set;void 0!==l&&l.call(o,r)}return r},ce=function(){function e(e,t){for(var i=0;i>>0;if(0===o)return-1;var n=+t||0;if(Math.abs(n)===1/0&&(n=0),n>=o)return-1;for(i=Math.max(n>=0?n:o-Math.abs(n),0);i>>0,r=arguments[1],o=r>>0,n=o<0?Math.max(i+o,0):Math.min(o,i),a=arguments[2],l=void 0===a?i:a>>0,s=l<0?Math.max(i+l,0):Math.min(l,i);n1?r-1:0),n=1;n1?t-1:0),r=1;r=(7-4*t)/11)return-Math.pow((11-6*t-11*e)/4,2)+Math.pow(i,2)},elastic:function(e){return 1-fe.delastic(1-e)},delastic:function(e){return Math.pow(2,10*(e-1))*Math.cos(20*Math.PI*1.5/3*e)}},me=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"linear",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(o(this,e),this.duration=i,this.rule=t,this.draw=r,this.end=n,"function"!=typeof this.draw)throw new TypeError("Invalid animation draw callback:",r);if("function"!=typeof this.end)throw new TypeError("Invalid animation end callback:",n)}return ce(e,[{key:"animate",value:function(e,t){var i=this;this.frame&&this.cancel();var r=window.performance&&window.performance.now?window.performance.now():n("animationStartTime")||Date.now();e=e||this.draw,t=t||this.end,this.draw=e,this.end=t,this.frame=ue(function(o){return a(o,e,r,fe[i.rule]||i.rule,i.duration,t,i)})}},{key:"cancel",value:function(){if(this.frame){(n("cancelAnimationFrame")||function(e){})(this.frame),this.frame=null}}},{key:"destroy",value:function(){this.cancel(),this.draw=null,this.end=null}}]),e}();me.rules=fe;var ve=function(){function t(i,r,n){o(this,t),this.options=i,this.element=r.toLowerCase(),this.type=t.toDashed(n),this.Type=e[n],this.mutationsObserved=!1,this.isObservable=!!window.MutationObserver,window.GAUGES_NO_AUTO_INIT||t.domReady(this.traverse.bind(this))}return ce(t,[{key:"isValidNode",value:function(e){return!(!e.tagName||e.tagName.toLowerCase()!==this.element||e.getAttribute("data-type")!==this.type)}},{key:"traverse",value:function(){for(var e=document.getElementsByTagName(this.element),t=0,i=e.length;t1&&void 0!==arguments[1])||arguments[1],i=e.split(/-/),r=0,o=i.length,n="";r1&&void 0!==arguments[1]?arguments[1]:0;return e=parseFloat(e),!isNaN(e)&&isFinite(e)||(e=parseFloat(t)||0),e}},{key:"mod",value:function(e,t){return(e%t+t)%t}},{key:"version",get:function(){return pe}}]),n}(he);void 0!==e&&(e.BaseGauge=xe,e.gauges=(window.document||{}).gauges=ke);var Te={roundRect:c,padValue:h,formatMajorTickNumber:u,radians:f,radialPoint:m,linearGradient:v,drawNeedleShadow:g,drawValueBox:k,verifyError:s,prepareTicks:d,drawShadow:b,font:p,normalizedValue:x},Se=Math.PI,We=Se/2,Oe=Object.assign({},ge,{ticksAngle:270,startAngle:45,colorNeedleCircleOuter:"#f0f0f0",colorNeedleCircleOuterEnd:"#ccc",colorNeedleCircleInner:"#e8e8e8",colorNeedleCircleInnerEnd:"#f5f5f5",needleCircleSize:10,needleCircleInner:!0,needleCircleOuter:!0,needleStart:20,animationTarget:"needle",useMinPath:!1,barWidth:0}),Ve=function(e){function t(e){return o(this,t),e=Object.assign({},Oe,e||{}),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,t.configure(e)))}return r(t,e),ce(t,[{key:"draw",value:function(){try{var e=this.canvas,i=[-e.drawX,-e.drawY,e.drawWidth,e.drawHeight],r=i[0],o=i[1],n=i[2],a=i[3],l=this.options;if("needle"===l.animationTarget){if(!e.elementClone.initialized){var s=e.contextClone;s.clearRect(r,o,n,a),s.save(),this.emit("beforePlate"),W(s,l),this.emit("beforeHighlights"),O(s,l),this.emit("beforeMinorTicks"),V(s,l),this.emit("beforeMajorTicks"),M(s,l),this.emit("beforeNumbers"),j(s,l),this.emit("beforeTitle"),C(s,l),this.emit("beforeUnits"),N(s,l),e.elementClone.initialized=!0}this.canvas.commit(),e.context.clearRect(r,o,n,a),e.context.save(),e.context.drawImage(e.elementClone,r,o,n,a),e.context.save(),this.emit("beforeProgressBar"),R(e.context,l),this.emit("beforeValueBox"),_(e.context,l,I(this)),this.emit("beforeNeedle"),E(e.context,l)}else{var d=-Te.radians((l.value-l.minValue)/(l.maxValue-l.minValue)*l.ticksAngle);if(e.context.clearRect(r,o,n,a),e.context.save(),this.emit("beforePlate"),W(e.context,l),e.context.rotate(d),this.emit("beforeHighlights"),O(e.context,l),this.emit("beforeMinorTicks"),V(e.context,l),this.emit("beforeMajorTicks"),M(e.context,l),this.emit("beforeNumbers"),j(e.context,l),this.emit("beforeProgressBar"),R(e.context,l),e.context.rotate(-d),e.context.save(),!e.elementClone.initialized){var c=e.contextClone;c.clearRect(r,o,n,a),c.save(),this.emit("beforeTitle"),C(c,l),this.emit("beforeUnits"),N(c,l),this.emit("beforeNeedle"),E(c,l),e.elementClone.initialized=!0}e.context.drawImage(e.elementClone,r,o,n,a)}this.emit("beforeValueBox"),_(e.context,l,I(this)),se(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"draw",this).call(this)}catch(e){Te.verifyError(e)}return this}},{key:"value",set:function(e){e=xe.ensureValue(e,this.options.minValue),this.options.animation&&360===this.options.ticksAngle&&this.options.useMinPath&&(this._value=e,e=this.options.value+((e-this.options.value)%360+540)%360-180),de(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",e,this)},get:function(){return se(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this)}}],[{key:"configure",value:function(e){return e.barWidth>50&&(e.barWidth=50),isNaN(e.startAngle)&&(e.startAngle=45),isNaN(e.ticksAngle)&&(e.ticksAngle=270),e.ticksAngle>360&&(e.ticksAngle=360),e.ticksAngle<0&&(e.ticksAngle=0),e.startAngle<0&&(e.startAngle=0),e.startAngle>360&&(e.startAngle=360),e}}]),t}(xe);void 0!==e&&(e.RadialGauge=Ve),xe.initialize("RadialGauge",Oe);var Pe=Object.assign({},ge,{borderRadius:0,barBeginCircle:30,colorBarEnd:"",colorBarProgressEnd:"",needleWidth:6,tickSide:"both",needleSide:"both",numberSide:"both",ticksWidth:10,ticksWidthMinor:5,ticksPadding:5,barLength:85,fontTitleSize:26,highlightsWidth:10}),Me=function(e){function n(e){return o(this,n),e=Object.assign({},Pe,e||{}),i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,n.configure(e)))}return r(n,e),ce(n,[{key:"draw",value:function(){try{var e=this.canvas,i=[-e.drawX,-e.drawY,e.drawWidth,e.drawHeight],r=i[0],o=i[1],a=i[2],l=i[3],s=this.options;if(!e.elementClone.initialized){var d=e.contextClone;d.clearRect(r,o,a,l),d.save(),this.emit("beforePlate"),this.drawBox=L(d,s,r,o,a,l),this.emit("beforeBar"),X.apply(void 0,[d,s].concat(t(this.drawBox))),e.context.barDimensions=d.barDimensions,this.emit("beforeHighlights"),q(d,s),this.emit("beforeMinorTicks"),K(d,s),this.emit("beforeMajorTicks"),$(d,s),this.emit("beforeNumbers"),Q(d,s),this.emit("beforeTitle"),ee(d,s),this.emit("beforeUnits"),te(d,s),e.elementClone.initialized=!0}this.canvas.commit(),e.context.clearRect(r,o,a,l),e.context.save(),e.context.drawImage(e.elementClone,r,o,a,l),e.context.save(),this.emit("beforeProgressBar"),U.apply(void 0,[e.context,s].concat(t(this.drawBox))),this.emit("beforeNeedle"),ie(e.context,s),this.emit("beforeValueBox"),ae.apply(void 0,[e.context,s,s.animatedValue?this.options.value:this.value].concat(t(this.drawBox))),se(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"draw",this).call(this)}catch(e){Te.verifyError(e)}return this}}],[{key:"configure",value:function(e){return e.barStrokeWidth>=e.barWidth&&(e.barStrokeWidth=we(e.barWidth/2)),e.hasLeft=Y("right",e),e.hasRight=Y("left",e),e.value>e.maxValue&&(e.value=e.maxValue),e.valueuP5r_S6&Sf!s@Flicvm^u)pZDa2#Vj~4OdLh%Al^1_6s;D7m;}KJBo6{< zSw)CJMvc>MHR^(bRt|G9u9jxr8w@u1;2zZKDOG=6s{U2ae87IE_5ss4&jyz^n;9S4 zV!Sr|mbQR-!wmu=a8<(tX@J>?hRpWaaxG35!`0~W;L2pddRN8OiGrIdu_Lq%)6l1c z8oKC&t210?T~>hy)WcHurWLG;@*ri71&^z3hN75rK2%lbBrVI*hdK8nz^l;}^TD)$ zSsL(A@Br@mSOmgM5%=pu8S;o90~54{oLB$lw)EGd%lO)4!D?sPI8q{nppQg2;he{1 zn#fQDBc&p4%z5%UaYbE??#I_5uMt;Cou);AK_9Asw(IC(oR~nwC4r+e7=DJoUg)yQ zL&z2k$EwHi(Du-eJ@ysA)FT(rD^clg!hM>KGeQjbxcfc$#kKYnQ6<=1ZfmgA9Js$4ko)*+io77XR~$-r=8{B zI^iUBbpii%v)Q~x_-u1--aVM8OWc_5PQCj|OLPcJlL6;lyZ7?3Bc_ zmr>=|B+*J;^vbMmd`5#bGWz z15FtHp90Q4T41l?AJl(!(ccQDSSetOMwSJtjKc#l!_<%gs~cW26n;T5r;Gy#htCZK zCF@cxT)l&|5L?RBf~OPV591fLZ3n7fhbU79~(kfO4}b6Nsp-OWAN?%h|9H;-OW=GT(8Z3R=YJkN1*d{7GS_6YU9N_?IBfZ2;9^5-dOmv4K( z`X;H1t-ya0?dv7S4}15Q>5^j$CbFKC9t#du$&{YDqm9|esla1JxMC!k4>n_^&=U@6 zyw86m@JIiK1^n(FObS^eK7*ILLd}o3yaj+7?YXa%rVDWDxqTpyV4sqNk&6AzzZ5Ru z*U7?sY`ag_9QRCs@LSMvZKq)2FEbT1Y_}`a+MtMGm)S)IXE8hD3Rs3j5>CI!S1Ha{@EWnzg2c5< z^7VAvrSsm8u=J6n*%G)4_ma|(?aa(Fo{hRIpsOud?8D3(NWx)*O%|U^dQ}C8_jW;> zjB){E8tS{+7yJFu?`oGoyH($59JqiBvgl?a&o2SHWoL~~&iC1^&KJ5>;WO6zM8N+$M>)cTnKEAyJR#ZM^ z)*aX`P0}v&K(D9pl8SGx<+gxFNWLzydKsHIq`xju+;CGmVgX|u^i&41Pv;)6oNte& zyb=3={B-KVv>x*dOg_DEpPmauTGZ6v6u{YS6wA^LBe$NUE^eZo*Q>yb8KZMeliX4# zio8L-Vo@yKdK#|e2LJu@%6&4NfAfSCM=515gc_T&lbjFbprjZ@T{U7F$GQ=N .row +{ + margin-right: -15px; + margin-left: -15px; +} +#Footer > .row > .col-1 +{ + box-sizing: border-box; + font-size: 0px; + min-height: 1px; + padding-right: 15px; + padding-left: 15px; + position: relative; +} +#Footer +{ + width: 970px; +} +#Footer > .row > .col-1 +{ + float: left; +} +#Footer > .row > .col-1 +{ + background-color: transparent; + background-image: none; + border: 0px solid #FFFFFF; + width: 100%; + text-align: center; +} +#Footer:before, +#Footer:after, +#Footer .row:before, +#Footer .row:after +{ + display: table; + content: " "; +} +#Footer:after, +#Footer .row:after +{ + clear: both; +} +@media (max-width: 480px) +{ +#Footer +{ + width: 100%; +} +#Footer > .row > .col-1 +{ + float: none; + width: 100%; +} +} diff --git a/rpi/www/index.html b/rpi/www/index.html new file mode 100644 index 0000000..112982f --- /dev/null +++ b/rpi/www/index.html @@ -0,0 +1,95 @@ + + + + +M17 RMP + + + + + + + + + + +
+WYSIWYG Web Builder +
+

Welcome to the management page!

+

Use the menu above to navigate.

+
+ + + + \ No newline at end of file diff --git a/rpi/www/info.css b/rpi/www/info.css new file mode 100644 index 0000000..48e769c --- /dev/null +++ b/rpi/www/info.css @@ -0,0 +1,255 @@ +body +{ + background-color: #FFFFFF; + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 13px; + line-height: 1.1875; + margin: 0; + padding: 0; +} +#PageHeader +{ + background-color: #212121; + background-image: none; + box-sizing: border-box; +} +#wb_CssMenu1 +{ + border: 0px solid #C0C0C0; + background-color: transparent; + margin: 0; + text-align: right; +} +#wb_CssMenu1 ul +{ + list-style-type: none; + margin: 0; + padding: 0; + position: relative; + display: inline-block; +} +#wb_CssMenu1 li +{ + float: left; + margin: 0; + padding: 0px 0px 0px 0px; +} +#wb_CssMenu1 a +{ + display: block; + float: left; + color: #DCDCDC; + border: 0px solid #CCCCCC; + background-color: transparent; + background-image: none; + font-family: Arial; + font-weight: bold; + font-size: 13px; + font-style: normal; + text-decoration: none; + height: 40px; + line-height: 40px; + padding: 0px 5px 0px 18px; + vertical-align: middle; + text-align: center; +} +#wb_CssMenu1 li:hover a, #wb_CssMenu1 a:hover, #wb_CssMenu1 .active +{ + color: #F05F40; + background-color: transparent; + background-image: none; + border: 0px solid #222222; +} +#wb_CssMenu1 li.firstmain +{ + padding-left: 0px; +} +#wb_CssMenu1 li.lastmain +{ + padding-right: 0px; +} +#wb_CssMenu1 br +{ + clear: both; + font-size: 1px; + height: 0; + line-height: 0; +} +#wb_CssMenu2 +{ + border: 0px solid #C0C0C0; + background-color: transparent; + margin: 0; + text-align: left; +} +#wb_CssMenu2 ul +{ + list-style-type: none; + margin: 0; + padding: 0; + position: relative; + display: inline-block; +} +#wb_CssMenu2 li +{ + float: left; + margin: 0; + padding: 6px 4px 6px 0px; +} +#wb_CssMenu2 a +{ + display: block; + float: left; + color: #DCDCDC; + border: 0px solid #CCCCCC; + background-color: transparent; + background-image: none; + font-family: Arial; + font-weight: bold; + font-size: 13px; + font-style: normal; + text-decoration: none; + height: 28px; + line-height: 28px; + padding: 0px 5px 0px 5px; + vertical-align: middle; + text-align: center; +} +#wb_CssMenu2 li:hover a, #wb_CssMenu2 a:hover +{ + color: #F05F40; + background-color: transparent; + background-image: none; + border: 0px solid #2E6DA4; +} +#wb_CssMenu2 li.firstmain +{ + padding-left: 6px; +} +#wb_CssMenu2 li.lastmain +{ + padding-right: 6px; +} +#wb_CssMenu2 br +{ + clear: both; + font-size: 1px; + height: 0; + line-height: 0; +} +#wb_Text9 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text9 div +{ + text-align: center; +} +#wb_Text1 +{ + background-color: transparent; + background-image: none; + border: 0px solid #000000; + padding: 0; + margin: 0; + text-align: center; +} +#wb_Text1 +{ + color: #000000; + font-family: Arial; + font-weight: normal; + font-size: 13px; + line-height: 16px; +} +#wb_Text1 p, #wb_Text1 ul +{ + margin: 0; + padding: 0; +} +#wb_Footer +{ + clear: both; + position: fixed; + left: 0; + bottom: 0; + z-index: 7777; + table-layout: fixed; + display: table; + text-align: center; + width: 100%; + background-color: #000000; + background-image: none; + border: 0px solid #CCCCCC; + box-sizing: border-box; + margin: 0; +} +#Footer +{ + box-sizing: border-box; + padding: 15px 15px 15px 15px; + margin-right: auto; + margin-left: auto; +} +#Footer > .row +{ + margin-right: -15px; + margin-left: -15px; +} +#Footer > .row > .col-1 +{ + box-sizing: border-box; + font-size: 0px; + min-height: 1px; + padding-right: 15px; + padding-left: 15px; + position: relative; +} +#Footer +{ + width: 970px; +} +#Footer > .row > .col-1 +{ + float: left; +} +#Footer > .row > .col-1 +{ + background-color: transparent; + background-image: none; + border: 0px solid #FFFFFF; + width: 100%; + text-align: center; +} +#Footer:before, +#Footer:after, +#Footer .row:before, +#Footer .row:after +{ + display: table; + content: " "; +} +#Footer:after, +#Footer .row:after +{ + clear: both; +} +@media (max-width: 480px) +{ +#Footer +{ + width: 100%; +} +#Footer > .row > .col-1 +{ + float: none; + width: 100%; +} +} diff --git a/rpi/www/info.html b/rpi/www/info.html new file mode 100644 index 0000000..a11bb4e --- /dev/null +++ b/rpi/www/info.html @@ -0,0 +1,92 @@ + + + + +Info + + + + + + + + + + + +WYSIWYG Web Builder +
+

Firmware version: 27092019

+ + + \ No newline at end of file diff --git a/rpi/www/jquery-3.4.1.min.js b/rpi/www/jquery-3.4.1.min.js new file mode 100644 index 0000000..a1c07fd --- /dev/null +++ b/rpi/www/jquery-3.4.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0 .row +{ + margin-right: -15px; + margin-left: -15px; +} +#Footer > .row > .col-1 +{ + box-sizing: border-box; + font-size: 0px; + min-height: 1px; + padding-right: 15px; + padding-left: 15px; + position: relative; +} +#Footer +{ + width: 970px; +} +#Footer > .row > .col-1 +{ + float: left; +} +#Footer > .row > .col-1 +{ + background-color: transparent; + background-image: none; + border: 0px solid #FFFFFF; + width: 100%; + text-align: center; +} +#Footer:before, +#Footer:after, +#Footer .row:before, +#Footer .row:after +{ + display: table; + content: " "; +} +#Footer:after, +#Footer .row:after +{ + clear: both; +} +@media (max-width: 480px) +{ +#Footer +{ + width: 100%; +} +#Footer > .row > .col-1 +{ + float: none; + width: 100%; +} +} diff --git a/rpi/www/log.html b/rpi/www/log.html new file mode 100644 index 0000000..c170f75 --- /dev/null +++ b/rpi/www/log.html @@ -0,0 +1,93 @@ + + + + +Log + + + + + + + + + + + +WYSIWYG Web Builder +
+ +
+ + + \ No newline at end of file diff --git a/rpi/www/scrollspy.min.js b/rpi/www/scrollspy.min.js new file mode 100644 index 0000000..a3f4240 --- /dev/null +++ b/rpi/www/scrollspy.min.js @@ -0,0 +1,12 @@ +/* ======================================================================== + * Bootstrap: scrollspy.js v3.3.5 + * http://getbootstrap.com/javascript/#scrollspy + * ======================================================================== + * Copyright 2011-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * ======================================================================== */ ++function(b){function c(a,h){this.$body=b(document.body);this.$scrollElement=b(a).is(document.body)?b(window):b(a);this.options=b.extend({},c.DEFAULTS,h);this.selector=(this.options.target||"")+" a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.wb.scrollspy",b.proxy(this.process,this));this.refresh();this.process()}function l(a){return this.each(function(){var h=b(this),g=h.data("wb.scrollspy"),f="object"==typeof a&&a;g||h.data("wb.scrollspy", +g=new c(this,f));if("string"==typeof a)g[a]()})}c.VERSION="3.3.5";c.DEFAULTS={offset:10};c.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};c.prototype.refresh=function(){var a=this,c="offset",g=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();b.isWindow(this.$scrollElement[0])||(c="position",g=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var a= +b(this),a=a.data("target")||a.attr("href"),d=/^#./.test(a)&&b(a);return d&&d.length&&d.is(":visible")&&[[d[c]().top+g,a]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){a.offsets.push(this[0]);a.targets.push(this[1])})};c.prototype.process=function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.getScrollHeight(),c=this.options.offset+b-this.$scrollElement.height(),f=this.offsets,d=this.targets,k=this.activeTarget,e;this.scrollHeight!=b&&this.refresh();if(a>=c)return k!= +(e=d[d.length-1])&&this.activate(e);if(k&&a=f[e]&&(void 0===f[e+1]||a .row +{ + margin-right: -15px; + margin-left: -15px; +} +#Footer > .row > .col-1 +{ + box-sizing: border-box; + font-size: 0px; + min-height: 1px; + padding-right: 15px; + padding-left: 15px; + position: relative; +} +#Footer +{ + width: 970px; +} +#Footer > .row > .col-1 +{ + float: left; +} +#Footer > .row > .col-1 +{ + background-color: transparent; + background-image: none; + border: 0px solid #FFFFFF; + width: 100%; + text-align: center; +} +#Footer:before, +#Footer:after, +#Footer .row:before, +#Footer .row:after +{ + display: table; + content: " "; +} +#Footer:after, +#Footer .row:after +{ + clear: both; +} +@media (max-width: 480px) +{ +#Footer +{ + width: 100%; +} +#Footer > .row > .col-1 +{ + float: none; + width: 100%; +} +} diff --git a/rpi/www/settings.html b/rpi/www/settings.html new file mode 100644 index 0000000..d6a6451 --- /dev/null +++ b/rpi/www/settings.html @@ -0,0 +1,94 @@ + + + + +M17 Config + + + + + + + + + + +
+WYSIWYG Web Builder +
+

Pusto!

+
+ + + + \ No newline at end of file diff --git a/rpi/www/vals.txt b/rpi/www/vals.txt new file mode 100644 index 0000000..3c480db --- /dev/null +++ b/rpi/www/vals.txt @@ -0,0 +1,9 @@ +25.562 +25.5 +20 +20 +13.2 +14.4 +405 +405 +0 \ No newline at end of file