radiopass
This commit is contained in:
@@ -17,6 +17,9 @@ window.onload = function(){
|
||||
else if (d.icestats.source.listenurl == radio_listen_url){
|
||||
console.log("transmitiendo radio");
|
||||
onliner(d); }
|
||||
else if (d.icestats.source.listenurl == radiop_listen_url){
|
||||
console.log("transmitiendo radio");
|
||||
onlinerp(d); }
|
||||
else {
|
||||
console.warn("otro canal");
|
||||
offline(); }}
|
||||
@@ -55,11 +58,11 @@ window.onload = function(){
|
||||
.on("click",function(){window.location="bcast";});
|
||||
dataUpdate();
|
||||
}
|
||||
function onliner(d){
|
||||
function onlinerp(d){
|
||||
d3.selectAll(".broadcast")
|
||||
.style("display","block");
|
||||
d3.selectAll("article.broadcast,p.broadcast")
|
||||
.on("click",function(){window.location="radio";});
|
||||
.on("click",function(){window.location="radiop";});
|
||||
dataUpdate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user