1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 window.onload = function() {
6 var jsWarning = document.getElementById("jswarning");
8 if (jsWarning.classList) {
9 jsWarning.classList.add("hidden");
12 // IE9 or older (sigh)
13 jsWarning.setAttribute("class", "warn hidden");
16 var loginForm = document.getElementById("loginform");
18 if (loginForm.classList) {
19 loginForm.classList.remove("hidden");
22 // IE9 or older (sigh)
23 loginForm.setAttribute("class", "loginarea");
26 var cancelAuth = document.getElementById("cancelauth");
28 cancelAuth.onclick = function() {
29 document.getElementById("isauthorized").value = "no";
30 document.getElementById("loginauthform").submit();
33 var addAnotherEmail = document.getElementById("addanotheremail");
34 if (addAnotherEmail) {
35 addAnotherEmail.onclick = function() {
36 location.href = "./?addemail";
39 var isNotMe = document.getElementById("isnotme");
41 isNotMe.onclick = function() {
42 location.href = location.href + "&logout=1";