sneed
This commit is contained in:
parent
11e31b1943
commit
3015301c86
3 changed files with 37 additions and 37 deletions
|
@ -10,32 +10,6 @@ document.body.addEventListener('keydown', function(event) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 2FA toggle modal
|
|
||||||
|
|
||||||
$('#2faModal').on('hidden.bs.modal', function () {
|
|
||||||
|
|
||||||
var box = document.getElementById("2faToggle");
|
|
||||||
|
|
||||||
box.checked = !box.checked;
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
//email change
|
|
||||||
|
|
||||||
// Show confirm password field when user clicks email box
|
|
||||||
|
|
||||||
$('#new_email').on('input', function () {
|
|
||||||
|
|
||||||
var id = document.getElementById("email-password");
|
|
||||||
var id2 = document.getElementById("email-password-label");
|
|
||||||
var id3 = document.getElementById("emailpasswordRequired");
|
|
||||||
|
|
||||||
id.classList.remove("d-none");
|
|
||||||
id2.classList.remove("d-none");
|
|
||||||
id3.classList.remove("d-none");
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
//GIFS
|
//GIFS
|
||||||
|
|
||||||
// Identify which comment form to insert GIF into
|
// Identify which comment form to insert GIF into
|
||||||
|
|
|
@ -1,8 +1,37 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
|
{% include "bootstrap.html" %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
//email change
|
||||||
|
|
||||||
|
// Show confirm password field when user clicks email box
|
||||||
|
|
||||||
|
$('#new_email').on('input', function () {
|
||||||
|
|
||||||
|
var id = document.getElementById("email-password");
|
||||||
|
var id2 = document.getElementById("email-password-label");
|
||||||
|
var id3 = document.getElementById("emailpasswordRequired");
|
||||||
|
|
||||||
|
id.classList.remove("d-none");
|
||||||
|
id2.classList.remove("d-none");
|
||||||
|
id3.classList.remove("d-none");
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// 2FA toggle modal
|
||||||
|
|
||||||
|
$('#2faModal').on('hidden.bs.modal', function () {
|
||||||
|
|
||||||
|
var box = document.getElementById("2faToggle");
|
||||||
|
|
||||||
|
box.checked = !box.checked;
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//Email verification text
|
//Email verification text
|
||||||
|
|
||||||
function emailVerifyText() {
|
function emailVerifyText() {
|
||||||
|
@ -188,9 +217,6 @@
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% include "bootstrap.html" %}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ClipboardJS -->
|
<!-- ClipboardJS -->
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue