Difference between revisions of "Widget:Napchart"

From Polyphasic Sleep Wiki
m (Undo revision 3247 by Zandimna (talk))
Tag: Undo
m
Line 9: Line 9:
 
   var id = "<!--{$url|escape:'html'}-->".slice(21)
 
   var id = "<!--{$url|escape:'html'}-->".slice(21)
 
   $.getJSON('https://zandimna6174-eval-prod.apigee.net/get?chartid=' + id, function(data) {
 
   $.getJSON('https://zandimna6174-eval-prod.apigee.net/get?chartid=' + id, function(data) {
     var myNapchart = Napchart.init(ctx, data['chartData'])
+
     eval("var myNapchart-" + id + " = Napchart.init(ctx, data['chartData'])");
 
     console.log(data)
 
     console.log(data)
 
});
 
});

Revision as of 11:54, 12 December 2020