relatif link

This commit is contained in:
Azlux 2020-02-25 01:13:32 +01:00
parent 4f6990d4da
commit c6fdf88ee2
2 changed files with 17 additions and 17 deletions

@ -1 +1 @@
Subproject commit 437d2ebec6e18b5ad69b77020596c250a5e1b785
Subproject commit c728985baf0a9dae731412b7dee1e434f8740213

View File

@ -97,8 +97,8 @@
<head>
<meta charset="UTF-8">
<title>botamusique web interface</title>
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/css/custom.css">
<link rel="stylesheet" href="static/css/bootstrap.min.css">
<link rel="stylesheet" href="static/css/custom.css">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</head>
@ -121,33 +121,33 @@
<div class="card-body">
<div class="btn-group" style="margin-bottom: 5px;">
<button type="button" class="btn btn-primary btn-space"
onclick="request('/post', {action : 'randomize'})">
onclick="request('post', {action : 'randomize'})">
<i class="fas fa-random" aria-hidden="true"></i>
</button>
<button type="button" id="play-btn" class="btn btn-info btn-space"
onclick="request('/post', {action : 'resume'})" disabled>
onclick="request('post', {action : 'resume'})" disabled>
<i class="fas fa-play" aria-hidden="true"></i>
</button>
<button type="button" id="pause-btn" class="btn btn-warning btn-space"
onclick="request('/post', {action : 'pause'})" disabled>
onclick="request('post', {action : 'pause'})" disabled>
<i class="fas fa-pause" aria-hidden="true"></i>
</button>
<button type="button" id="stop-btn" class="btn btn-danger btn-space"
onclick="request('/post', {action : 'stop'})" disabled>
onclick="request('post', {action : 'stop'})" disabled>
<i class="fas fa-stop" aria-hidden="true"></i>
</button>
</div>
<div class="btn-group" style="float: right;">
<button type="button" class="btn btn-warning btn-space"
onclick="request('/post', {action : 'volume_down'})">
onclick="request('post', {action : 'volume_down'})">
<i class="fa fa-volume-down" aria-hidden="true"></i>
</button>
<button type="button" class="btn btn-warning btn-space"
onclick="request('/post', {action : 'volume_up'})">
onclick="request('post', {action : 'volume_up'})">
<i class="fa fa-volume-up" aria-hidden="true"></i>
</button>
</div>
@ -170,7 +170,7 @@
<div class="btn-group">
<button type="button" class="btn btn-danger btn-space"
onclick="request('/post', {action : 'clear'})">
onclick="request('post', {action : 'clear'})">
<i class="fas fa-trash-alt" aria-hidden="true"></i> Clear Playlist
</button>
</div>
@ -285,9 +285,9 @@
</div>
</div>
<script src="/static/js/jquery-3.4.1.min.js" crossorigin="anonymous"></script>
<script src="/static/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="/static/js/fontawesome.all.js" crossorigin="anonymous"></script>
<script src="static/js/jquery-3.4.1.min.js" crossorigin="anonymous"></script>
<script src="static/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="static/js/fontawesome.all.js" crossorigin="anonymous"></script>
<script>
$('#uploadSelectFile').on('change', function () {
@ -305,7 +305,7 @@
function request(url, _data, refresh=false){
$.ajax({
type: 'POST',
url: '/post',
url: 'post',
data : _data,
statusCode : {
200 : function(data) {
@ -336,7 +336,7 @@
function updatePlaylist(){
$.ajax({
type: 'GET',
url: '/playlist',
url: 'playlist',
statusCode : {
200 : displayPlaylist
}
@ -365,7 +365,7 @@
setInterval(function(){
$.ajax({
type: 'POST',
url : '/post',
url : 'post',
statusCode : {
200 : function(data){
if(data.ver !== playlist_ver){