mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-18 19:50:58 -04:00
Settings pages can now have password protected fields
This commit is contained in:
@@ -93,6 +93,13 @@ function LoadJSON(settingsJson) {
|
||||
inputElement.value = settingsMap.has(setting.id) ? settingsMap.get(setting.id) : setting.defaultValue;
|
||||
inputElement.autocomplete = 'new-password';
|
||||
break;
|
||||
case 'password':
|
||||
inputElement = document.createElement('input');
|
||||
inputElement.type = 'password';
|
||||
inputElement.id = setting.id; //Added setting ID
|
||||
inputElement.value = settingsMap.has(setting.id) ? settingsMap.get(setting.id) : setting.defaultValue;
|
||||
inputElement.autocomplete = 'new-password';
|
||||
break;
|
||||
case 'checkbox':
|
||||
const labelDiv = document.createElement('label');
|
||||
labelDiv.classList.add('switch');
|
||||
|
||||
@@ -207,6 +207,7 @@ a {
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
select,
|
||||
input[type="number"] {
|
||||
width: 250px;
|
||||
|
||||
Reference in New Issue
Block a user