(function (global) {
"use strict";
- var divAlert, divAlertInput, divAlertConfirm, divAlertButton, alertButtonOK,
- divAlertCallback, divAlertCallbackYes, divAlertCallbackNo, alertInput,
- divAlertContent;
-
- var _ = (window.libD && libD.l10n) ? libD.l10n() : function (s) {return s;};
+ let divAlert;
+ let divAlertInput;
+ let divAlertConfirm;
+ let divAlertButton;
+ let alertButtonOK;
+ let divAlertCallback;
+ let divAlertCallbackYes;
+ let divAlertCallbackNo;
+ let alertInput;
+ let divAlertContent;
+
+ const _ = (window.libD && libD.l10n) ? libD.l10n() : function (s) {return s;};
function promptOK() {
divAlert.style.display = "none";
alertButtonOK.textContent = _("OK");
alertButtonOK.onclick = alertOK;
- var divAlertOuter = document.createElement("div");
+ const divAlertOuter = document.createElement("div");
divAlertOuter.className = "alert-outer";
divAlertOuter.appendChild(divAlertContent);
divAlertOuter.appendChild(divAlertInput);
myConfirm(
_("Are you sure you want to put all your tiles back in the bag?"),
function () {
- sendCmds(
- [
- {cmd: "moveLetter", from: "rack", indexFrom: 0, to: "bag", indexTo: -1},
- {cmd: "moveLetter", from: "rack", indexFrom: 1, to: "bag", indexTo: -1},
- {cmd: "moveLetter", from: "rack", indexFrom: 2, to: "bag", indexTo: -1},
- {cmd: "moveLetter", from: "rack", indexFrom: 3, to: "bag", indexTo: -1},
- {cmd: "moveLetter", from: "rack", indexFrom: 4, to: "bag", indexTo: -1},
- {cmd: "moveLetter", from: "rack", indexFrom: 5, to: "bag", indexTo: -1},
- {cmd: "moveLetter", from: "rack", indexFrom: 6, to: "bag", indexTo: -1}
- ]
- );
+ sendCmds([
+ {cmd: "moveLetter", from: "rack", indexFrom: 0, to: "bag", indexTo: -1},
+ {cmd: "moveLetter", from: "rack", indexFrom: 1, to: "bag", indexTo: -1},
+ {cmd: "moveLetter", from: "rack", indexFrom: 2, to: "bag", indexTo: -1},
+ {cmd: "moveLetter", from: "rack", indexFrom: 3, to: "bag", indexTo: -1},
+ {cmd: "moveLetter", from: "rack", indexFrom: 4, to: "bag", indexTo: -1},
+ {cmd: "moveLetter", from: "rack", indexFrom: 5, to: "bag", indexTo: -1},
+ {cmd: "moveLetter", from: "rack", indexFrom: 6, to: "bag", indexTo: -1}
+ ]);
}
);
}