Difference between revisions of "Widget:Ncfetch"

From Polyphasic Sleep Wiki
(Created page with "<includeonly> <div style="padding:5px"> <div style="width:320px;height:320px;"> <canvas id="nc-<!--{$url|escape:'html'}-->" width:100%;height:100%;"></canvas></div></div> <scr...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<div style="padding:5px">
 
<div style="width:320px;height:320px;">
 
<canvas id="nc-<!--{$url|escape:'html'}-->" width:100%;height:100%;"></canvas></div></div>
 
<script src="/napchart.min.js"></script>
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
 
 
<script>
 
<script>
fetch("https://cache.polysleep.org/napcharts/" + url)
+
fetch("https://cache.polysleep.org/napcharts/" + "<!--{$id|escape:'html'}-->")
 
</script>
 
</script>
 
</includeonly>
 
</includeonly>

Latest revision as of 19:49, 15 January 2021