diff options
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> |