mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Adde checkbox for autoplayin embed
This commit is contained in:
@@ -154,8 +154,12 @@
|
||||
</div>
|
||||
<div id="embed" class="modal">
|
||||
<div class="modal-content">
|
||||
<h4>Embed code (in beta)</h4>
|
||||
<p>Copy the code in the textarea, and paste on your website. Remove the & and autoplay, to prevent the player to autoplay.</p>
|
||||
<h4>Embed code</h4>
|
||||
<p>Copy the code in the textarea, and paste on your website.</p>
|
||||
<p>
|
||||
<input type="checkbox" id="autoplay" checked="checked" />
|
||||
<label for="autoplay">Autoplay</label>
|
||||
</p>
|
||||
<textarea id="embed-area"></textarea>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user