Changes
From Polyphasic Sleep Wiki
58 bytes added
, 3 years ago
mLine 6: |
Line 6: |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | | <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
| <script> | | <script> |
− | var ctx = 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://zandimna6174-eval-prod.apigee.net/get?chartid=' + "<!--{$url|escape:'html'}-->".slice(21), function(data) { | | $.getJSON('https://zandimna6174-eval-prod.apigee.net/get?chartid=' + "<!--{$url|escape:'html'}-->".slice(21), function(data) { |
| eval("var myNapchart_" + "<!--{$url|escape:'html'}-->".slice(21) + " = Napchart.init(ctx, data['chartData'])"); | | eval("var myNapchart_" + "<!--{$url|escape:'html'}-->".slice(21) + " = Napchart.init(ctx, data['chartData'])"); |
− | console.log(data) | + | console.log(data); |
| }); | | }); |
| </script> | | </script> |
| <a href="<!--{$url|escape:'html'}-->">chart link</a> | | <a href="<!--{$url|escape:'html'}-->">chart link</a> |
| </includeonly> | | </includeonly> |