You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1005 B
56 lines
1005 B
|
|
form = document.querySelector("#form > form") |
|
|
|
function getArrayForm(inputs) { |
|
if (!inputs) return false |
|
var data = {} |
|
inputs.forEach((x) => { |
|
data[x.name] = x.value |
|
}) |
|
return data |
|
} |
|
|
|
async function wait(ms) { |
|
return new Promise( resolve => { |
|
setTimeout(() => { |
|
resolve() |
|
}, ms) |
|
}) |
|
} |
|
|
|
async function initGreeter() { |
|
|
|
if (greeter_config.greeter.debug_mode) { |
|
debug = new Debug() |
|
} |
|
|
|
lightdm.authentication_complete?.connect(() => authentication_done()) |
|
|
|
lightdm.brightness_update?.connect(() => brightness._updateData()) |
|
|
|
accounts = new Accounts() |
|
|
|
sessions = new Sessions() |
|
|
|
authenticate = new Authenticate() |
|
|
|
power = new Power() |
|
|
|
battery = new Battery() |
|
|
|
brightness = new Brightness() |
|
|
|
var lock = lightdm.lock_hint |
|
if (lock) { |
|
document.querySelector("#lock-label").classList.remove("hide") |
|
} |
|
} |
|
|
|
const notGreeter = false |
|
|
|
if (notGreeter) { |
|
debug = new Debug() |
|
initGreeter() |
|
} else { |
|
window.addEventListener("GreeterReady", initGreeter) |
|
}
|
|
|