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
 
@@ -243,31 +243,24 @@ export class Light9AscoltamiUi extends L
 
  }
 

	
 
  async musicSetup() {
 
    // shoveled over from the vanillajs version
 
    const config = await (await fetch("api/config")).json();
 
    this.show = new NamedNode(config.show);
 
    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;
 
    this.isPlaying = data.playing;
 
    this.currentDuration = data.duration;
 
    this.song = new NamedNode(data.song);
 
    this.overviewZoom = { duration: data.duration, t1: 0, t2: data.duration };
 
    const t1 = data.t - 2,
 
      t2 = data.t + 20;
light9/ascoltami/index.html
Show inline comments
 
@@ -59,28 +59,25 @@
 
            </td>
 
          </tr>
 
          <tr>
 
            <td><strong>Time:</strong> <span id="currentTime"></span></td>
 
            <td><strong>Left:</strong> <span id="leftTime"></span></td>
 
            <td>
 
              <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 />
 
      <light9-ascoltami-ui></light9-ascoltami-ui>
 
      <p><a href="">reload</a></p>
 
    </div>
 
    <script type="module" src="../ascoltami/main.ts"></script>
 
  </body>
 
</html>
0 comments (0 inline, 0 general)