lightdm-uestibulum/js/lightdm-uestibulum.js
2016-11-18 00:25:40 -06:00

13 lines
343 B
JavaScript

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');
}