Changes
From Polyphasic Sleep Wiki
1 byte added
, 3 years ago
Line 7:
Line 7:
<script>
<script>
eval("var ctx_" + "<!--{$url|escape:'html'}-->".slice(21) + " = document.getElementById(\"nc-<!--{$url|escape:'html'}-->\").getContext('2d')")
eval("var ctx_" + "<!--{$url|escape:'html'}-->".slice(21) + " = document.getElementById(\"nc-<!--{$url|escape:'html'}-->\").getContext('2d')")
โ
$.getJSON('https://cache.polysleep.org/napcharts/' + "<!--{$url|escape:'html'}-->".slice(21) + ".json, function(data) {
+
$.getJSON('https://cache.polysleep.org/napcharts/' + "<!--{$url|escape:'html'}-->".slice(21) + ".json", function(data) {
eval("var myNapchart_" + "<!--{$url|escape:'html'}-->".slice(21) + " = Napchart.init(ctx_" + "<!--{$url|escape:'html'}-->".slice(21) + ", data['chartData'])");
eval("var myNapchart_" + "<!--{$url|escape:'html'}-->".slice(21) + " = Napchart.init(ctx_" + "<!--{$url|escape:'html'}-->".slice(21) + ", data['chartData'])");
console.log(data);
console.log(data);