mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2026-05-13 17:14:44 +02: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