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>
|
||||||
<div id="embed" class="modal">
|
<div id="embed" class="modal">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<h4>Embed code (in beta)</h4>
|
<h4>Embed code</h4>
|
||||||
<p>Copy the code in the textarea, and paste on your website. Remove the & and autoplay, to prevent the player to autoplay.</p>
|
<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>
|
<textarea id="embed-area"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<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(){
|
$(document).on("click", "#chat-btn", function(){
|
||||||
$("#text-chat-input").focus();
|
$("#text-chat-input").focus();
|
||||||
//$("#chat-btn").css("color", "white");
|
//$("#chat-btn").css("color", "white");
|
||||||
|
|||||||
Reference in New Issue
Block a user