p (Molindho siirsi sivun Widget:Ol3LakeMap uudelle nimelle Widget:Ol10LakeMap luomatta ohjausta: Tekstin korvaus – ”Ol3” muotoon ”Ol10”) |
Ei muokkausyhteenvetoa |
||
| Rivi 6: | Rivi 6: | ||
<link rel="stylesheet" href="/scripts/ol-ext-10/dist/ol-ext.min.css" type="text/css"> | <link rel="stylesheet" href="/scripts/ol-ext-10/dist/ol-ext.min.css" type="text/css"> | ||
<script src="/scripts/ol-ext-10/dist/ol-ext.min.js"></script> | <script src="/scripts/ol-ext-10/dist/ol-ext.min.js"></script> | ||
<script src="/scripts/proj4js/dist/proj4.js"></script> | <script src="/scripts/proj4js/dist/proj4.js"></script> | ||
<script src="/scripts/jwol10js/jwol10.js"></script> | <script src="/scripts/jwol10js/jwol10.js"></script> | ||
<div class="jwMapContainer" style="height:<!--{$height|default:500px|escape:'html'}-->" > | <div class="jwMapContainer" style="height:<!--{$height|default:500px|escape:'html'}-->" > | ||
| Rivi 24: | Rivi 21: | ||
function <!--{$id|default:CommonObsMap|escape:'html'}-->_jQueryTest() { | function <!--{$id|default:CommonObsMap|escape:'html'}-->_jQueryTest() { | ||
if ( typeof window.jQuery == 'undefined' ) { | |||
setTimeout( function(){ <!--{$id|default:CommonObsMap|escape:'html'}-->_jQueryTest() }, 300); | |||
} else { | |||
<!--{$id|default:CommonObsMap|escape:'html'}-->_func(); | |||
} | |||
} | } | ||
setTimeout( function(){ <!--{$id|default:CommonObsMap|escape:'html'}-->_jQueryTest() }, 300); | setTimeout( function(){ <!--{$id|default:CommonObsMap|escape:'html'}-->_jQueryTest() }, 300); | ||
function <!--{$id|default:CommonObsMap|escape:'html'}-->_func() { | function <!--{$id|default:CommonObsMap|escape:'html'}-->_func() { | ||
| Rivi 43: | Rivi 40: | ||
if ( '<!--{$hero|default:false|escape:'html'}-->' == 'true' ) { | if ( '<!--{$hero|default:false|escape:'html'}-->' == 'true' ) { | ||
container = jQuery( '.hero-container' ).attr( 'id' ); | container = jQuery( '.hero-container' ).attr( 'id' ); | ||
jQuery( '.hero-container' ).addClass( 'hero-map' ); | jQuery( '.hero-container' ).addClass( 'hero-map' ); | ||
jQuery( '.hero-container' ).removeClass( 'hero-empty' ); | jQuery( '.hero-container' ).removeClass( 'hero-empty' ); | ||
jQuery ( '#' + container ).css( 'border-bottom', '1px solid #e4e3de' ); | jQuery ( '#' + container ).css( 'border-bottom', '1px solid #e4e3de' ); | ||
} | } | ||


