28 lines
911 B
JavaScript
28 lines
911 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
var servicesDiv = document.getElementById("webservices-container");
|
|
servicesDiv.hidden = true;
|
|
|
|
// Fluent replaces the children of the element being overlayed which prevents us
|
|
// from putting an event handler directly on the children.
|
|
document.body.addEventListener("click", event => {
|
|
if (event.target.id == "showWebServices") {
|
|
servicesDiv.hidden = false;
|
|
}
|
|
});
|
|
|
|
var disablingServicesDiv = document.getElementById(
|
|
"disabling-webservices-container"
|
|
);
|
|
|
|
if (disablingServicesDiv != null) {
|
|
disablingServicesDiv.hidden = true;
|
|
servicesDiv.addEventListener("click", event => {
|
|
if (event.target.id == "showDisablingWebServices") {
|
|
disablingServicesDiv.hidden = false;
|
|
}
|
|
});
|
|
}
|