Changeset - 1d9a0a304dc7
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 20 months ago 2023-06-04 01:31:35
drewp@bigasterisk.com
rm dead features
2 files changed with 1 insertions and 11 deletions:
0 comments (0 inline, 0 general)
light9/ascoltami/Light9AscoltamiUi.ts
Show inline comments
 
@@ -249,19 +249,12 @@ export class Light9AscoltamiUi extends L
 
    this.times = config.times;
 
    document.title = document.title.replace("{{host}}", config.host);
 
    try {
 
      const h1 = document.querySelector("h1")!;
 
      h1.innerText = h1.innerText.replace("{{host}}", config.host);
 
    } catch (e) {}
 
    // byId("nav").innerText = navigator.userAgent;
 
    var updateFreq = navigator.userAgent.indexOf("Linux") != -1 ? 10 : 2;
 
    // if (navigator.userAgent.match(/Windows NT/)) {
 
    //   // helper laptop
 
    //   updateFreq = 10;
 
    // }
 
    byId("updateReq").innerText = "" + updateFreq;
 

	
 
    (window as any).finishOldStyleSetup(this.times, this.onOldStyleUpdate.bind(this));
 
  }
 

	
 
  onOldStyleUpdate(data: TimingUpdate) {
 
    this.nextText = data.next;
light9/ascoltami/index.html
Show inline comments
 
@@ -65,16 +65,13 @@
 
              <strong>Until autostop:</strong>
 
              <span id="leftAutoStopTime"></span>
 
            </td>
 
          </tr>
 
          <tr>
 
            <td colspan="3">
 
              <strong>Update freq:</strong> requested
 
              <span id="updateReq"></span>, actual
 
              <span id="updateActual"></span> <strong>States:</strong>
 
              <span id="states"></span>
 
               <span id="states"></span>
 
            </td>
 
          </tr>
 
        </table>
 
      </div>
 

	
 
      <hr />
0 comments (0 inline, 0 general)