Ero sivun ”Widget:Test2” versioiden välillä
Järvi-meriwikistä
Rivi 1: | Rivi 1: | ||
<includeonly> | <includeonly> | ||
− | <script type="text/javascript"> | + | <script type="text/javascript"> |
− | |||
(function() { | (function() { | ||
Rivi 17: | 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/widgets/css/obschartwidget.css?ver=1" }); | css_link = jQuery( "<link>", { rel: "stylesheet", type: "text/css", href: "//www.jarviwiki.fi/widgets/css/obschartwidget.css?ver=1" }); | ||
css_link.appendTo('head'); | css_link.appendTo('head'); | ||
− | + | jQuery.getScript( "https://www.jarviwiki.fi/citobsjs/jwapi.js", function() { | |
− | jQuery.getScript( "https:// | ||
jQuery.getScript( '//www.gstatic.com/charts/loader.js', function() { | jQuery.getScript( '//www.gstatic.com/charts/loader.js', function() { | ||
google.charts.load( 'current', {'packages':['corechart']} ); | google.charts.load( 'current', {'packages':['corechart']} ); | ||
google.charts.setOnLoadCallback( loadObservations ); | google.charts.setOnLoadCallback( loadObservations ); | ||
}); | }); | ||
− | }); | + | }); |
} | } | ||
− | |||
function loadObservations() { | function loadObservations() { |