mopidy-musicbox-webclient/index.html
2012-12-29 00:07:12 +01:00

269 lines
9.3 KiB
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="imagetoolbar" content="no" />
<meta content="true" name="MSSmartTagsPreventParsing" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta name = "viewport" content = "width=device-width, initial-scale = 1.0, user-scalable = no" />
<!-- <meta name="viewport" content="width=device-width, user-scalable=no"> -->
<!-- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> -->
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<link rel="apple-touch-icon" href="img/icons/headphones_32x28.png" />
<script src="js/html5slider.js"></script>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta charset="utf-8">
<title>Mopidy</title>
<meta name="description" content="">
<meta name="author" content="Wouter van Wijk">
<meta name="copyright" content="(c) 2012 Wouter van Wijk" />
<!-- Styles -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/ws.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="/mopidy/mopidy.min.js"></script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a type="button" class="btn btn-navbar" style="margin-left: 5px" data-toggle="collapse" data-target=".nav-collapse">
<img src="img/icons/arrow_down_16x16.png" /></a>
<div class="nav pull-right" id="mainmenu">
<a href="#playlists"><img src="img/icons/list_nested_24x21.png" /><div class="nav-collapse menutext nobreak hidden-phone"> Playlists</div></a>
<a href="#current"><img src="img/icons/list_24x21.png" /><div class="nav-collapse nobreak menutext hidden-phone"> Queue</div></a>
<a href="#search"><img src="img/icons/magnifying_glass_24x24.png" /><div class="nav-collapse nobreak menutext hidden-phone"> Search</div></a>
</div>
<div id="controlbt" class="nav span2">
<span><a href="#" onclick="doPrevious(); return false"><img src="img/icons/first_16x16.png" alt="Previous Track" /></a></span>
<span id="playpause"><a href="#" onclick="doPlayPause(); return false"><img src="img/icons/pause_18x24.png" style="margin-top: 8px;" alt="Play" id="playbt" /></a></span>
<span><a href="#" onclick="doNext(); return false"><img src="img/icons/last_16x16.png" alt="Next Track" class="breakafter" /></a></span>
</div>
<div class="nav nav-collapse span2">
<a href="#" onclick="doShuffle(); return false"><img src="img/icons/loop_alt2_16x14.png" alt="" id="shufflebt" /></a>
<a href="#" onclick="doRepeat(); return false"><img src="img/icons/reload_12x14.png" id="repeatbt" alt="" /></a>
<a href="#" onclick="doMute(); return false;"><img id="mutebt" src="img/icons/volume_16x12.png" alt="" /></a>
<!-- <a href="#plus" class="dropdown-toggle" data-toggle="dropdown"><img src="img/icons/plus_12x12.png" alt="" /></a>
<ul class="dropdown-menu">
<li>
<a href="#buttonGroups">Add to playlist</a>
</li>
<li>
<a href="#buttonDropdowns">Favorite Song</a>
</li>
<li>
<a href="#buttonDropdowns">Favorite Album</a>
</li>
<li>
<a href="#buttonDropdowns">Favorite Artist</a>
</li>
</ul>
-->
</div>
<div id="songinfo" class="nav nav-collapse span4">
<span id="infoname"></span>
<br/>
<span id="infoartist"></span>
<br/>
</div>
<!-- songinfo -->
</div><!-- /container -->
<div class="nav-collapse" id="slidercontainer">
<span id="songelapsed">0:00</span>
<input id="trackslider" type="range" onmousedown="pauseTimer();" onchange="doSeekPos(this.value);" class="nobreak" />
<span id="songlength" class="pull-right">0:00</span>
</div>
</div><!-- /.navbar-inner -->
</div><!-- /.navbar -->
<div class="container-fluid">
<div class="row-fluid">
<div class="span11 content" id="playlistspane">
<div class="row-fluid">
<div class="span4">
<!-- <h2>Playlists</h2> -->
<p>
<ul id="playlistslist"></ul>
</p>
<img src="img/loader.gif" id="playlistsloader" class="loader" />
</div>
<div class="span8" style="display: none" id="playlisttablediv">
<table class="table table-striped">
<thead>
<tr>
<!-- <th>#</th> -->
<th>Title</th>
<th>Artist</th>
<th>Album</th>
<th>Length</th>
</tr>
</thead>
<tbody id="playlisttable"></tbody>
</table>
<img src="img/loader.gif" id="playlistloader" class= "loader" />
</div>
</div><!--/row-->
</div>
<div class="span11 content" id="currentpane">
<h4>Current Playlist</h4>
<table class="table table-striped">
<thead>
<tr>
<!-- <th>#</th> -->
<th>Title</th>
<th>Artist</th>
<th>Album</th>
<th>Length</th>
</tr>
</thead>
<tbody id="currenttable"></tbody>
</table>
<img src="img/loader.gif" id="currentloader" class= "loader" />
</div>
<div class="span11 content" id="albumspane">
<div class="row-fluid">
<div class="span4">
<h4>Album</h4>
<h3 id="h_albumname"></h3>
<h5 id="h_albumartist"></h5>
<p>
<ul id="albumslist"></ul>
</p>
</div>
</div><!--/row-->
<table class="table table-striped">
<thead>
<tr>
<th>Title</th>
<th>Artist</th>
<th>Album</th>
<th>Length</th>
</tr>
</thead>
<tbody id="albumstable"></tbody>
</table>
<img src="img/loader.gif" id="albumsloader" class= "loader" />
</div>
<div class="span11 content" id="artistspane">
<div class="row-fluid">
<div class="span4">
<h4>Artist</h4>
<h3 id="h_artistname"></h3>
<p>
<ul id="artistslist"></ul>
</p>
</div>
</div><!--/row-->
<table class="table table-striped">
<thead>
<tr>
<th>Title</th>
<th>Artist</th>
<th>Album</th>
<th>Length</th>
</tr>
</thead>
<tbody id="artiststable"></tbody>
</table>
<img src="img/loader.gif" id="artistsloader" class= "loader" />
</div>
<div class="content" id="searchpane">
<form>
<input id="searchinput" onkeypress="return searchPressed(event.keyCode);" type="text" class="search-query" placeholder="Search..." />
</form>
<img src="img/loader.gif" id="allresultloader" class= "loader" />
<div id="searchresults">
<div class="span5" id="searchartists">
<h4>Artists</h4>
<table class="table table-striped">
<tbody id="artistresulttable"></tbody>
</table>
</div>
<div class="span5" id="searchalbums">
<h4>Albums</h4>
<table class="table table-striped">
<tbody id="albumresulttable"></tbody>
</table>
</div>
<div class="span10" style="text-align: center" id="expandsearch"><a href="#" onclick="toggleSearch(); return false;"><img src="img/icons/arrow_down_16x16.png"></a></div>
<div class="span11" id="searchtracks">
<h4>Tracks</h4>
<table class="table table-striped">
<thead>
<tr>
<th>Title</th>
<th>Artist</th>
<th>Album</th>
<th>Length</th>
</tr>
</thead>
<tbody id="trackresulttable"></tbody>
</table>
</div>
</div>
</div> <!-- search div -->
</div><!--/row fluid-->
</div><!--/.fluid-container-->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- <script src="js/jquery.js"></script> -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-transition.js"></script>
<script src="js/bootstrap-alert.js"></script>
<script src="js/bootstrap-modal.js"></script>
<script src="js/bootstrap-dropdown.js"></script>
<script src="js/bootstrap-scrollspy.js"></script>
<script src="js/bootstrap-tab.js"></script>
<script src="js/bootstrap-tooltip.js"></script>
<script src="js/bootstrap-popover.js"></script>
<script src="js/bootstrap-button.js"></script>
<script src="js/bootstrap-collapse.js"></script>
<script src="js/bootstrap-carousel.js"></script>
<script src="js/bootstrap-typeahead.js"></script>
<script src="js/jquery.ba-hashchange.min.js"></script>
<!-- Import WS JavaScript Libraries. -->
<!-- <script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/web_socket.js"></script>
-->
<script src="js/functionsvars.js"></script>
<script src="js/ws.js"></script>
<script src="js/gui.js"></script>
</body>
</html>
html>