Ero sivun ”Widget:Ol3SiteMap” versioiden välillä
Järvi-meriwikistä
Rivi 12: | Rivi 12: | ||
<script src="//www.jarviwiki.fi/scripts/proj4js/dist/proj4.js"></script> | <script src="//www.jarviwiki.fi/scripts/proj4js/dist/proj4.js"></script> | ||
− | <script src="//www.jarviwiki.fi/scripts/jwol3js/jwol3.js"></script> | + | <script src="//www.jarviwiki.fi/scripts/jwol3js/jwol3.js"></script> |
<div class="jwMapContainer" style="height:<!--{$height|default:500|escape:'html'}-->px" > | <div class="jwMapContainer" style="height:<!--{$height|default:500|escape:'html'}-->px" > | ||
Rivi 23: | Rivi 23: | ||
var <!--{$id|default:TheSiteMap|escape:'html'}-->_memo = { 'SitesO': {}, 'TypesO': {}, 'obsTypeToShow': '' }; | var <!--{$id|default:TheSiteMap|escape:'html'}-->_memo = { 'SitesO': {}, 'TypesO': {}, 'obsTypeToShow': '' }; | ||
− | + | function <!--{$id|default:TheSiteMap|escape:'html'}-->_jQueryTest() { | |
+ | |||
+ | if ( typeof window.jQuery == 'undefined' ) { | ||
+ | setTimeout( function(){ <!--{$id|default:TheSiteMap|escape:'html'}-->_jQueryTest() }, 300); | ||
+ | } else { | ||
+ | <!--{$id|default:TheSiteMap|escape:'html'}-->_func(); | ||
+ | } | ||
+ | } | ||
+ | setTimeout( function(){ <!--{$id|default:TheSiteMap|escape:'html'}-->_jQueryTest() }, 300); | ||
function <!--{$id|default:TheSiteMap|escape:'html'}-->_func() { | function <!--{$id|default:TheSiteMap|escape:'html'}-->_func() { |