2013-11-04 17:18:38 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
2013-11-09 02:02:49 +00:00
< meta name = "description" content = "ympd - fast and lightweight MPD webclient" >
< meta name = "author" content = "andy@ndyk.de" >
2013-11-04 17:18:38 +00:00
< title > ympd< / title >
<!-- Bootstrap core CSS -->
2014-02-22 00:57:26 +00:00
< link href = "css/bootstrap.min.css" rel = "stylesheet" >
< link href = "css/bootstrap-theme.min.css" rel = "stylesheet" >
2013-11-04 17:18:38 +00:00
<!-- Custom styles for this template -->
2014-02-22 00:57:26 +00:00
< link href = "css/mpd.min.css" rel = "stylesheet" >
2013-12-03 20:48:49 +00:00
< link href = "assets/favicon.ico" rel = "shortcut icon" type = "image/vnd.microsoft.icon" >
2013-11-04 17:18:38 +00:00
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- [if lt IE 9]>
2013-11-05 13:59:12 +00:00
< script src = "https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js" > < / script >
< script src = "https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js" > < / script >
<![endif]-->
< / head >
< body >
2013-11-04 17:18:38 +00:00
2013-11-05 13:59:12 +00:00
< div class = "navbar navbar-inverse navbar-fixed-top" role = "navigation" >
< div class = "container" >
< div class = "navbar-header" >
< button type = "button" class = "navbar-toggle" data-toggle = "collapse" data-target = ".navbar-collapse" >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
2013-12-03 20:48:49 +00:00
< a class = "navbar-brand" href = "/" > < span class = "glyphicon glyphicon-play-circle" > < / span > ympd< / a >
2013-11-05 13:59:12 +00:00
< / div >
< div class = "collapse navbar-collapse" >
2013-11-04 17:18:38 +00:00
2013-11-07 09:09:40 +00:00
< ul id = "nav_links" class = "nav navbar-nav" >
2014-02-22 00:57:26 +00:00
< li id = "queue" > < a href = "#/" > Queue< / a > < / li >
2014-02-22 01:11:45 +00:00
< li id = "browse" > < a href = "#/browse/0/" > Browse database< / a > < / li >
2014-02-04 16:58:10 +00:00
< li > < a href = "#" data-toggle = "modal" data-target = "#settings" onclick = "getHost();" > Settings< / a > < / li >
2013-11-05 13:59:12 +00:00
< / ul >
< div class = "btn-toolbar navbar-btn navbar-right" role = "toolbar" >
< div class = "btn-group" >
2013-11-08 11:58:18 +00:00
< button type = "button" class = "btn btn-default" onclick = "socket.send('MPD_API_SET_NEXT');" >
< span class = "glyphicon glyphicon-backward" > < / span >
2013-11-05 13:59:12 +00:00
< / button >
2014-01-16 17:32:20 +00:00
< button type = "button" class = "btn btn-default" onclick = "socket.send('MPD_API_SET_STOP');" >
< span id = "stop-icon" class = "glyphicon glyphicon-stop" > < / span >
< / button >
2014-01-17 15:26:26 +00:00
< button type = "button" class = "btn btn-default" onclick = "clickPlay();" >
2013-11-05 13:59:12 +00:00
< span id = "play-icon" class = "glyphicon glyphicon-pause" > < / span >
< / button >
2013-11-08 11:58:18 +00:00
< button type = "button" class = "btn btn-default" onclick = "socket.send('MPD_API_SET_PREV');" >
2013-11-05 13:59:12 +00:00
< span class = "glyphicon glyphicon-forward" > < / span >
2013-11-04 17:18:38 +00:00
< / button >
< / div >
2013-11-05 13:59:12 +00:00
< div class = "btn-group" >
2013-11-07 09:09:40 +00:00
< div class = "btn btn-toolbar btn-default" >
2013-11-05 13:59:12 +00:00
< span id = "volume-icon" class = "glyphicon glyphicon-volume-up" > < / span >
2014-01-16 17:32:20 +00:00
< div id = "volumeslider" > < / div >
2013-11-07 09:09:40 +00:00
< / div >
2013-11-05 13:59:12 +00:00
< / div >
< / div >
2014-02-22 00:57:26 +00:00
< form id = "search" class = "navbar-form navbar-right" role = "search" >
< div class = "form-group" >
< input type = "text" class = "form-control" placeholder = "Search" >
< / div >
< / form >
2013-11-05 13:59:12 +00:00
< / div > <!-- /.nav - collapse -->
2013-11-04 17:18:38 +00:00
< / div >
2013-11-05 13:59:12 +00:00
< / div >
2013-11-04 17:18:38 +00:00
2013-11-05 13:59:12 +00:00
< div class = "container starter-template" >
< div class = "row" >
2013-11-04 17:18:38 +00:00
2013-11-13 14:30:54 +00:00
< div class = "col-md-10 col-xs-12" >
2014-01-16 17:32:20 +00:00
< div class = "notifications top-right" > < / div >
2013-11-07 09:09:40 +00:00
2013-11-05 13:59:12 +00:00
< div class = "panel panel-primary" >
2013-11-04 17:18:38 +00:00
<!-- Default panel contents -->
2014-02-22 01:11:45 +00:00
< div class = "panel-heading" > < b id = "panel-heading" > Queue< / b > < / div >
2013-11-05 13:59:12 +00:00
< div class = "panel-body" >
2013-11-09 02:02:49 +00:00
< h1 >
< span id = "track-icon" class = "glyphicon glyphicon-play" > < / span >
< span id = "currenttrack" > < / span >
< / h1 >
< h4 >
< span id = "album" class = "text" > < / span >
< span id = "artist" class = "text pull-right" > < / span >
< / h4 >
2013-11-07 09:09:40 +00:00
< p id = "counter" class = "text pull-right" > < / p >
2013-11-05 13:59:12 +00:00
2014-01-16 17:32:20 +00:00
< div id = "progressbar" > < / div >
2013-11-09 02:02:49 +00:00
< / div > <!-- /.panel - body -->
2013-11-04 17:18:38 +00:00
2013-11-13 14:30:54 +00:00
< ol id = "breadcrump" class = "breadcrumb" >
< / ol >
2013-11-04 17:18:38 +00:00
<!-- Table -->
2013-11-07 09:09:40 +00:00
< table id = "salamisandwich" class = "table table-hover" >
2013-11-04 17:18:38 +00:00
< thead >
< tr >
< th > #< / th >
2013-11-04 23:17:28 +00:00
< th > Title< / th >
< th > Duration< / th >
2014-01-17 15:26:26 +00:00
< th > < / th >
2013-11-04 17:18:38 +00:00
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
2013-11-09 02:02:49 +00:00
< / div > <!-- /.panel -->
2014-02-22 01:11:45 +00:00
< ul class = "pager" >
< li id = "prev" class = "page-btn hide" > < a href = "" > Previous< / a > < / li >
< li id = "next" class = "page-btn" > < a href = "" > Next< / a > < / li >
< / ul >
2013-11-09 02:02:49 +00:00
< / div > <!-- /.col - md - 10 -->
2013-11-05 13:59:12 +00:00
2013-11-13 14:30:54 +00:00
< div class = "col-md-2 col-xs-12" >
2014-01-16 17:32:20 +00:00
< div class = "btn-toolbar" >
2013-11-05 13:59:12 +00:00
< div class = "btn-group-vertical btn-block btn-group-lg" data-toggle = "buttons" >
2013-11-07 09:09:40 +00:00
< button id = "btnrandom" type = "button" class = "btn btn-default" >
2013-11-05 13:59:12 +00:00
< span class = "glyphicon glyphicon-random" > < / span > Random
< / button >
2013-11-07 09:09:40 +00:00
< button id = "btnconsume" type = "button" class = "btn btn-default" >
2013-11-05 13:59:12 +00:00
< span class = "glyphicon glyphicon-fire" > < / span > Consume
< / button >
2013-11-07 09:09:40 +00:00
< button id = "btnsingle" type = "button" class = "btn btn-default" >
2013-11-05 13:59:12 +00:00
< span class = "glyphicon glyphicon-star" > < / span > Single
< / button >
2013-11-07 09:09:40 +00:00
< button id = "btnrepeat" type = "button" class = "btn btn-default" >
2013-11-05 13:59:12 +00:00
< span class = "glyphicon glyphicon-repeat" > < / span > Repeat
< / button >
< / div >
2014-01-19 01:08:56 +00:00
< div id = "btn-responsive-block" class = "btn-group-vertical btn-block btn-group-lg" >
2014-01-16 17:32:20 +00:00
< button type = "button" class = "btn btn-default" onclick = "updateDB();" >
< span class = "glyphicon glyphicon-refresh" > < / span > Update DB
< / button >
< button type = "button" class = "btn btn-default" onclick = "socket.send('MPD_API_RM_ALL');" >
< span class = "glyphicon glyphicon-trash" > < / span > Clear queue
< / button >
< / div >
2014-01-19 01:08:56 +00:00
< div id = "btn-responsive-block" class = "btn-group-vertical btn-block btn-group-lg" data-toggle = "buttons" >
< button type = "button" class = "btn btn-default" id = "btnnotify" >
< span class = "glyphicon glyphicon-comment" > < / span > Notifications
< / button >
< / div >
2013-11-05 13:59:12 +00:00
< / div >
< / div > <!-- /.col - md - 2 -->
< / div > <!-- /.row -->
< / div > <!-- /.container -->
2013-11-09 02:02:49 +00:00
<!-- Modal -->
2014-02-22 00:57:26 +00:00
< div class = "modal fade" id = "settings" tabindex = "-1" role = "dialog" aria-labelledby = "settingsLabel" aria-hidden = "true" >
2013-11-09 02:02:49 +00:00
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-hidden = "true" > × < / button >
2014-02-22 00:57:26 +00:00
< h2 class = "modal-title" id = "settingsLabel" > < span class = "glyphicon glyphicon-wrench" > < / span > Settings< / h2 >
2013-11-09 02:02:49 +00:00
< / div >
< div class = "modal-body" >
2014-02-04 17:24:01 +00:00
< h4 > < a href = "http://www.ympd.org" > < span class = "glyphicon glyphicon-play-circle" > < / span > ympd< / a > < small > MPD Web GUI - written in C, utilizing Websockets and Bootstrap/JS< / small > < / h4 >
2014-01-16 17:32:20 +00:00
< p >
ympd is a lightweight MPD (Music Player Daemon) web client that runs without a dedicated werbserver or interpreters like PHP, NodeJS or Ruby. It's tuned for minimal resource usage and requires only very litte dependencies.< / p >
< h5 > ympd uses following excellent software:< / h5 >
2014-02-22 00:57:26 +00:00
< h6 > < a href = "http://cesanta.com/docs.html" > Mongoose< / a > < small > GPLv2< / small > < / h6 >
2013-11-09 02:02:49 +00:00
< h6 > < a href = "http://www.musicpd.org/libs/libmpdclient/" > libMPDClient< / a > < small > BSD License< / small > < / h6 >
2014-02-22 00:57:26 +00:00
< hr / >
2014-02-04 17:24:01 +00:00
< form role = "form" >
< div class = "row" >
< div class = "form-group col-md-9" >
< label class = "control-label" for = "mpdhost" > MPD Host/IP< / label >
< input type = "text" class = "form-control" id = "mpdhost" / >
< / div >
< div class = "form-group col-md-3" >
2014-02-04 16:58:10 +00:00
< label class = "control-label" for = "mpdport" > MPD Port< / label >
2014-02-04 17:24:01 +00:00
< input type = "text" class = "form-control" id = "mpdport" / >
2014-02-04 16:58:10 +00:00
< / div >
< / div >
2014-02-16 18:46:53 +00:00
< div class = "row" >
< div class = "form-group col-md-6" >
< label class = "control-label" for = "mpd_pw" > MPD Password< / label >
< input type = "password" class = "form-control" id = "mpd_pw" placeholder = "Password" / >
< / div >
< div class = "form-group col-md-6" >
< label class = "control-label" for = "mpd_pw_con" > MPD Password (Confirmation)< / label >
< input type = "password" class = "form-control" id = "mpd_pw_con" placeholder = "Password confirmation"
data-placement="right" data-toggle="popover" data-content="Password does not match!"
data-trigger="manual" />
< / div >
2014-02-22 01:11:45 +00:00
< div class = "form-group col-md-12" >
2014-03-08 19:33:22 +00:00
< div id = "mpd_password_set" class = "hide alert alert-info" >
< button type = "button" class = "close" aria-hidden = "true" > × < / button >
MPD Password is set
< / div >
2014-02-22 01:11:45 +00:00
< / div >
2014-02-16 18:46:53 +00:00
< / div >
2014-02-04 16:58:10 +00:00
< / form >
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-default" data-dismiss = "modal" > Cancel< / button >
2014-02-16 18:46:53 +00:00
< button type = "button" class = "btn btn-default" onclick = "confirmSettings();" > Save< / button >
2014-02-04 16:58:10 +00:00
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
< / div > <!-- /.modal -->
2014-02-22 01:11:45 +00:00
< div class = "modal fade bs-example-modal-sm" id = "wait" tabindex = "-1" role = "dialog" data-backdrop = "static" data-keyboard = "false" aria-hidden = "true" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< h1 > Searching...< / h1 >
< / div >
< div class = "modal-body" >
< div class = "progress progress-striped active" >
< div class = "progress-bar" role = "progressbar" aria-valuenow = "45" aria-valuemin = "0" aria-valuemax = "100" style = "width: 100%" >
< span class = "sr-only" > Please Wait< / span >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
2014-02-04 16:58:10 +00:00
2013-11-05 13:59:12 +00:00
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
< script src = "js/jquery-1.10.2.min.js" > < / script >
2014-01-17 17:34:22 +00:00
< script src = "js/jquery.cookie.js" > < / script >
2013-11-05 13:59:12 +00:00
< script src = "js/bootstrap.min.js" > < / script >
2014-01-16 17:32:20 +00:00
< script src = "js/bootstrap-notify.js" > < / script >
2014-01-16 17:38:10 +00:00
< script src = "js/bootstrap-slider.js" > < / script >
2013-11-07 12:47:31 +00:00
< script src = "js/sammy.js" > < / script >
2013-11-05 13:59:12 +00:00
< script src = "js/mpd.js" > < / script >
< / body >
< / html >