X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=index.html.in;h=345c432b5d591b325f2aa5c39000a19392e44fe7;hb=fe64fd48133a3d77a824615ab1534971825189e9;hp=f3281226abcc81388559a794719d42af922f1ced;hpb=2d95c5549b43017647e4a74fc4d35392ee61e6a5;p=charm-bypass.git diff --git a/index.html.in b/index.html.in index f328122..345c432 100644 --- a/index.html.in +++ b/index.html.in @@ -81,7 +81,7 @@ url("data:font/woff2;base64,@CBPBOLD@") format("woff2") } - #serviceletter { + #serviceid { font-family: "CharmBypass Bold", sans-serif; font-weight: bold; } @@ -257,6 +257,21 @@ } + /******************************/ + /* Set the service identifier */ + /******************************/ + function set_service_id() { + const sid = document.getElementById("serviceid"); + + /* Get the "serviceid" from the querystring if it's there */ + let params = new URLSearchParams(document.location.search); + if (params.get("serviceid")) { + sid.textContent = params.get("serviceid"); + } + + /* Otherwise, leave it at "F" */ + } + /****************************************/ /* Set and reposition the security code */ /****************************************/ @@ -393,6 +408,9 @@ /* Re-center the ticket when the window is resized */ window.addEventListener("resize", center_ticket); + /* Set the service identifier when the page has loaded */ + window.addEventListener("load", set_service_id); + /* Set the security code text when the page has loaded */ window.addEventListener("load", set_code);