This commit is contained in:
Aevann1 2022-01-18 15:44:53 +02:00
parent b0ae285ae6
commit 69152e63a2
4 changed files with 40 additions and 46 deletions

View file

@ -4,11 +4,9 @@ function formkey() {
else return null; else return null;
} }
document.addEventListener("DOMContentLoaded", function(){ var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); tooltipTriggerList.map(function(element){
tooltipTriggerList.map(function(element){
return new bootstrap.Tooltip(element); return new bootstrap.Tooltip(element);
});
}); });
function post_toast(url, reload, data) { function post_toast(url, reload, data) {

View file

@ -1,6 +1,4 @@
document.addEventListener("DOMContentLoaded", function () { document.getElementById('password-register').addEventListener('input', function () {
document.getElementById('password-register').addEventListener('input', function () {
var charCount = document.getElementById("password-register").value; var charCount = document.getElementById("password-register").value;
var id = document.getElementById("passwordHelpRegister"); var id = document.getElementById("passwordHelpRegister");
@ -13,9 +11,9 @@ document.addEventListener("DOMContentLoaded", function () {
id.classList.remove("d-none"); id.classList.remove("d-none");
successID.classList.add("d-none"); successID.classList.add("d-none");
} }
}); });
document.getElementById('username-register').addEventListener('input', function () { document.getElementById('username-register').addEventListener('input', function () {
const userName = document.getElementById("username-register").value; const userName = document.getElementById("username-register").value;
const id = document.getElementById("usernameHelpRegister"); const id = document.getElementById("usernameHelpRegister");
@ -40,6 +38,4 @@ document.addEventListener("DOMContentLoaded", function () {
}) })
} }
} }
});
}); });

View file

@ -207,7 +207,7 @@
</div> </div>
</nav> </nav>
<script src="/static/assets/js/header.js?a=202"></script> <script src="/static/assets/js/header.js?a=203"></script>
<style> <style>
.notif-count { .notif-count {

View file

@ -154,7 +154,7 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/signup.js?a=202"></script> <script src="/static/assets/js/signup.js?a=203"></script>
{% if hcaptcha %} {% if hcaptcha %}
<script src="/static/assets/js/hcaptcha.js?a=202"></script> <script src="/static/assets/js/hcaptcha.js?a=202"></script>