Mercurial > code > home > repos > light9
annotate web/light9-music.html @ 2425:f6e40619cf27
reformat
author | drewp@bigasterisk.com |
---|---|
date | Thu, 23 May 2024 16:42:17 -0700 |
parents | 4556eebe5d73 |
children |
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 | 2 <link rel="import" href="/lib/iron-ajax/iron-ajax.html"> |
3 | |
4 <!-- remote control of ascoltami --> | |
5 <dom-module id="light9-music"> | |
6 <template> | |
1336 | 7 <style> |
8 span { | |
9 font-family: monospace; | |
10 white-space: pre; | |
11 background: black; | |
12 color: white; | |
13 border: 1px solid #2782ad; | |
14 font-size: 12px; | |
15 } | |
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 | 22 <span>[[status]][[turboSign]]</span> |
1335 | 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 | 25 <script src="light9-music.js"></script> |
26 </dom-module> |