diff options
author | href <href@random.sh> | 2018-02-02 21:35:46 +0100 |
---|---|---|
committer | href <href@random.sh> | 2018-02-02 21:35:46 +0100 |
commit | c98ddad3263f6859af3c5c76fa197876743d5ded (patch) | |
tree | 9e20617da1089e918e0445162dc9bd8eb54f3459 /lib/lsg_web/templates/page/widget.html.eex | |
parent | import (diff) |
sse / embedded player
Diffstat (limited to '')
-rw-r--r-- | lib/lsg_web/templates/page/widget.html.eex | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/lsg_web/templates/page/widget.html.eex b/lib/lsg_web/templates/page/widget.html.eex index efa382f..65853b3 100644 --- a/lib/lsg_web/templates/page/widget.html.eex +++ b/lib/lsg_web/templates/page/widget.html.eex @@ -5,7 +5,16 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="<%= static_path(@conn, "/assets/css/widget.css") %>"> +<script src="<%= static_path(@conn, "/assets/js/soundmanager2-jsmin.js") %>"></script> <script src="<%= static_path(@conn, "/assets/js/widget.js") %>"></script> </head> -<body></body> +<body> + <div id="player" class="<%= if @icecast.live, do: "live", else: "autodj" %>"> + <div id="state">▶</div> + <div id="titles"> + <div id="genre"><%= @icecast.genre %></div> + <div id="np"><%= @icecast.np %></div> + </div> + </div> +</body> </html> |