Skip to content

Instantly share code, notes, and snippets.

@kjivan
Last active January 30, 2021 14:56
Show Gist options
  • Save kjivan/30219623808ddafdb22a16f8f12d3301 to your computer and use it in GitHub Desktop.
Save kjivan/30219623808ddafdb22a16f8f12d3301 to your computer and use it in GitHub Desktop.
Adds a banner to help indicate prod environment
var d = document.createElement("div");
d.style.position = "sticky";
d.style.top = "0px";
d.style.zIndex = "16777271";
d.style.width = "100%";
d.style.height = "30px";
d.style.padding = "2px";
d.style.fontSize = "20px";
d.style.backgroundColor = "red";
d.style.color = "black";
d.append(document.createTextNode("Production Environment"));
document.body.insertBefore(d, document.body.firstChild);
@GJivan
Copy link

GJivan commented Jan 29, 2021

add max integer for zindex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment