mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Autoplaying celebration on api-complete
This commit is contained in:
@@ -11,7 +11,7 @@ window.addEventListener("DOMContentLoaded", function(e) {
|
|||||||
|
|
||||||
if(!Helper.mobilecheck()) {
|
if(!Helper.mobilecheck()) {
|
||||||
if(document.querySelector("#iframe-container")) {
|
if(document.querySelector("#iframe-container")) {
|
||||||
document.getElementById("iframe-container").insertAdjacentHTML("beforeend", '<iframe id="iframe" src="https://zoff.me/_embed#celebrate&808080" width="600px" height="300px"></iframe>');
|
document.getElementById("iframe-container").insertAdjacentHTML("beforeend", '<iframe id="iframe" src="https://zoff.me/_embed#celebrate&808080&autoplay" width="600px" height="300px" allow="autoplay"></iframe>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -24,7 +24,6 @@ window.addEventListener("DOMContentLoaded", function(e) {
|
|||||||
Helper.toggleClass(".submit", "disabled");
|
Helper.toggleClass(".submit", "disabled");
|
||||||
Helper.removeClass(".full-form-token", "hide");
|
Helper.removeClass(".full-form-token", "hide");
|
||||||
var captcha_response = grecaptcha.getResponse();
|
var captcha_response = grecaptcha.getResponse();
|
||||||
console.log(captcha_response);
|
|
||||||
Helper.ajax({
|
Helper.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "/api/apply",
|
url: "/api/apply",
|
||||||
|
|||||||
Reference in New Issue
Block a user