mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Things
This commit is contained in:
@@ -113,19 +113,6 @@ function chromecastListener(evt, data) {
|
||||
console.log("error parsing again");
|
||||
}
|
||||
console.log(json_parsed.type, typeof(json_parsed));
|
||||
if(json_parsed.type == 1) {
|
||||
console.log("it is 1");
|
||||
if(!$("#play").hasClass("hide")) {
|
||||
$("#play").addClass("hide");
|
||||
}
|
||||
$("#pause").removeClass("hide");
|
||||
} else if(json_parsed.type == 2) {
|
||||
console.log("it is 1");
|
||||
if(!$("#pause").hasClass("hide")) {
|
||||
$("#pause").addClass("hide");
|
||||
}
|
||||
$("#play").removeClass("hide");
|
||||
}
|
||||
//console.log(JSON.parse(json_parsed), json_parsed.type, json_parsed.type == 1, json_parsed.type == "1");
|
||||
switch(json_parsed.type){
|
||||
case -1:
|
||||
|
||||
Reference in New Issue
Block a user