SHARE
TWEET

Untitled

a guest Feb 19th, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (() => {
  2.     const element = document.createElement("div");
  3.     element.classList.add("a-shadow");
  4.     element.classList.add("ar-box");
  5.     document.body.appendChild(element);
  6.  
  7.     const style = document.createElement("style");
  8.     const css = `
  9.       .ar-box {
  10.         position: absolute;
  11.         background: transparent;
  12.         width: 100%;
  13.         height: 100%;
  14.         pointer-events: none;
  15.       }
  16.       .a-shadow {
  17.         box-shadow: inset 0 0 200px black;
  18.         pointer-events: none;
  19.       }
  20.     `;
  21.     style.appendChild(document.createTextNode(css));
  22.     document.head.appendChild(style);
  23.   })();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top