mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-13 01:42:20 +01:00
Volume control from the web interface.
This commit is contained in:
@ -73,6 +73,14 @@ $(function () {
|
||||
getSongs();
|
||||
});
|
||||
|
||||
$('#volume-down').click(function(){
|
||||
$.post('/api/volumedown', {csrfmiddlewaretoken: csrf_token});
|
||||
});
|
||||
|
||||
$('#volume-up').click(function(){
|
||||
$.post('/api/volumeup', {csrfmiddlewaretoken: csrf_token});
|
||||
});
|
||||
|
||||
getSongs();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user