Post-Platform Digital Publishing Toolkit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
playground:playground [2025/01/21 12:21] dorianeplayground:playground [2025/01/26 16:48] (current) wgp
Line 1: Line 1:
 <HTML> <HTML>
-<link rel="stylesheet" type="text/css" href="https://toolkit.wellgedacht.org/doku.php?id=stylesheet:style_playgound&do=export_text"> +<script> 
-<div></div>+    function fetch_request(url, callback){ 
 +        // fetching the pad 
 +        fetch(`${url}`,
 +            'method': 'GET', 
 +            'mode': 'cors', 
 +        }) 
 +        .then(response => response.text() ) 
 +        .then(css => inject_css(css) ); 
 +    } 
 +    function inject_css(css){ 
 +        console.log('pad loaded!'); 
 +        let el = document.createElement('style'); 
 +        el.id = "etherstyle"; 
 +        el.innerText = css; 
 +        document.head.appendChild(el); 
 +    }; 
 +    fetch_request("/doku.php?id=stylesheet:style_playgound&do=export_text", inject_css); 
 +</script>
 </HTML> </HTML>
  
playground/playground.1737462085.txt.gz · Last modified: 2025/01/25 16:56 (external edit)