Ero sivun ”Widget:Test” versioiden välillä
Järvi-meriwikistä
Rivi 3: | Rivi 3: | ||
<script type="text/javascript" src="//www.jarviwiki.fi/citobsjs/jwapi.js" ></script> | <script type="text/javascript" src="//www.jarviwiki.fi/citobsjs/jwapi.js" ></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | |||
+ | function <!--{$id|default:TestWidget|escape:'html'}-->_jQueryTest() { | ||
+ | if ( typeof window.jQuery == 'undefined' ) { | ||
+ | setTimeout( function(){ <!--{$id|default:TestWidget|escape:'html'}-->_jQueryTest() }, 300); | ||
+ | } else { | ||
+ | <!--{$id|default:TestWidget|escape:'html'}-->_func(); | ||
+ | } | ||
+ | } setTimeout( function(){ <!--{$id|default:TestWidget|escape:'html'}-->_jQueryTest() }, 300); | ||
+ | |||
+ | function <!--{$id|default:TestWidget|escape:'html'}-->_func() { | ||
var co = new CitobsOpen311(); | var co = new CitobsOpen311(); | ||
Rivi 28: | Rivi 38: | ||
loadr++; co.loadRequests( { 'keyword': '_VesiFiObservation', 'service_code': jw.jwToCitobs[ ot ].service_code, 'start_date': startDate.toISOString(), 'status': 'valid' }, ready ); | loadr++; co.loadRequests( { 'keyword': '_VesiFiObservation', 'service_code': jw.jwToCitobs[ ot ].service_code, 'start_date': startDate.toISOString(), 'status': 'valid' }, ready ); | ||
} | } | ||
− | + | } | |
</script> | </script> | ||
</includeonly> | </includeonly> |