Working on theme. Added power panel and background.
This commit is contained in:
12
js/lightdm-uestibulum.js
Normal file
12
js/lightdm-uestibulum.js
Normal file
@ -0,0 +1,12 @@
|
||||
var powerOptionsEl = document.getElementById("power-options")
|
||||
var powerPanelClasses = document.getElementById("power-panel").classList;
|
||||
|
||||
function showPowerOptions() {
|
||||
powerPanelClasses.add('active');
|
||||
}
|
||||
|
||||
function hidePowerOptions(e) {
|
||||
console.log(e.target);
|
||||
if (e.target != powerOptionsEl) return;
|
||||
powerPanelClasses.remove('active');
|
||||
}
|
Reference in New Issue
Block a user