Files
@ cc69faa87c27
Branch filter:
Location: light9/web/light9-music.html - annotation
cc69faa87c27
841 B
text/html
tear up and rewrite ascoltami to emit player state into the graph. web ui works but displays nothing but songs
4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 4556eebe5d73 | <link rel="import" href="/lib/polymer/polymer-element.html">
<link rel="import" href="/lib/iron-ajax/iron-ajax.html">
<!-- remote control of ascoltami -->
<dom-module id="light9-music">
<template>
<style>
span {
font-family: monospace;
white-space: pre;
background: black;
color: white;
border: 1px solid #2782ad;
font-size: 12px;
}
</style>
<iron-ajax id="getTime" on-response="onResponse" on-error="onError" url="/ascoltami/time"></iron-ajax>
<iron-ajax id="seek"
method="POST"
url="/ascoltami/seekPlayOrPause"
content-type="application/json"></iron-ajax>
<span>[[status]][[turboSign]]</span>
</template>
<script src="coffee_element.js"></script>
<script src="light9-music.js"></script>
</dom-module>
|