2013-11-04 17:18:38 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
2018-05-14 23:13:43 +00:00
< meta name = "description" content = "myMPD - fast and lightweight MPD webclient" >
< meta name = "author" content = "mail@jcgames.de" >
< title > myMPD< / title >
2013-11-04 17:18:38 +00:00
2016-02-13 20:58:43 +00:00
< link href = "css/bootstrap.css" rel = "stylesheet" >
2018-05-21 23:36:05 +00:00
< link href = "css/bootstrap-slider.css" rel = "stylesheet" >
2016-02-13 20:58:43 +00:00
< link href = "css/mpd.css" rel = "stylesheet" >
2013-12-03 20:48:49 +00:00
< link href = "assets/favicon.ico" rel = "shortcut icon" type = "image/vnd.microsoft.icon" >
2015-10-22 15:48:42 +00:00
< script src = "js/modernizr-custom.js" > < / script >
2018-05-14 23:13:43 +00:00
2018-05-13 23:06:12 +00:00
< meta name = "apple-mobile-web-app-capable" content = "yes" / >
< meta name = "apple-mobile-web-app-status-bar-style" content = "black" / >
< link rel = "apple-touch-icon" href = "assets/appicon.png" / >
2013-11-05 13:59:12 +00:00
< / head >
< body >
2018-05-14 23:13:43 +00:00
< header >
2018-05-16 23:19:03 +00:00
< nav class = "navbar navbar-expand navbar-dark fixed-top bg-dark" >
2018-05-23 22:32:01 +00:00
< div class = "dropdown col-auto mr-auto" id = "mainMenu" >
2018-05-22 23:07:34 +00:00
< a class = "dropdown-toggle navbar-brand" data-toggle = "dropdown" href = "#" >
2018-05-23 22:32:01 +00:00
< span class = "material-icons header-logo" > play_circle_outline< / span > myMPD
< / a >
2018-05-21 23:36:05 +00:00
< div class = "dropdown-menu bg-dark" >
2018-05-17 22:10:57 +00:00
< form id = "search" class = "px-4 py-3" role = "search" >
< input type = "text" class = "form-control" placeholder = "Search" >
2018-05-16 23:19:03 +00:00
< / form >
< div class = "dropdown-divider" > < / div >
2018-05-17 22:10:57 +00:00
< a id = "nav-addstream" class = "dropdown-item text-light bg-dark" href = "#" data-toggle = "modal" data-target = "#addstream" > Add Stream< / a >
2018-05-21 23:36:05 +00:00
< a id = "nav-updatedb" class = "dropdown-item text-light bg-dark" href = "#" onclick = "updateDB();" > Update Database< / a >
2018-05-23 22:32:01 +00:00
< a id = "nav-localplayer" class = "dropdown-item text-light bg-dark" href = "#" data-toggle = "dropdown" onclick = "window.open('/player.html','LocalPlayer');" > Local Player< / a >
2018-05-24 18:05:09 +00:00
< a id = "nav-settings" class = "dropdown-item text-light bg-dark" href = "#" data-toggle = "modal" data-target = "#settings" > Settings< / a >
< a id = "nav-about" class = "dropdown-item text-light bg-dark" href = "#" data-toggle = "modal" data-target = "#about" > About< / a >
2018-05-16 23:19:03 +00:00
< / div >
< / div >
2018-05-21 23:36:05 +00:00
< div class = "btn-toolbar col-auto" role = "toolbar" >
2018-05-14 23:13:43 +00:00
< div class = "btn-group mr-2" role = "group" >
< button type = "button" class = "btn btn-secondary" onclick = "socket.send('MPD_API_SET_PREV');" >
< span class = "material-icons" > skip_previous< / span >
2013-11-05 13:59:12 +00:00
< / button >
2018-05-14 23:13:43 +00:00
< button type = "button" class = "btn btn-secondary" onclick = "clickPlay();" >
< span id = "play-icon" class = "material-icons" > pause< / span >
2013-11-05 13:59:12 +00:00
< / button >
2018-05-14 23:13:43 +00:00
< button type = "button" class = "btn btn-secondary" onclick = "socket.send('MPD_API_SET_NEXT');" >
< span class = "material-icons" > skip_next< / span >
2013-11-04 17:18:38 +00:00
< / button >
< / div >
2018-05-21 23:36:05 +00:00
< div class = "btn-group" role = "group" >
< button class = "btn btn-secondary dropdown-toggle" type = "button" data-toggle = "dropdown" >
2018-05-14 23:13:43 +00:00
< span id = "volume-icon" class = "material-icons" > volume_up< / span >
2018-05-21 23:36:05 +00:00
< / button >
< div class = "dropdown-menu dropdown-menu-right bg-dark" >
< h1 class = "dropdown-header text-light" > Volume: < span id = "volumePrct" > < / span > < / h1 >
< form class = "px-4 py-3" style = "padding-top:0px !important;" >
2018-05-22 23:07:34 +00:00
< div class = "btn-group" role = "group" >
2018-05-21 23:36:05 +00:00
< input type = "button" class = "btn btn-secondary" value = "−" onclick = "chVolume(-5)" / >
2018-05-22 23:07:34 +00:00
< div class = "btn btn-secondary" >
< input id = "volumebar" data-slider-id = "volumebar" data-slider-handle = "custom" type = "text" data-slider-min = "0" data-slider-max = "100" data-slider-step = "1" data-slider-value = "0" / >
< / div >
2018-05-21 23:36:05 +00:00
< input type = "button" class = "btn btn-secondary" value = "+" onclick = "chVolume(5)" / >
< / div >
< / form >
< div class = "dropdown-divider" > < / div >
< form id = "btn-outputs-block" class = "px-4 py-3" > < / form >
2013-11-07 09:09:40 +00:00
< / div >
2013-11-05 13:59:12 +00:00
< / div >
2018-05-16 23:19:03 +00:00
< / div >
< / nav >
< / header >
< main role = "main" class = "container" >
2018-05-22 23:07:34 +00:00
< div class = "card" id = "cardPlayback" >
< div class = "card-header" > Now playing< / div >
< div class = "card-body" >
< div id = "album-cover" > < / div >
< h1 id = "currenttrack" > < / h1 >
< h3 id = "artist" > < / h3 >
< h4 id = "album" > < / h4 >
< div class = "row" >
< div class = "col-8" >
< input id = "progressbar" data-slider-id = 'progressbar' data-slider-handle = 'custom' type = "text" data-slider-min = "0" data-slider-max = "100" data-slider-step = "1" data-slider-value = "0" / >
< / div >
< div class = "col-4" >
< p id = "counter" class = "text" > < / p >
< / div >
< / div >
< / div >
< / div >
< div class = "card hide" id = "cardQueue" >
2018-05-16 23:19:03 +00:00
< div class = "card-header" >
2018-05-22 23:07:34 +00:00
< span > Queue< / span >
< span id = "panel-heading-queue" class = "text pull-right" > < / span >
2018-05-16 23:19:03 +00:00
< / div >
< div class = "card-body" >
2018-05-22 23:07:34 +00:00
< div class = "btn-toolbar" id = "queue-buttons" role = "toolbar" >
2018-05-16 23:19:03 +00:00
< div id = "trashmode" class = "btn-group mr-2" data-toggle = "radio" >
< button id = "btntrashmodeup" type = "button" class = "btn btn-secondary" title = "Delete upward" >
< span class = "material-icons" > vertical_align_top< / span >
< span class = "material-icons" > delete< / span >
< / button >
< button id = "btntrashmodesingle" type = "button" class = "btn btn-success" title = "Delete single" >
< span class = "material-icons" > delete< / span >
< / button >
< button id = "btntrashmodedown" type = "button" class = "btn btn-secondary" title = "Delete downward" >
< span class = "material-icons" > delete< / span >
< span class = "material-icons" > vertical_align_bottom< / span >
< / button >
2018-05-14 23:13:43 +00:00
< / div >
2018-05-16 23:19:03 +00:00
< div id = "queue-actions" class = "btn-group mr-2" >
2018-05-24 19:36:40 +00:00
< button type = "button" class = "btn btn-secondary" onclick = "socket.send('MPD_API_SEND_SHUFFLE');" title = "Shuffle queue" >
< span class = "material-icons" > shuffle< / span >
< / button >
2018-05-16 23:19:03 +00:00
< button type = "button" class = "btn btn-secondary" onclick = "socket.send('MPD_API_RM_ALL');" title = "Clear queue" >
< span class = "material-icons" > clear_all< / span >
< / button >
2018-05-24 19:36:40 +00:00
< button type = "button" class = "btn btn-secondary" data-toggle = "modal" data-target = "#savequeue" title = "Save queue" >
2018-05-16 23:19:03 +00:00
< span class = "material-icons" > save< / span >
2018-05-24 19:36:40 +00:00
< / button >
2018-05-07 21:25:17 +00:00
< / div >
2018-05-24 22:21:19 +00:00
< form id = "searchqueue" role = "search" class = "btn btn-secondary" >
< input type = "text" class = "form-control" placeholder = "Search" / >
< / form >
2018-05-16 23:19:03 +00:00
< / div >
2018-05-24 22:21:19 +00:00
2018-05-22 23:07:34 +00:00
< table id = "queueList" class = "table table-hover" >
< col class = "tblnum" / >
< col class = "tblartist" / >
< col class = "tblalbum" / >
< col class = "tbltitle" / >
< col class = "tbllength" / >
< col class = "tblaction" / >
< thead >
< tr >
< th > #< / th >
< th > Artist< / th >
< th > Album< / th >
< th > Title< / th >
< th > Length< / th >
< th > < / th >
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
2013-11-04 17:18:38 +00:00
2018-05-24 22:21:19 +00:00
< ul id = "queuePagination" class = "pagination justify-content-center hide" >
< li id = "queuePrev" class = "page-item disabled" > < a class = "page-link text-secondary" href = "" > Previous< / a > < / li >
< li id = "queueNext" class = "page-item disabled" > < a class = "page-link text-secondary" href = "" > Next< / a > < / li >
2018-05-22 23:07:34 +00:00
< / ul >
< / div >
< / div >
< div class = "card hide" id = "cardBrowse" >
< div class = "card-header" id = "panel-heading-browse" > Browse< / div >
< div class = "card-body" >
< ol id = "browseBreadcrumb" class = "breadcrumb" >
2018-05-16 23:19:03 +00:00
< / ol >
2013-11-13 14:30:54 +00:00
2018-05-22 23:07:34 +00:00
< div class = "btn-toolbar" id = "filter-toolbar" >
2018-05-17 22:10:57 +00:00
< div class = "btn-group mr-2 flex-wrap" data-toggle = "radio" id = "filter" > < / div >
2018-05-16 23:19:03 +00:00
< div class = "btn-group mr-2 pull-right" >
< button id = "add-all-songs" class = "btn btn-secondary" > Add all< / button >
2015-08-17 21:01:47 +00:00
< / div >
2018-05-16 23:19:03 +00:00
< / div >
2015-08-17 21:01:47 +00:00
2018-05-22 23:07:34 +00:00
< table id = "browseList" class = "table table-hover" >
2018-05-17 22:10:57 +00:00
< col class = "tblnum" / >
< col class = "tblartist" / >
< col class = "tblalbum" / >
< col class = "tbltitle" / >
< col class = "tbllength" / >
< col class = "tblaction" / >
2018-05-16 23:19:03 +00:00
< thead >
< tr >
2018-05-22 23:07:34 +00:00
< th > < / th >
2018-05-16 23:19:03 +00:00
< th > Artist< / th >
< th > Album< / th >
< th > Title< / th >
< th > Length< / th >
< th > < / th >
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
2015-08-17 21:01:47 +00:00
2018-05-24 22:21:19 +00:00
< ul id = "browsePagination" class = "pagination justify-content-center hide" >
< li id = "browsePrev" class = "page-item disabled" > < a class = "page-link text-secondary" href = "" > Previous< / a > < / li >
< li id = "browseNext" class = "page-item disabled" > < a class = "page-link text-secondary" href = "" > Next< / a > < / li >
2014-02-22 01:11:45 +00:00
< / ul >
2018-05-16 23:19:03 +00:00
< / div >
2018-05-22 23:07:34 +00:00
< / div >
2018-05-16 23:19:03 +00:00
2018-05-22 23:07:34 +00:00
< div class = "card hide" id = "cardSearch" >
< div class = "card-header" id = "pnael-heading-search" > Search< / div >
< div class = "card-body" >
< table id = "searchList" class = "table table-hover" >
< col class = "tblnum" / >
< col class = "tblartist" / >
< col class = "tblalbum" / >
< col class = "tbltitle" / >
< col class = "tbllength" / >
< col class = "tblaction" / >
< thead >
< tr >
< th > < / th >
< th > Artist< / th >
< th > Album< / th >
< th > Title< / th >
< th > Length< / th >
< th > < / th >
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
< / div >
< / div >
2018-05-16 23:19:03 +00:00
< footer class = "footer" >
< nav class = "navbar navbar-expand navbar-dark fixed-bottom bg-dark" >
< div class = "d-flex flex-fill navbar-nav" id = "navbar-bottom" >
2018-05-22 23:07:34 +00:00
< div class = "nav-item flex-fill text-center" id = "navPlayback" > < a class = "nav-link" href = "#/playing/" > Playback< / a > < / div >
< div class = "nav-item flex-fill text-center" id = "navQueue" > < a class = "nav-link" href = "#/queue/0" > Queue< / a > < / div >
< div class = "nav-item flex-fill text-center" id = "navBrowse" > < a class = "nav-link" href = "#/browse/0/" > Browse< / a > < / div >
2018-05-16 23:19:03 +00:00
< / div >
< / nav >
< / footer >
2013-11-05 13:59:12 +00:00
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" >
2018-05-14 23:13:43 +00:00
< h5 class = "modal-title" id = "settingsLabel" > < span class = "material-icons" > settings< / span > Settings< / h5 >
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" >
< span aria-hidden = "true" > × < / span >
< / button >
2013-11-09 02:02:49 +00:00
< / div >
< div class = "modal-body" >
2018-02-03 13:51:48 +00:00
< div class = "row" >
< div class = "form-group col-md-6" >
2018-05-14 23:13:43 +00:00
< button id = "btnrandom" type = "button" class = "btn btn-secondary btn-block" title = "Random" >
< span class = "glyphicon glyphicon-random" > < / span > Random
2018-05-13 23:06:12 +00:00
< / button >
< / div >
< div class = "form-group col-md-6" data-toggle = "buttons" >
2018-05-14 23:13:43 +00:00
< button id = "btnconsume" type = "button" class = "btn btn-secondary btn-block" title = "Consume" >
2018-05-13 23:06:12 +00:00
< span class = "glyphicon glyphicon-fire" > < / span > Consume
< / button >
< / div >
< / div >
< div class = "row" >
< div class = "form-group col-md-6" data-toggle = "buttons" >
2018-05-14 23:13:43 +00:00
< button id = "btnsingle" type = "button" class = "btn btn-secondary btn-block" title = "Single" >
2018-05-13 23:06:12 +00:00
< span class = "glyphicon glyphicon-star" > < / span > Single
< / button >
< / div >
< div class = "form-group col-md-6" data-toggle = "buttons" >
2018-05-14 23:13:43 +00:00
< button id = "btncrossfade" type = "button" class = "btn btn-secondary btn-block" title = "Crossfade" >
2018-05-13 23:06:12 +00:00
< span class = "glyphicon glyphicon-link" > < / span > Crossfade
2018-02-03 13:51:48 +00:00
< / button >
< / div >
2018-05-13 23:06:12 +00:00
< / div >
< div class = "row" >
< div class = "form-group col-md-6" data-toggle = "buttons" >
2018-05-14 23:13:43 +00:00
< button id = "btnrepeat" type = "button" class = "btn btn-secondary btn-block" title = "Repeat" >
2018-05-13 23:06:12 +00:00
< span class = "glyphicon glyphicon-repeat" > < / span > Repeat
< / button >
2018-05-22 23:07:34 +00:00
< / div >
< / div >
< hr / >
< div class = "row" >
< div class = "form-group col-md-6" data-toggle = "buttons" >
< button type = "button" class = "btn btn-secondary btn-block" id = "btnnotifyPage" >
< span class = "glyphicon glyphicon-comment" > < / span > Page Notifications
< / button >
< / div >
2018-02-03 13:51:48 +00:00
< div class = "form-group col-md-6" data-toggle = "buttons" >
2018-05-22 23:07:34 +00:00
< button type = "button" class = "btn btn-secondary btn-block" id = "btnnotifyWeb" >
< span class = "glyphicon glyphicon-comment" > < / span > Web Notifications
2018-02-03 13:51:48 +00:00
< / button >
2018-05-22 23:07:34 +00:00
< / div >
2018-05-13 23:06:12 +00:00
< / div >
2014-02-04 16:58:10 +00:00
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
< / div > <!-- /.modal -->
2018-05-24 18:05:09 +00:00
<!-- Modal -->
< div class = "modal fade" id = "about" tabindex = "-1" role = "dialog" aria-labelledby = "settingsLabel" aria-hidden = "true" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< h5 class = "modal-title" id = "settingsLabel" > < span class = "material-icons" > play_circle_outline< / span > About< / h5 >
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" >
< span aria-hidden = "true" > × < / span >
< / button >
< / div >
< div class = "modal-body" >
< h4 > < a style = "color:#28a745" href = "https://github.com/jcorporation/ympd" > < span class = "material-icons" > play_circle_outline< / span > myMPD< / a > – < small > MPD Web GUI - written in C, utilizing Websockets and Bootstrap/JS< / small > < / h4 >
< p > myMPD is a lightweight MPD web client that runs without a dedicated webserver or interpreter. It's tuned for minimal resource usage and requires only very litte dependencies. myMPD is a fork of < a style = "color:#28a745" href = "http://www.ympd.org" > ympd< / a > .< / p >
< ul >
2018-05-24 19:10:02 +00:00
< li > Version: 2.1.0< / li >
< li > Homepage: < a style = "color:#28a745" target = "_blank" href = "https://github.com/jcorporation/mympd" > https://github.com/jcorporation/mympd< / a > < / li >
2018-05-24 18:05:09 +00:00
< li > Autor: Juergen Mang < < a style = "color:#28a745" href = "mailto:mail@jcgames.de" > mail@jcgames.de< / a > > < / li >
< / ul >
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
< / div > <!-- /.modal -->
2014-02-04 16:58:10 +00:00
2015-03-06 11:40:14 +00:00
<!-- Modal -->
< div class = "modal fade" id = "addstream" tabindex = "-1" role = "dialog" aria-labelledby = "addstreamLabel" aria-hidden = "true" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
2018-05-14 23:13:43 +00:00
< h5 class = "modal-title" id = "addstreamLabel" > < span class = "material-icons" > view_stream< / span > Add Stream< / h5 >
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" >
< span aria-hidden = "true" > × < / span >
< / button >
2015-03-06 11:40:14 +00:00
< / div >
< div class = "modal-body" >
< form role = "form" >
< div class = "row" >
2018-02-03 14:06:59 +00:00
< div class = "form-group col-md-12" >
2015-03-06 11:40:14 +00:00
< label class = "control-label" for = "streamurl" > Stream URL< / label >
< input type = "text" class = "form-control" id = "streamurl" / >
< / div >
< / div >
< / form >
< / div >
< div class = "modal-footer" >
2018-05-14 23:13:43 +00:00
< button type = "button" class = "btn btn-secondary" data-dismiss = "modal" > Cancel< / button >
< button type = "button" class = "btn btn-success" onclick = "addStream();" > Add Stream< / button >
2015-03-06 11:40:14 +00:00
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
< / div > <!-- /.modal -->
2018-04-04 17:40:12 +00:00
2015-09-02 17:24:52 +00:00
< div class = "modal fade" id = "savequeue" tabindex = "-1" role = "dialog" aria-labelledby = "savequeueLabel" aria-hidden = "true" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
2018-05-14 23:13:43 +00:00
< h5 class = "modal-title" id = "savequeueLabel" > < span class = "material-icons" > save< / span > Save Queue< / h5 >
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" >
< span aria-hidden = "true" > × < / span >
< / button >
2015-09-02 17:24:52 +00:00
< / div >
< div class = "modal-body" >
< form role = "form" >
< div class = "row" >
< div class = "form-group col-md-9" >
< label class = "control-label" for = "playlistname" > Playlist Name< / label >
< input type = "text" class = "form-control" id = "playlistname" / >
< / div >
< / div >
< / form >
< / div >
< div class = "modal-footer" >
2018-05-14 23:13:43 +00:00
< button type = "button" class = "btn btn-secondary" data-dismiss = "modal" > Cancel< / button >
< button type = "button" class = "btn btn-success" onclick = "saveQueue();" > Save Queue< / button >
2015-09-02 17:24:52 +00:00
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
< / div > <!-- /.modal -->
2015-03-06 11:40:14 +00:00
2018-05-14 23:13:43 +00:00
< script src = "js/jquery-3.3.1.min.js" > < / script >
2018-05-24 17:50:05 +00:00
< script src = "js/js.cookie.js" > < / script >
2018-05-17 22:10:57 +00:00
< script src = "js/bootstrap.min.js" > < / script >
2018-05-21 23:36:05 +00:00
< script src = "js/bootstrap-slider.min.js" > < / script >
2018-05-17 22:10:57 +00:00
< script src = "js/bootstrap-notify.min.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 >
< / html >