cyp/app/index.html

194 lines
5.2 KiB
HTML
Raw Permalink Normal View History

2019-03-20 03:45:23 +08:00
<!doctype html>
<html>
2019-03-20 05:56:39 +08:00
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Control Your Player</title>
2020-03-10 05:24:31 +08:00
<link rel="stylesheet" href="cyp.css" />
2022-01-13 13:27:15 +08:00
<style>
/* Float cancel and delete buttons and add an equal width */
.popupbtn {
background-color: rgb(141, 0, 0);
color: rgb(255, 255, 255);
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
opacity: 0.9;
display: block !important;
box-sizing: border-box;
}
.popupbtn:hover {
opacity:1;
}
/* Add padding and center-align text to the container */
.popupcontainer {
padding: 16px;
text-align: center;
}
/* The Modal (background) */
.popupmodal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 2; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: #474e5d;
padding-top: 50px;
}
/* Modal Content/Box */
.popupmodal-content {
background-color: #fefefe;
margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
border: 1px solid #888;
width: 80%; /* Could be more or less, depending on screen size */
}
/* Style the horizontal ruler */
.popup-hr {
border: 1px solid #f1f1f1;
margin-bottom: 25px;
}
/* The Modal Close Button (x) */
.popup-close {
position: absolute;
right: 35px;
top: 15px;
font-size: 40px;
font-weight: bold;
color: #f1f1f1;
}
.popup-close:hover,
.popup-close:focus {
color: #f44336;
cursor: pointer;
}
/* Clear floats */
.popup-clearfix::after {
content: "";
clear: both;
display: table;
}
</style>
2020-06-19 14:29:09 +08:00
<link rel="icon" href="https://emojimage.toad.cz/🎵" />
2020-06-27 04:26:44 +08:00
<meta name="mobile-web-app-capable" content="yes" />
2019-03-20 05:56:39 +08:00
</head>
<body>
2022-01-13 13:27:15 +08:00
<div id="warningpopup" class="popupmodal">
<span onclick="document.getElementById('warningpopup').style.display='none'" class="popup-close" title="x">×</span>
<div class="popupmodal-content">
<div class="popupcontainer">
<h2>Warning</h2>
<p>Be aware there may be other users listening to the same stream.</p>
<p>Pausing or changing volume on the server will affect them as well.</p>
<p>Please avoid server-side pausing or volume change if possible.</p>
<p>You can find client-side volume and pause control in the Settings Panel.</p>
<div class="popup-clearfix">
<button type="button" onclick="document.getElementById('warningpopup').style.display='none'" class="popupbtn">OK</button>
</div>
</div>
</div>
</div>
2020-03-09 16:26:10 +08:00
<cyp-app theme="dark" color="dodgerblue">
2019-03-20 05:56:39 +08:00
<header>
2020-03-09 05:11:46 +08:00
<cyp-player>
2019-03-21 17:32:58 +08:00
<span class="art"></span>
2019-03-22 23:17:10 +08:00
<div class="info">
2020-03-15 05:11:14 +08:00
<span class="title"></span>
<span class="subtitle"></span>
2019-04-11 19:34:24 +08:00
<div class="timeline">
<span class="elapsed"></span>
2020-05-06 19:27:44 +08:00
<x-range step="0.1"></x-range>
2019-04-11 19:34:24 +08:00
<span class="duration"></span>
</div>
2019-03-22 23:17:10 +08:00
</div>
2019-03-29 05:52:57 +08:00
<div class="controls">
2019-04-11 19:34:24 +08:00
<div class="playback">
<button class="prev" data-icon="rewind"></button>
<button class="play" data-icon="play"></button>
<button class="pause" data-icon="pause"></button>
<button class="next" data-icon="fast-forward"></button>
</div>
<div class="volume">
2020-05-06 19:55:01 +08:00
<button class="mute" data-icon="volume-high volume-off"></button>
2019-04-26 19:48:23 +08:00
<x-range></x-range>
2019-04-11 19:34:24 +08:00
</div>
2019-03-29 05:52:57 +08:00
</div>
2019-03-27 00:07:52 +08:00
<div class="misc">
2019-03-29 05:52:57 +08:00
<button class="repeat" data-icon="repeat"></button>
<button class="random" data-icon="shuffle"></button>
2019-03-27 00:07:52 +08:00
</div>
2020-03-09 05:11:46 +08:00
</cyp-player>
2019-03-20 05:56:39 +08:00
</header>
<main>
2020-03-09 22:26:36 +08:00
<cyp-queue></cyp-queue>
2020-03-12 05:46:28 +08:00
<cyp-playlists></cyp-playlists>
<cyp-library></cyp-library>
2020-03-16 06:14:55 +08:00
<cyp-yt></cyp-yt>
2020-03-09 05:11:46 +08:00
<cyp-settings>
2019-04-03 01:52:53 +08:00
<dl>
<dt>Theme</dt>
<dd>
<select name="theme">
2020-03-09 05:11:46 +08:00
<option value="auto">Auto</option>
2019-04-03 01:52:53 +08:00
<option value="dark">Dark</option>
<option value="light">Light</option>
</select>
</dd>
<dt>Color</dt>
<dd>
<label>
<input type="radio" name="color" value="dodgerblue" />
Blue
</label>
<label>
<input type="radio" name="color" value="darkorange" />
Orange
</label>
<label>
<input type="radio" name="color" value="limegreen" />
Green
</label>
</dd>
2020-03-18 05:02:12 +08:00
<dt>YouTube results</dt>
<dd>
<select name="yt-limit">
<option value="1">1</option>
<option value="3">3</option>
<option value="5">5</option>
<option value="10">10</option>
</select>
</dd>
2019-04-03 01:52:53 +08:00
</dl>
2020-03-09 05:11:46 +08:00
</cyp-settings>
2019-03-20 05:56:39 +08:00
</main>
<footer>
2020-03-09 05:11:46 +08:00
<cyp-menu>
<button data-for="queue" data-icon="music">
<div>
<span>Queue</span>
2020-03-17 05:57:13 +08:00
<span class="queue-length"></span>
2020-03-09 05:11:46 +08:00
</div>
</button>
<button data-for="playlists" data-icon="playlist-music"><span>Playlists</span></button>
<button data-for="library" data-icon="library-music"><span>Library</span></button>
<button data-for="yt" data-icon="download"><span>YouTube</span></button>
<button data-for="settings" data-icon="settings"><span>Settings</span></button>
</cyp-menu>
</footer>
</cyp-app>
2020-03-10 05:24:31 +08:00
2020-12-27 03:46:42 +08:00
<script type="module" src="cyp.js?2"></script>
2019-03-20 05:56:39 +08:00
</body>
</html>