Added channel change on placeholder

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-27 22:35:58 +01:00
parent a4b8177723
commit 0f6708513e
4 changed files with 11 additions and 5 deletions

View File

@@ -7,7 +7,6 @@ var Crypt = {
conf_arr = Crypt.decrypt(Crypt.getCookie("_opt"), "_opt");
conf_pass = Crypt.decrypt(Crypt.getCookie(chan.toLowerCase()), chan.toLowerCase());
}catch(err){
console.log("err")
conf_arr = Crypt.decrypt(Crypt.create_cookie("_opt"), "_opt");
conf_pass = Crypt.decrypt(Crypt.create_cookie(chan.toLowerCase()), chan.toLowerCase());
}

View File

@@ -199,7 +199,7 @@ $(document).ready(function (){
if(pad >= 100)
window.location.href = 'https://www.youtube.com/v/0IGsNdVoEh0?autoplay=1&showinfo=0&autohide=1';
});
/*if(navigator.userAgent.toLowerCase().indexOf("android") > -1){
//console.log("android");
if(Nochan.getCookie("show_prompt") == ""){
@@ -230,3 +230,10 @@ $(document).ready(function (){
+ git_info[0].commit.message+"<br");
});
$(".listen-button").click(function(){
//console.log($(".room-namer").attr("placeholder"));
if($(".room-namer").val() == ""){
window.location = "?chan="+$(".room-namer").attr("placeholder");
}
});