mirror of https://github.com/calzoneman/sync.git
Fix index.html
This commit is contained in:
parent
288da92e6f
commit
b36fd3518e
|
@ -91,7 +91,7 @@
|
||||||
host = host.replace("http://", "");
|
host = host.replace("http://", "");
|
||||||
if(host.indexOf("/") != -1)
|
if(host.indexOf("/") != -1)
|
||||||
host = host.substring(0, host.indexOf("/"));
|
host = host.substring(0, host.indexOf("/"));
|
||||||
host = "http://";
|
host = "http://" + host;
|
||||||
setInterval(refresh, 10000);
|
setInterval(refresh, 10000);
|
||||||
refresh();
|
refresh();
|
||||||
function refresh() {
|
function refresh() {
|
||||||
|
@ -119,6 +119,11 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
$("#channel").keydown(function(ev) {
|
||||||
|
if(ev.keyCode == 13) {
|
||||||
|
document.location = host + "/r/" + $("#channel").val();
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue