devhelpertools
Version:
A simple js project which helps you to get the perfect breakpoint for your screen width! its small in size! check it out!
3 lines (2 loc) • 490 B
JavaScript
const body=document.body;let devMain=document.createElement("div");devMain.innerHTML=window.innerWidth+"px",devMain.style.background="orange",devMain.style.position="fixed",devMain.style.bottom="2%",devMain.style.left="2%",devMain.style.color="#fff",devMain.style.fontFamily="sans-serif",devMain.style.fontWeight="bold",devMain.style.padding="1em",body.appendChild(devMain),window.addEventListener("resize",()=>{devMain.innerHTML=window.innerWidth+"px"});
module.exports = devhelpertools