Adde checkbox for autoplayin embed

This commit is contained in:
Kasper Rynning-Tønnesen
2016-03-04 14:37:17 +01:00
parent 6b51534597
commit 6b12a61ce8
3 changed files with 16 additions and 4 deletions

View File

@@ -292,6 +292,14 @@ $(window).focus(function(){
}
});
$(document).on("change", "#autoplay", function() {
if(this.checked) {
$("#embed-area").val('<embed src="https://zoff.no/embed.html#' + chan.toLowerCase() + '&autplay" width="600px" height="300px">');
} else {
$("#embed-area").val('<embed src="https://zoff.no/embed.html#' + chan.toLowerCase() + '" width="600px" height="300px">');
}
});
$(document).on("click", "#chat-btn", function(){
$("#text-chat-input").focus();
//$("#chat-btn").css("color", "white");