Ero sivun ”Widget:Turbidity graph” versioiden välillä
Järvi-meriwikistä
Rivi 4: | Rivi 4: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | + | function <!--{$id|default:drawTurbidityChart|escape:'html'}-->_jQueryTest() { | |
− | + | if ( typeof window.jQuery == 'undefined' ) { | |
+ | setTimeout( function(){ <!--{$id|default:drawTurbidityChart|escape:'html'}-->_jQueryTest() }, 300); | ||
+ | } else { | ||
+ | google.load('visualization', '1.0', {'packages':['corechart']}); | ||
+ | google.setOnLoadCallback(<!--{$id|default:drawTurbidityChart|escape:'html'}-->_func); | ||
+ | } | ||
+ | } | ||
+ | setTimeout( function(){ <!--{$id|default:drawTurbidityChart|escape:'html'}-->_jQueryTest() }, 300); | ||
− | function drawTurbidityChart() { | + | function <!--{$id|default:drawTurbidityChart|escape:'html'}-->_func() { |
var siteName = '<!--{$page|escape:'urlpathinfo'}-->'; | var siteName = '<!--{$page|escape:'urlpathinfo'}-->'; |