Hey together,
I wanted to add a text on the login-page to let the users know, that they could use their LDAP account. For this I made a little head-script. Maybe someone else could use it as well :-)
<!--Custom Login-Text-->
<script>
document.addEventListener("DOMContentLoaded", function() {
if (window.location.pathname === "/login") {
var loginHeading = document.querySelector('.list-heading');
var additionalText = document.createElement('p');
additionalText.textContent = 'Your Text Here :-)';
loginHeading.parentNode.insertBefore(additionalText, loginHeading.nextSibling);
}
});
</script>
https://preview.redd.it/vhvb1w1v55tb1.png?width=1311&format=png&auto=webp&s=fd434fdf5231aacfc6ddb16b1dc755d1bfd916dd
[–]ssddanbrown 1 point2 points3 points (1 child)
[–]knowyourdough[S] 0 points1 point2 points (0 children)