123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
-
-
- (function(){
- var getRootNode = function(){
-
- if(this["document"] && this["document"]["getElementsByTagName"]){
- var scripts = document.getElementsByTagName("script");
- var pat = /jquery\.jqplot\.js/i;
- for(var i = 0; i < scripts.length; i++){
- var src = scripts[i].getAttribute("src");
- if(!src){ continue; }
- var m = src.match(pat);
- if(m){
- return {
- node: scripts[i],
- root: src.substring(0, m.index)
- };
- }
- }
- }
- };
- var files = ['jqplot.core.js', 'jqplot.linearTickGenerator.js', 'jqplot.linearAxisRenderer.js', 'jqplot.axisTickRenderer.js', 'jqplot.axisLabelRenderer.js', 'jqplot.tableLegendRenderer.js', 'jqplot.lineRenderer.js', 'jqplot.markerRenderer.js', 'jqplot.divTitleRenderer.js', 'jqplot.canvasGridRenderer.js', 'jqplot.linePattern.js', 'jqplot.shadowRenderer.js', 'jqplot.shapeRenderer.js', 'jqplot.sprintf.js', 'jsdate.js', 'jqplot.themeEngine.js', 'jqplot.toImage.js', 'jqplot.effects.core.js', 'jqplot.effects.blind.js'];
- var rn = getRootNode().root;
- for (var i=0; i<files.length; i++) {
- var pp = rn+files[i];
- try {
- document.write("<scr"+"ipt type='text/javascript' src='"+pp+"'></scr"+"ipt>\n");
- } catch (e) {
- var script = document.createElement("script");
- script.src = pp;
- document.getElementsByTagName("head")[0].appendChild(script);
-
- script = null;
- }
- }
-
- })();
|