Public Access
Homepage relaunch: contrast fix, heading hierarchy, order widget refactor, final CTA band, depth & polish
This commit is contained in:
@@ -158,6 +158,17 @@ var si = 0,
|
||||
document.getElementById("orderWidgetOverlay").style.display =
|
||||
"none";
|
||||
}
|
||||
// Escape key closes the order widget
|
||||
document.addEventListener("keydown", function (e) {
|
||||
if (e.key === "Escape") {
|
||||
var widget = document.getElementById(
|
||||
"orderWidgetOverlay",
|
||||
);
|
||||
if (widget && widget.style.display === "flex") {
|
||||
closeOrderWidget();
|
||||
}
|
||||
}
|
||||
});
|
||||
document
|
||||
.getElementById("orderServerLocation")
|
||||
.addEventListener("change", function () {
|
||||
@@ -185,7 +196,7 @@ var si = 0,
|
||||
if (code.toLowerCase() === "free trial") {
|
||||
status.textContent =
|
||||
"\u2713 Coupon FREE TRIAL applied - 1 month free";
|
||||
status.style.color = "#28a745";
|
||||
status.style.color = "#1a7f37";
|
||||
} else {
|
||||
status.textContent = "Invalid coupon code";
|
||||
status.style.color = "#dc3545";
|
||||
|
||||
Reference in New Issue
Block a user