Fix index.html

This commit is contained in:
calzoneman 2013-05-01 17:57:59 -05:00
parent 288da92e6f
commit b36fd3518e
1 changed files with 6 additions and 1 deletions

View File

@ -91,7 +91,7 @@
host = host.replace("http://", "");
if(host.indexOf("/") != -1)
host = host.substring(0, host.indexOf("/"));
host = "http://";
host = "http://" + host;
setInterval(refresh, 10000);
refresh();
function refresh() {
@ -119,6 +119,11 @@
}
});
}
$("#channel").keydown(function(ev) {
if(ev.keyCode == 13) {
document.location = host + "/r/" + $("#channel").val();
}
});
</script>
</body>
</html>