Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 16: | Rivi 16: | ||
function <!--{$id|default:TheGraph|escape:'html'}-->_func() { | function <!--{$id|default:TheGraph|escape:'html'}-->_func() { | ||
css_link = jQuery( "<link>", { rel: "stylesheet", type: "text/css", href: "//www.jarviwiki.fi/embed/css/obschart.css?ver=1" }); | |||
if ( typeof window.jwObsChart == 'undefined' ) { | |||
window.jwObsChart = true; | |||
css_link = jQuery( "<link>", { rel: "stylesheet", type: "text/css", href: "//www.jarviwiki.fi/embed/css/obschart.css?ver=1" }); | |||
css_link.appendTo('head'); | |||
jQuery.getScript( "//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js", function() { | |||
jQuery.getScript( "//www.jarviwiki.fi/citobsjs/jwapi.js", function() { | |||
jQuery.getScript( '//www.gstatic.com/charts/loader.js', function() { | |||
google.charts.load( 'current', { 'packages':[ 'corechart' ] } ); | |||
google.charts.setOnLoadCallback( loadObservations ); | |||
}); | |||
}); | }); | ||
}); | }); | ||
} | } | ||
} | } | ||


