annotate web/light9-music.html @ 2425:f6e40619cf27

reformat
author drewp@bigasterisk.com
date Thu, 23 May 2024 16:42:17 -0700
parents 4556eebe5d73
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1731
e06c2c105035 workaround for coffee issue with static getters. polymer wasn't seeing my attributes at all
Drew Perttula <drewp@bigasterisk.com>
parents: 1338
diff changeset
1 <link rel="import" href="/lib/polymer/polymer-element.html">
1335
3843f6bd0460 music time fetcher
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
2 <link rel="import" href="/lib/iron-ajax/iron-ajax.html">
3843f6bd0460 music time fetcher
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
3
3843f6bd0460 music time fetcher
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
4 <!-- remote control of ascoltami -->
3843f6bd0460 music time fetcher
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
5 <dom-module id="light9-music">
3843f6bd0460 music time fetcher
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
6 <template>
1336
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
7 <style>
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
8 span {
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
9 font-family: monospace;
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
10 white-space: pre;
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
11 background: black;
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
12 color: white;
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
13 border: 1px solid #2782ad;
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
14 font-size: 12px;
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
15 }
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
16 </style>
1731
e06c2c105035 workaround for coffee issue with static getters. polymer wasn't seeing my attributes at all
Drew Perttula <drewp@bigasterisk.com>
parents: 1338
diff changeset
17 <iron-ajax id="getTime" on-response="onResponse" on-error="onError" url="/ascoltami/time"></iron-ajax>
1338
5ba5afe30817 ctrl-p does seekPlayOrPause
Drew Perttula <drewp@bigasterisk.com>
parents: 1336
diff changeset
18 <iron-ajax id="seek"
5ba5afe30817 ctrl-p does seekPlayOrPause
Drew Perttula <drewp@bigasterisk.com>
parents: 1336
diff changeset
19 method="POST"
5ba5afe30817 ctrl-p does seekPlayOrPause
Drew Perttula <drewp@bigasterisk.com>
parents: 1336
diff changeset
20 url="/ascoltami/seekPlayOrPause"
5ba5afe30817 ctrl-p does seekPlayOrPause
Drew Perttula <drewp@bigasterisk.com>
parents: 1336
diff changeset
21 content-type="application/json"></iron-ajax>
1336
2d77dc9436c3 music drives cursor
Drew Perttula <drewp@bigasterisk.com>
parents: 1335
diff changeset
22 <span>[[status]][[turboSign]]</span>
1335
3843f6bd0460 music time fetcher
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
23 </template>
1731
e06c2c105035 workaround for coffee issue with static getters. polymer wasn't seeing my attributes at all
Drew Perttula <drewp@bigasterisk.com>
parents: 1338
diff changeset
24 <script src="coffee_element.js"></script>
1335
3843f6bd0460 music time fetcher
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
25 <script src="light9-music.js"></script>
3843f6bd0460 music time fetcher
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
26 </dom-module>