ClaptrapBot/src/main/resources/templates/music.html

373 lines
14 KiB
HTML
Raw Normal View History

2018-02-20 17:23:22 +01:00
<!DOCTYPE html>
2017-12-22 19:20:26 +01:00
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
2018-05-14 09:29:55 +02:00
<title>Music Control - Claptrap Bot</title>
<link rel="icon"
type="image/x-icon"
href="favicon.png"/>
2017-12-22 19:20:26 +01:00
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
<link href="/css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
2018-09-13 09:35:50 +02:00
<link rel="manifest" href="/manifest.json"/>
2018-09-13 09:47:10 +02:00
<meta name="theme-color" content="#263238"/>
<style>
@media only screen and (max-width: 1200px) {
#modalAdd{
width: 95%;
}
}
@media only screen and (min-width: 1200px) {
#modalAdd{
width: 80%;
}
}
#modalAdd{
height: 85% !important;
max-height: 100% !important;
}
.avatar>img{
position: absolute;
width: 80px;
height: auto;
overflow: hidden;
left: 15px;
display: inline-block;
vertical-align: middle;
}
.collection-item.avatar{
padding-left: 105px !important;
padding-right: 75px;
}
</style>
2018-09-13 09:35:50 +02:00
2017-12-22 19:20:26 +01:00
</head>
<body class="blue-grey lighten-5" >
2018-11-20 18:37:28 +01:00
<!--/*@thymesVar id="guild_name" type="java.lang.String"*/-->
<!--/*@thymesVar id="redirect_url" type="java.lang.String"*/-->
<!--/*@thymesVar id="isAdmin" type="java.lang.Boolean"*/-->
<div th:replace="header :: header ('music',${guild_name},${redirect_url}, ${isAdmin})">...</div>
2017-12-22 19:20:26 +01:00
<div class="section no-pad-bot main" id="index-banner">
2017-12-26 16:25:35 +01:00
<div class="row">
2018-09-12 09:28:55 +02:00
<div class="col l8 s12 m12">
2017-12-26 16:25:35 +01:00
<div class="row center" >
<img class="responsive-img z-depth-3" id="music_img" style="max-width: 30%" src=""/>
2017-12-22 19:20:26 +01:00
</div>
2017-12-26 16:25:35 +01:00
<h4 class="center" id="music_text"></h4>
2018-01-08 10:46:24 +01:00
<div class="row center" style="margin-bottom: 0px">
2018-09-12 09:28:55 +02:00
<div class="progress col l6 offset-l3 m10 offset-m1 s10 offset-s1 z-depth-3">
2017-12-26 16:25:35 +01:00
<div class="determinate" id="music_progress" style="width: 0%"></div>
</div>
2017-12-22 19:20:26 +01:00
</div>
2018-01-08 10:46:24 +01:00
<div class="row center">
2018-09-12 09:28:55 +02:00
<div class="col l2 offset-l3 m2 offset-m1 s2 offset-s1 left-align" style="padding: 0px" id="current_time">0:00</div>
<div class="col l2 offset-l2 m2 offset-m6 s2 offset-s6 right-align " style="padding: 0px" id="total_time">0:00</div>
2018-01-08 10:46:24 +01:00
</div>
2017-12-26 16:25:35 +01:00
<div class="row center">
2018-09-12 09:28:55 +02:00
<div class="col l2 offset-l3 m4 s4 center">
2018-02-20 17:23:22 +01:00
<a class="btn-large red darken-4 z-depth-3 waves-effect waves-light" id="btn_stop">
2017-12-26 16:25:35 +01:00
<i class="material-icons medium">stop</i>
</a>
</div>
2018-09-12 09:28:55 +02:00
<div class="col l2 m4 s4 center">
2018-02-20 17:23:22 +01:00
<a class="btn-large green darken-4 z-depth-3 waves-effect waves-light" id="btn_play">
2017-12-26 16:25:35 +01:00
<i class="material-icons medium">play_arrow</i>
</a>
</div>
2018-09-12 09:28:55 +02:00
<div class="col l2 m4 s4 center">
2018-02-20 17:23:22 +01:00
<a class="btn-large light-blue darken-4 z-depth-3 waves-effect waves-light" id="btn_next">
2017-12-26 16:25:35 +01:00
<i class="material-icons">skip_next</i>
</a>
</div>
2017-12-22 19:20:26 +01:00
</div>
2017-12-26 16:25:35 +01:00
<div class="row center">
2018-09-12 09:28:55 +02:00
<div class="col offset-l5 l2 m2 offset-m5 s2 offset-s5 center">
2018-02-20 17:23:22 +01:00
<a class="btn black z-depth-3 waves-effect waves-light modal-trigger" href="#modal_current_info" id="btn_info">
2017-12-26 16:25:35 +01:00
<i class="material-icons">info</i>
</a>
</div>
</div>
<div class="row center">
2018-09-12 09:28:55 +02:00
<div class="col offset-l5 l2 m4 offset-m4 s4 offset-s4 center">
<a class="btn-large red accent-4 z-depth-3 waves-effect waves-light" id="btn_disconnect">
<i class="material-icons">call_end</i>
</a>
</div>
2017-12-22 19:20:26 +01:00
</div>
2017-12-22 19:20:26 +01:00
</div>
2018-09-12 09:28:55 +02:00
<div class="col l4 m12 s12" >
<table>
<thead>
<tr>
<th style="padding: 0px;">
<div class="row center valign-wrapper" style="margin: 0px">
2018-09-12 09:28:55 +02:00
<div class="col l3 m5 s5 center blue-grey-text text-darken-3"><h5><b>Playlist</b></h5></div>
<div class="col l3 m2 s2 center" style="padding-right: 0px; padding-left: 0px">
2018-02-20 17:23:22 +01:00
<a class="waves-effect waves-light btn modal-trigger red darken-4" id="flush_btn"><i class="material-icons">delete_sweep</i></a>
2018-01-08 11:05:14 +01:00
</div>
2018-09-12 09:28:55 +02:00
<div class="col l3 m2 s2 center" style="padding-right: 0px; padding-left: 0px">
<!-- Modal Trigger -->
2018-02-20 17:23:22 +01:00
<a class="waves-effect waves-light btn modal-trigger green darken-4" id="add_btn" href="#modalAdd"><i class="material-icons">add_circle_outline</i></a>
</div>
2018-09-12 09:28:55 +02:00
<div class="col l3 m2 s2 center " style="padding-left: 0px">
2018-03-06 17:19:46 +01:00
<div class="row switch blue-grey-text text-darken-3" style="margin-bottom: 0px">
AutoFlow
</div>
<div class="row switch tooltipped" data-position="bottom" data-delay="50" data-tooltip="Experimental!">
2018-03-06 17:19:46 +01:00
<label>
<input type="checkbox" id="autoflow"/>
<span class="lever"></span>
</label>
</div>
</div>
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<ul id="playlist_list" class="collapsible popout" data-collapsible="accordion" style="margin: 0px">
</ul>
</td>
</tr>
</tbody>
</table>
2017-12-26 16:25:35 +01:00
2017-12-22 19:20:26 +01:00
</div>
2017-12-26 16:25:35 +01:00
2017-12-22 19:20:26 +01:00
</div>
2017-12-26 16:25:35 +01:00
2018-01-07 23:19:47 +01:00
<!-- Music -->
<div id="modal_current_info" class="modal bottom-sheet">
2017-12-26 16:25:35 +01:00
<div class="modal-content">
<ul class="collection">
<li class="collection-item " id="modal_title"></li>
<li class="collection-item " id="modal_author"></li>
<li class="collection-item " id="modal_lenght"></li>
<li class="collection-item " id="modal_url"></li>
<li class="collection-item " id="modal_submit"></li>
2017-12-26 16:25:35 +01:00
</ul>
</div>
</div>
2017-12-22 19:20:26 +01:00
</div>
2018-01-07 23:19:47 +01:00
<!--Add Modal-->
<div id="modalAdd" class="modal modal-fixed-footer ">
<div class="modal-content" style="padding-bottom: 0px">
<div class="row valign-wrapper">
<h3 class="col l12 m12 s12 center"> Add Music</h3>
</div>
<div class="row" style="margin-bottom: 0px">
<form class="col l12 m12 s12">
<div class="row" style="margin-bottom: 0">
<div class="input-field col offset-l1 l9 m10 s10" style="padding-left: 0px; padding-right: 0px">
<!--<i class="material-icons prefix">link</i>-->
<input id="input_search" type="text" class="validate"/>
<label for="input_search">Search</label>
</div>
<div class="input-field col l2 m2 s2" style="margin-top: 22px">
<button class="btn waves-effect waves-light green darken-4 white-text" id="btn_search"><i class="material-icons">search</i></button>
</div>
</div>
<div class="row">
<div class="col s12 m12 l12 center scale-transition scale-out hide" id="search_load" style="margin-top: 25px">
<div class="preloader-wrapper big active">
<div class="spinner-layer spinner-blue-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
<ul class="collection col l12 m12 s12 scale-transition scale-out" id="search_result" style="padding: 0">
</ul>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<span style="margin-right: 10px">
<label>
<input name="group1" type="radio" checked="checked" id="bottom"/>
<span>Bottom</span>
</label>
</span>
<span style="margin-right: 10px">
<label>
<input name="group1" type="radio" />
<span>Top</span>
</label>
</span>
<a href="#" class="modal-action modal-close waves-effect waves-green btn-flat">Close</a>
</div>
</div>
2018-01-07 23:19:47 +01:00
<!-- Playlist template-->
2017-12-26 16:25:35 +01:00
<li id="playlist_template" style="visibility: hidden">
<div class="collapsible-header"><i class="material-icons">drag_handle</i>@title</div>
<div class="collapsible-body">
<ul class="collection">
<li class="collection-item">Author: @author</li>
<li class="collection-item">Duration: @lenght</li>
2018-01-07 23:19:47 +01:00
<li class="collection-item">URL: <a target="_blank" href="@url">@url</a></li>
<li class="collection-item">Submitted by: @user</li>
2018-01-13 19:12:02 +01:00
<li class="collection-item center">
<a class="btn red darken-4 z-depth-3 waves-effect waves-light btn_dell_playlist" data_url="@url">
<i class="material-icons medium">delete</i>
</a>
</li>
2017-12-26 16:25:35 +01:00
</ul>
</div>
</li>
2017-12-22 19:20:26 +01:00
<!-- Modal Chanels -->
2018-01-12 19:14:43 +01:00
<div id="modalChanels" class="modal">
<div class="modal-content" style="padding-bottom: 0px">
<div class="row" style="margin-bottom: 0px">
2018-09-12 09:28:55 +02:00
<h3 class="col l12 m12 s12 center">Vocal Channels</h3>
<div class="col offset-l4 l4 m4 offset-m4 s8 offset-s2 center">
2018-04-30 16:57:43 +02:00
<form id="channelForm" action="#" class="left-align">
2018-01-12 19:14:43 +01:00
</form>
</div>
</div>
</div>
<div class="modal-footer">
2018-04-26 16:58:01 +02:00
<a href="/" class="modal-action modal-close waves-effect waves-red btn-flat ">Cancel</a>
2018-01-12 19:14:43 +01:00
<a href="#!" id="btn_ok_channel" class="modal-action modal-close waves-effect waves-green btn-flat disabled">Connect</a>
2018-04-26 16:58:01 +02:00
2018-01-12 19:14:43 +01:00
</div>
</div>
2018-02-26 16:23:56 +01:00
<!--Loading Modal-->
2018-02-26 16:23:56 +01:00
<div id="modal_loading" class="modal valign-wrapper">
<div class="modal-content" >
<div class="row center">
2018-09-12 09:28:55 +02:00
<h3 class="col l12 m12 s12 center">Please wait</h3>
2018-02-26 16:23:56 +01:00
</div>
<div class="row center" >
<div class="preloader-wrapper big active">
<div class="spinner-layer spinner-blue">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-red">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-yellow">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-green">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
</div>
</div>
2018-01-12 19:14:43 +01:00
<p id="radioTemplate" class="" style="visibility: hidden">
2018-04-30 16:51:09 +02:00
<label>
<input name="vocalRadio" class="with-gap" type="radio" value="@id" id="@id"/>
<span for="@id">@name</span>
</label>
2018-01-12 19:14:43 +01:00
</p>
2017-12-22 19:20:26 +01:00
<!-- Scripts-->
2018-04-30 16:51:09 +02:00
<script th:src="@{/js/jquery-3.3.1.min.js}"></script>
2018-02-16 14:18:28 +01:00
<script>
var needLogin = true;
</script>
2018-02-16 14:18:28 +01:00
<script th:src="@{/js/materialize.js}"></script>
<script th:src="@{/js/music.js}"></script>
<script th:src="@{/js/navabar.js}"></script>
<script th:src="@{/js/js.cookie.js}"></script>
2018-09-13 09:35:50 +02:00
<script th:src="@{/js/workerRegister.js}"></script>
<script th:src="@{/js/fontawesome.js}"></script>
2018-09-13 09:35:50 +02:00
2017-12-22 19:20:26 +01:00
</body>
</html>