I'm trying to create a div that is colorized.
let s = document.createElement("script");
s.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js";
document.head.appendChild(s);
let background = document.createElement("div");
background.id = "rwBackground";
document.body.appendChild(background);
let enabled = false;
$(function(){
$("#rwBackground").css({
"background-color": "#111",
position: "fixed",
height: document.body.innerHeight + "px",
width: document.body.innerWidth + "px",
top: "0px",
left: "0px",
filter: "blur(100px)"
});
});
I tried putting "" outside of the CSS styles, but it doesn't seem to work.
I would check the body, and I can see it in there, but it has no styles.
If anyone could help me on this, it'd be greatly appreciated!