Changes

From Polyphasic Sleep Wiki
m
no edit summary
Line 9: Line 9:  
   var ch;
 
   var ch;
 
   $.getJSON('http://thumb.napchart.com:1771/api/get?chartid=' + id, function(data) {
 
   $.getJSON('http://thumb.napchart.com:1771/api/get?chartid=' + id, function(data) {
     ch = data
+
     var myNapchart = Napchart.init(ctx, data['chartData']['elements'])
 +
    console.log(data)
 
});
 
});
   console.log(ch)
+
    
 
+
    
   var myNapchart = Napchart.init(ctx, ch['chartData']['elements'])
   
</script>
 
</script>
 
</includeonly>
 
</includeonly>
2,083

edits