Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
SOD/public/javascripts/layout.js

16 lines
494 B
JavaScript
Raw Normal View History

2020-09-27 17:52:35 +02:00
document.addEventListener("DOMContentLoaded", function() {
2020-09-27 20:43:11 +02:00
M.AutoInit();
2020-09-30 11:39:46 +02:00
M.updateTextFields();
2020-09-27 17:52:35 +02:00
});
function cb(token) {
document.querySelectorAll("div.recaptcha.recaptcha-cb").forEach(el => {
el.classList.remove("recaptcha-cb");
let input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", "g-recaptcha-response");
input.setAttribute("value", token);
el.appendChild(input);
});
}