added title variability for EFO
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2a5c42b899
commit
dbb87f8396
@ -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>'
|
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) {
|
if (loginpage) {
|
||||||
// inject labels on login page;
|
// inject labels on login page;
|
||||||
const signUpLink = document.querySelector("#new-to-app + a");
|
const signUpLink = document.querySelector("#new-to-app + a");
|
||||||
|
|
||||||
signUpLink.textContent = "Sign up";
|
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")) {
|
if (verifyPage.textContent.includes("Email verification")) {
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
const privacyPolicy = document.getElementById('privacy-policy');
|
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) {
|
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'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user