diff --git a/Assets/js/application-branding.js b/Assets/js/application-branding.js index 1446314..05e153a 100644 --- a/Assets/js/application-branding.js +++ b/Assets/js/application-branding.js @@ -1 +1,41 @@ // KANBOARD PLUGIN - JS FILE + +// SELECT INPUT ON MOUSOVER +$(document).ready(function() { + const input = document.getElementById("form-username"); + if (input !== null) { + input.addEventListener('mouseover', () => { + input.select(); + }) + } +}); + +// SELECT INPUT ON MOUSOVER +$(document).ready(function() { + const input = document.getElementById("form-password"); + if (input !== null) { + input.addEventListener('mouseover', () => { + input.select(); + }) + } +}); + +// SELECT INPUT ON MOUSOVER +$(document).ready(function() { + const input = document.getElementById("form-captcha"); + if (input !== null) { + input.addEventListener('mouseover', () => { + input.select(); + }) + } +}); + +// SELECT INPUT ON MOUSOVER +$(document).ready(function() { + const input = document.getElementById("form-code"); + if (input !== null) { + input.addEventListener('mouseover', () => { + input.select(); + }) + } +}); diff --git a/README.md b/README.md index 36eab8b..90757f9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Features - Show application name and copyright - Include metadata and generic logo (for when sharing links) - Show Unsplash image background +- Move your mouse over the username and password fields to automatically select and save time **New Reset Password Page** - Show User IP Address @@ -29,11 +30,13 @@ Features - Show application name and copyright - Include metadata and generic logo (for when sharing links) - Show Unsplash image background +- Move your mouse over the username and captcha fields to automatically select and save time **New 2FA Page** - A complete revamp of the two factor code check page which shows after login - Added links to cancel the check by returning to the login page, unlocking the default login-lock behaviour - Added `domain.com/security-check` for when url rewriting is enabled +- Move your mouse over the password field to automatically select and save time **Reset Password Email** - Show application name and copyright