Skip to content

Commit

Permalink
NEW: Select Input on Mouseover
Browse files Browse the repository at this point in the history
- this will save a mouse click when selecting fields in login, password and two-factor pages
  • Loading branch information
aljawaid committed Feb 1, 2023
1 parent a13ab41 commit eb34e20
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Assets/js/application-branding.js
Original file line number Diff line number Diff line change
@@ -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();
})
}
});
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,21 @@ 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
- Add user friendly page title
- 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
Expand Down

0 comments on commit eb34e20

Please sign in to comment.