Changeset - 7f30a35f3bf5
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 20 months ago 2023-06-04 00:54:58
drewp@bigasterisk.com
asco cleanup
2 files changed with 8 insertions and 9 deletions:
0 comments (0 inline, 0 general)
light9/ascoltami/Light9AscoltamiUi.ts
Show inline comments
 
@@ -249,18 +249,18 @@ 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;
 
    // byId("nav").innerText = navigator.userAgent;
 
    var updateFreq = navigator.userAgent.indexOf("Linux") != -1 ? 10 : 2;
 
    if (navigator.userAgent.match(/Windows NT/)) {
 
      // helper laptop
 
      updateFreq = 10;
 
    }
 
    // 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) {
light9/ascoltami/index.html
Show inline comments
 
@@ -8,13 +8,13 @@
 
        min-width: 5em;
 
      }
 
      .song-name {
 
        padding-left: 0.4em;
 
      }
 
      .dimStalled #currentTime {
 
        font-size: 40px;
 
        font-size: 20px;
 
        background: green;
 
        color: black;
 
        padding: 3px;
 
      }
 
      .dimStalled {
 
        font-size: 90%;
 
@@ -24,13 +24,13 @@
 
        padding: 0;
 
        overflow: hidden;
 
        min-height: 100vh;
 
      }
 
      #page {
 
        width: 100%;
 
        height: 90vh; /* my phone was losing the bottom :( */
 
        height: 100vh; /* my phone was losing the bottom :( */
 
        display: flex;
 
        flex-direction: column;
 
      }
 
      #page > div,
 
      #page > p {
 
        flex: 0 1 auto;
 
@@ -44,14 +44,14 @@
 
      name="viewport"
 
      content="user-scalable=no, width=device-width, initial-scale=.7"
 
    />
 
    <script type="module" src="../ascoltami/Light9AscoltamiUi"></script>
 
  </head>
 
  <body>
 
    <h1>ascoltami on {{host}}</h1>
 
    <div id="page">
 
      <h1>ascoltami on {{host}}</h1>
 
      <div class="songs" style="display: none"></div>
 

	
 
      <div class="dimStalled">
 
        <table>
 
          <tr>
 
            <td colspan="3">
 
@@ -76,12 +76,11 @@
 
          </tr>
 
        </table>
 
      </div>
 

	
 
      <hr />
 
      <light9-ascoltami-ui></light9-ascoltami-ui>
 
      <p>Running on <span id="nav"></span></p>
 
      <p><a href="">reload</a></p>
 
    </div>
 
    <script type="module" src="../ascoltami/main.ts"></script>
 
  </body>
 
</html>
0 comments (0 inline, 0 general)