Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
playground:playground [2025/01/21 12:22] – doriane | playground:playground [2025/01/26 16:48] (current) – wgp | ||
---|---|---|---|
Line 1: | Line 1: | ||
< | < | ||
- | <link type="text/ | + | <script> |
- | <div></div> | + | function fetch_request(url, |
+ | // fetching the pad | ||
+ | fetch(`${url}`, | ||
+ | ' | ||
+ | ' | ||
+ | }) | ||
+ | .then(response | ||
+ | .then(css => inject_css(css) ); | ||
+ | } | ||
+ | function inject_css(css){ | ||
+ | console.log(' | ||
+ | let el = document.createElement(' | ||
+ | el.id = "etherstyle"; | ||
+ | el.innerText = css; | ||
+ | document.head.appendChild(el); | ||
+ | }; | ||
+ | fetch_request(" | ||
+ | </script> | ||
</ | </ | ||