Created
October 27, 2021 05:30
-
-
Save peterkarn/06f370ae0f1f2095d5dce0ac72f98ce2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Insert Login Button inside regform block */ | |
function insertAfter(referenceNode, newNode) { | |
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling); | |
} | |
var mibileLoginBtn = document.createElement("div"); | |
mibileLoginBtn.innerHTML = "Log In"; | |
mibileLoginBtn.classList.add('btn', 'login-btn-mobile'); | |
var multiButtonsForm = document.querySelector(".main-section .reg-form-block"); | |
var nextButton = multiButtonsForm.querySelector('.next-btn'); | |
insertAfter(nextButton, mibileLoginBtn); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment