Template:TestTemplate: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
<script language="javascript" type="text/javascript" src="/resource_browser/rb_js/highcharts/modules/exporting.js"></script> | <script language="javascript" type="text/javascript" src="/resource_browser/rb_js/highcharts/modules/exporting.js"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
var data = []; | |||
var content = "</html>{{{1}}}<html>"; | var content = "</html>{{{1}}}<html>"; | ||
var content_array = content.split(","); | var content_array = content.split(","); | ||
Line 13: | Line 14: | ||
var counted = countItems(content,tmp); | var counted = countItems(content,tmp); | ||
alert(tmp + " : " +counted); | alert(tmp + " : " +counted); | ||
var x = [tmp , counted]; | |||
data.push(x); | |||
} | } | ||
Line 49: | Line 51: | ||
type: 'pie', | type: 'pie', | ||
name: 'Browser share', | name: 'Browser share', | ||
data: | data: data | ||
}] | }] | ||
}); | }); |
Revision as of 09:52, 12 June 2013