Browse Source

Added button to clear weblog

rfm69
Xose Pérez 6 years ago
parent
commit
2e872525f3
6 changed files with 2791 additions and 2788 deletions
  1. +3
    -3
      README.md
  2. BIN
      code/espurna/data/index.html.gz
  3. +2777
    -2775
      code/espurna/static/index.html.gz.h
  4. +2
    -0
      code/html/custom.css
  5. +6
    -8
      code/html/custom.js
  6. +3
    -2
      code/html/index.html

+ 3
- 3
README.md View File

@ -4,9 +4,9 @@ ESPurna ("spark" in Catalan) is a custom firmware for ESP8285/ESP8266 based smar
It uses the Arduino Core for ESP8266 framework and a number of 3rd party libraries. It uses the Arduino Core for ESP8266 framework and a number of 3rd party libraries.
[![version](https://img.shields.io/badge/version-1.12.5a-brightgreen.svg)](CHANGELOG.md) [![version](https://img.shields.io/badge/version-1.12.5a-brightgreen.svg)](CHANGELOG.md)
![branch](https://img.shields.io/badge/branch-wysiwyng-pwm-dimmer-orange.svg)
[![travis](https://travis-ci.org/xoseperez/espurna.svg?branch=wysiwyng-pwm-dimmer)](https://travis-ci.org/xoseperez/espurna)
[![codacy](https://img.shields.io/codacy/grade/c9496e25cf07434cba786b462cb15f49/wysiwyng-pwm-dimmer.svg)](https://www.codacy.com/app/xoseperez/espurna/dashboard)
![branch](https://img.shields.io/badge/branch-dev-orange.svg)
[![travis](https://travis-ci.org/xoseperez/espurna.svg?branch=dev)](https://travis-ci.org/xoseperez/espurna)
[![codacy](https://img.shields.io/codacy/grade/c9496e25cf07434cba786b462cb15f49/dev.svg)](https://www.codacy.com/app/xoseperez/espurna/dashboard)
[![donate](https://img.shields.io/badge/donate-PayPal-blue.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=xose%2eperez%40gmail%2ecom&lc=US&no_note=0&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHostedGuest) [![donate](https://img.shields.io/badge/donate-PayPal-blue.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=xose%2eperez%40gmail%2ecom&lc=US&no_note=0&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHostedGuest)
[![twitter](https://img.shields.io/twitter/follow/xoseperez.svg?style=social)](https://twitter.com/intent/follow?screen_name=xoseperez) [![twitter](https://img.shields.io/twitter/follow/xoseperez.svg?style=social)](https://twitter.com/intent/follow?screen_name=xoseperez)


BIN
code/espurna/data/index.html.gz View File


+ 2777
- 2775
code/espurna/static/index.html.gz.h
File diff suppressed because it is too large
View File


+ 2
- 0
code/html/custom.css View File

@ -156,6 +156,7 @@ div.state {
.button-rfb-forget, .button-rfb-forget,
.button-del-network, .button-del-network,
.button-del-schedule, .button-del-schedule,
.button-dbg-clear,
.button-upgrade, .button-upgrade,
.button-settings-factory { .button-settings-factory {
background: rgb(192, 0, 0); /* redish */ background: rgb(192, 0, 0); /* redish */
@ -307,4 +308,5 @@ span.slider {
#weblog { #weblog {
height: 400px; height: 400px;
margin-bottom: 10px;
} }

+ 6
- 8
code/html/custom.js View File

@ -542,6 +542,11 @@ function doDebugCommand() {
return false; return false;
} }
function doDebugClear() {
$("#weblog").text("");
return false;
}
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Visualization // Visualization
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
@ -1006,14 +1011,6 @@ function processData(data) {
useWhite = value; useWhite = value;
} }
if ("colorVisible" === key) {
$(".button-add-light-schedule").show();
}
if ("relayVisible" === key) {
$(".button-add-switch-schedule").show();
}
// --------------------------------------------------------------------- // ---------------------------------------------------------------------
// Sensors & Magnitudes // Sensors & Magnitudes
// --------------------------------------------------------------------- // ---------------------------------------------------------------------
@ -1329,6 +1326,7 @@ $(function() {
$(".button-ha-config").on("click", doHAConfig); $(".button-ha-config").on("click", doHAConfig);
$(".button-dbgcmd").on("click", doDebugCommand); $(".button-dbgcmd").on("click", doDebugCommand);
$("input[name='dbgcmd']").enterKey(doDebugCommand); $("input[name='dbgcmd']").enterKey(doDebugCommand);
$(".button-dbg-clear").on("click", doDebugClear);
$(".button-settings-backup").on("click", doBackup); $(".button-settings-backup").on("click", doBackup);
$(".button-settings-restore").on("click", doRestore); $(".button-settings-restore").on("click", doRestore);
$(".button-settings-factory").on("click", doFactoryReset); $(".button-settings-factory").on("click", doFactoryReset);


+ 3
- 2
code/html/index.html View File

@ -605,8 +605,8 @@
<div id="schedules"></div> <div id="schedules"></div>
<button type="button" class="pure-button button-add-switch-schedule">Add switch schedule</button>
<button type="button" class="pure-button button-add-light-schedule">Add channel schedule</button>
<button type="button" class="pure-button button-add-switch-schedule module module-relay">Add switch schedule</button>
<button type="button" class="pure-button button-add-light-schedule module module-color">Add channel schedule</button>
</fieldset> </fieldset>
@ -976,6 +976,7 @@
<div class="pure-g"> <div class="pure-g">
<textarea class="pure-u-1 terminal" id="weblog" name="weblog" wrap="off" readonly></textarea> <textarea class="pure-u-1 terminal" id="weblog" name="weblog" wrap="off" readonly></textarea>
<div class=" pure-u-1-4 pure-u-lg-1-4"><button class="pure-button button-dbg-clear pure-u-23-24">Clear</button></div>
</div> </div>
</fieldset> </fieldset>


Loading…
Cancel
Save