3
0

added title variability for EFO
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mike Sutton 2023-09-13 17:10:32 +02:00
parent 2a5c42b899
commit dbb87f8396
2 changed files with 8 additions and 29 deletions

View File

@ -6,40 +6,12 @@ if (privacyPolicy) {
privacyPolicy.innerHTML = '<span>By signing up you agree to the <a href="https://buyersform.com/privacy/" target="_blank">BuyersForm Privacy Policy</a></span>'
}
// function createLabel(details) {
// const label = document.createElement("label");
// label.className = "custom-input-label";
// if (details.innerHtml) {
// label.innerHTML = details.innerHtml;
// }
// if (details.textContent) {
// label.textContent = details.textContent;
// }
// label.for = details.for;
// return label;
// }
if (loginpage) {
// inject labels on login page;
const signUpLink = document.querySelector("#new-to-app + a");
signUpLink.textContent = "Sign up";
// const emailWrapper = document.querySelector(
// 'div.form-group:has(input[id="username"])'
// );
// const emailLabel = createLabel({ for: "username", textContent: "Email" });
// // emailWrapper.prepend(emailLabel);
// // <--- Password -->
// const passwordWrapper = document.querySelector(
// 'div.form-group:has(input[id="password"])'
// );
// const passwordLabel = createLabel({ for: "password", textContent: "Password" });
// // passwordWrapper.prepend(passwordLabel);
}
if (verifyPage.textContent.includes("Email verification")) {

View File

@ -1,6 +1,13 @@
const privacyPolicy = document.getElementById('privacy-policy');
const loginpage = document.querySelector("#kc-form-login");
const verifyPage = document.querySelector("#kc-page-title");
const signupPage = document.querySelector("#kc-register-form");
if (privacyPolicy) {
privacyPolicy.innerHTML = '<span>No blah blah.</span>'
privacyPolicy.innerHTML = '<span>By signing up you agree to the <a href="https://edenfiftyone.com/privacy/" target="_blank">EdenFiftyOne Privacy Policy</a></span>'
}
if (signUpPage){
document.title = 'Sign Up to EdenFiftyOne'
}