Updated look of remote on mobile, and fixed changing channel remotely

This commit is contained in:
Kasper Rynning-Tønnesen
2016-04-28 17:07:01 +02:00
parent be08330a1a
commit bce84ff56b
6 changed files with 26 additions and 9 deletions

View File

@@ -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() {