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