mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-20 16:29:35 +00:00
Updated look of remote on mobile, and fixed changing channel remotely
This commit is contained in:
@@ -2,7 +2,6 @@ var Mobile_remote = {
|
||||
id: "",
|
||||
|
||||
get_input: function(value) {
|
||||
console.log(value, Mobile_remote.id);
|
||||
if(Mobile_remote.id == "") {
|
||||
Mobile_remote.set_id(value);
|
||||
} else {
|
||||
@@ -11,7 +10,6 @@ var Mobile_remote = {
|
||||
},
|
||||
|
||||
set_id: function(id) {
|
||||
console.log(id);
|
||||
Mobile_remote.id = id;
|
||||
$("#pausebutton_remote").attr("disabled", false);
|
||||
$("#skipbutton_remote").attr("disabled", false);
|
||||
@@ -19,10 +17,12 @@ var Mobile_remote = {
|
||||
$("#skipbutton_remote").attr("disabled", false);
|
||||
$("#remote_channel").val("");
|
||||
$("#remote_channel").attr("placeholder", "Change channel");
|
||||
$("#remote_header").html("Controlling " + id);
|
||||
$("#volume-control-remote").css("display", "block");
|
||||
},
|
||||
|
||||
set_channel: function(channel_name) {
|
||||
socket.emit("id", [id, "channel", channel_name]);
|
||||
socket.emit("id", [Mobile_remote.id, "channel", channel_name]);
|
||||
},
|
||||
|
||||
play_remote: function() {
|
||||
|
||||
Reference in New Issue
Block a user