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>
|
2018-02-15 02:02:35 +01:00
|
|
|
|
<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"/>
|
2018-09-13 09:35:50 +02:00
|
|
|
|
|
2017-12-22 19:20:26 +01:00
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body class="blue-grey lighten-5" >
|
|
|
|
|
|
2018-09-10 14:53:56 +02:00
|
|
|
|
<div th:replace="header :: header ('music',${guild_name},${redirect_url})">...</div>
|
2018-02-15 02:02:35 +01:00
|
|
|
|
|
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>
|
2018-02-22 11:35:54 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</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">
|
2018-02-22 11:35:54 +01:00
|
|
|
|
<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>
|
2018-02-22 11:35:54 +01:00
|
|
|
|
|
2017-12-22 19:20:26 +01:00
|
|
|
|
</div>
|
2018-09-12 09:28:55 +02:00
|
|
|
|
<div class="col l4 m12 s12" >
|
2017-12-28 17:19:25 +01:00
|
|
|
|
<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">
|
2017-12-28 17:19:25 +01:00
|
|
|
|
<!-- 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>
|
2017-12-28 17:19:25 +01:00
|
|
|
|
|
|
|
|
|
<!-- Modal Structure -->
|
|
|
|
|
<div id="modalAdd" class="modal disabled">
|
|
|
|
|
<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"> Add Music</h3>
|
|
|
|
|
<form class="col l12 m12 s12">
|
2017-12-28 17:19:25 +01:00
|
|
|
|
<div class="row" style="margin-bottom: 0px">
|
2018-09-12 09:28:55 +02:00
|
|
|
|
<div class="input-field col l12 m12 s12" style="padding-left: 0px; padding-right: 0px">
|
2017-12-28 17:19:25 +01:00
|
|
|
|
<!--<i class="material-icons prefix">link</i>-->
|
|
|
|
|
<input id="input_link" type="text" class="validate"/>
|
|
|
|
|
<label for="input_link">Link</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row" style="margin-bottom: 0px">
|
2018-09-12 09:28:55 +02:00
|
|
|
|
<div class="col l12 m12 s12 center">
|
2017-12-28 17:19:25 +01:00
|
|
|
|
Playlist Limit
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row" style="margin-bottom: 0px">
|
|
|
|
|
<p class="range-field">
|
|
|
|
|
<input type="range" id="limit_range" min="1" max="300" step="1" value="30" />
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Cancel</a>
|
|
|
|
|
<a href="#!" id="btn_add_top" class="modal-action modal-close waves-effect waves-green btn-flat disabled">Add On Top</a>
|
|
|
|
|
<a href="#!" id="btn_add_bottom" class="modal-action modal-close waves-effect waves-green btn-flat disabled">Add On Bottom</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</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>
|
2018-03-06 17:23:34 +01:00
|
|
|
|
<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>
|
2017-12-28 17:19:25 +01:00
|
|
|
|
|
|
|
|
|
</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 -->
|
2018-02-19 18:08:54 +01:00
|
|
|
|
<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>
|
2018-02-19 18:08:54 +01:00
|
|
|
|
<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
|
|
|
|
|
|
|
|
|
<!-- 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>
|
2018-02-19 18:08:54 +01:00
|
|
|
|
<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
|
|
|
|
|
2018-01-12 19:14:43 +01:00
|
|
|
|
<!-- Modal Structure -->
|
|
|
|
|
<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
|
|
|
|
|
|
|
|
|
<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
|
|
|
|
|
2018-02-15 02:02:35 +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>
|
|
|
|
|
|
2017-12-22 19:20:26 +01:00
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|