3
0
mike 82f9915432
All checks were successful
continuous-integration/drone/push Build is passing
changed to allow customisation of of the linkedin sign in logo
2024-02-11 23:30:24 +00:00

24 lines
780 B
JavaScript

const privacyPolicy = document.getElementById('privacy-policy');
if (privacyPolicy) {
privacyPolicy.innerHTML = '<span>By signing up you agree to the Helpbuild <a href="https://helpbuild.co/privacy/">Privacy Policy</a></span>'
}
// Get the anchor element
var anchor = document.getElementById('social-linkedin-openid-connect');
// Create an img element for the SVG
var img = document.createElement('img');
img.src = 'linkedin.svg'; // Replace with your SVG file path
img.width = 60;
img.height = 60;
// Insert the img at the beginning of the anchor element
anchor.insertBefore(img, anchor.firstChild);
// Get the span element
var span = anchor.getElementsByClassName('kc-social-provider-name')[0];
// Change the text of the span
span.textContent = 'Sign in with LinkedIn';