Ero sivun ”Widget:Ol3Coo311MapX” versioiden välillä
Järvi-meriwikistä
p (Tekstin korvaus – ”//cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL” muotoon ”https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js”) |
|||
(3 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 1: | Rivi 1: | ||
<includeonly> | <includeonly> | ||
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol3/ol.css" type="text/css"> |
− | <script src="// | + | <script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js"></script> |
− | <script src=" | + | <script src="/scripts/ol3/ol.js"></script> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol-ext/dist/ol-ext.min.css" type="text/css"> |
− | <script src=" | + | <script src="/scripts/ol-ext/dist/ol-ext.min.js"></script> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.css" /> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.anim.css" /> |
− | <link rel="stylesheet" type="text/css" href=" | + | <link rel="stylesheet" type="text/css" href="/scripts/tooltipster/dist/css/tooltipster.bundle.min.css" /> |
− | <link rel="stylesheet" type="text/css" href=" | + | <link rel="stylesheet" type="text/css" href="/scripts/tooltipster/dist/css/plugins/tooltipster/sideTip/themes/tooltipster-sideTip-light.min.css"> |
− | <script src=" | + | <script src="/scripts/tooltipster/dist/js/tooltipster.bundle.min.js"></script> |
− | <script src=" | + | <script src="/scripts/proj4js/dist/proj4.js"></script> |
− | <script src=" | + | <script src="/scripts/ol-geocoder/ol-geocoder.js"></script> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol-geocoder/ol-geocoder.min.css" /> |
− | <script src=" | + | <script src="/scripts/jwol3js/Xjwol3.js"></script> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/jwol3js/jwol3.css" /> |
<link rel="stylesheet" href="//www.jarviwiki.fi/common/citobsembed.css" /> | <link rel="stylesheet" href="//www.jarviwiki.fi/common/citobsembed.css" /> | ||
Rivi 25: | Rivi 25: | ||
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" /> | <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" /> | ||
− | <script src=" | + | <script src="/scripts/plupload-2/plupload.full.min.js"></script> |
− | <script src=" | + | <script src="/scripts/plupload-2/jquery.ui.plupload/jquery.ui.plupload.min.js"></script> |
− | <script src=" | + | <script src="/scripts/plupload-2/i18n/fi.js"></script> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/plupload-2/jquery.ui.plupload/css/jquery.ui.plupload.css" /> |
− | <script type="text/javascript" src=" | + | <script type="text/javascript" src="/scripts/jquery.scrollbar/jquery.scrollbar.min.js"></script> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/jquery.scrollbar/jquery.scrollbar.css" /> |
<script type="text/javascript" src="//www.jarviwiki.fi/common/slide-to-submit/js/slide-to-submit.js"></script> | <script type="text/javascript" src="//www.jarviwiki.fi/common/slide-to-submit/js/slide-to-submit.js"></script> | ||
− | <!-- <link rel="stylesheet" href=" | + | <!-- <link rel="stylesheet" href="/scripts/jquery.scrollbar/jquery.scrollbar.css" /> --> |
Rivi 55: | Rivi 55: | ||
//global memory for widget instance | //global memory for widget instance | ||
− | var <!--{$id|default: | + | var <!--{$id|default:Coo311Map|escape:'html'}-->_memo = { 'id': "<!--{$id|default:Coo311Map|escape:'html'}-->", 'SitesO': {}, 'TypesO': {}, 'obsTypeToShow': '', 'serviceO': {}, 'serviceA': [] }; |
− | + | function <!--{$id|default:Coo311Map|escape:'html'}-->_jQueryTest() { | |
+ | if ( typeof window.jQuery == 'undefined' ) { | ||
+ | setTimeout( function(){ <!--{$id|default:Coo311Map|escape:'html'}-->_jQueryTest() }, 300); | ||
+ | } else { | ||
+ | <!--{$id|default:Coo311Map|escape:'html'}-->_func(); | ||
+ | } | ||
+ | } | ||
+ | setTimeout( function(){ <!--{$id|default:Coo311Map|escape:'html'}-->_jQueryTest() }, 300); | ||
− | + | function <!--{$id|default:Coo311Map|escape:'html'}-->_func() { | |
//widget globals | //widget globals | ||
− | var memo = <!--{$id|default: | + | var memo = <!--{$id|default:Coo311Map|escape:'html'}-->_memo; |
memo.lang = '<!--{$lang|default:en|escape:'html'}-->'; | memo.lang = '<!--{$lang|default:en|escape:'html'}-->'; | ||
memo.filesA = []; | memo.filesA = []; | ||
Rivi 199: | Rivi 206: | ||
output += '<label for="' + id + '" style="display: inline;">' + attr.description + '</label>'; | output += '<label for="' + id + '" style="display: inline;">' + attr.description + '</label>'; | ||
output += '</h4>'; | output += '</h4>'; | ||
− | output += ' | + | output += '{{JwClear}}'; |
} | } | ||
Rivi 313: | Rivi 320: | ||
serviceBtn += '<input type="radio" name="serviceSelector" value="' + sc + '" required></input>'; | serviceBtn += '<input type="radio" name="serviceSelector" value="' + sc + '" required></input>'; | ||
serviceBtn += '<h5 style="margin: 3px 0; float: left;">' + memo.serviceO[sc].service_name + ' </h5>'; | serviceBtn += '<h5 style="margin: 3px 0; float: left;">' + memo.serviceO[sc].service_name + ' </h5>'; | ||
− | serviceBtn += ' | + | serviceBtn += '{{JwClear}}'; |
serviceBtn += '<p class="serviceDescription citobso311_helptext citobso311_hideOn_service' + ' citobso311_showOn_service_' + sc + '" style="display: none; float: left; font-size: 80%; color: #fff; text-align: left; margin: 6px 0 3px 0;">' + memo.serviceO[sc].description + '</p>'; | serviceBtn += '<p class="serviceDescription citobso311_helptext citobso311_hideOn_service' + ' citobso311_showOn_service_' + sc + '" style="display: none; float: left; font-size: 80%; color: #fff; text-align: left; margin: 6px 0 3px 0;">' + memo.serviceO[sc].description + '</p>'; | ||
− | serviceBtn += ' | + | serviceBtn += '{{JwClear}}'; |
serviceBtn += '</label>'; | serviceBtn += '</label>'; | ||
Rivi 344: | Rivi 351: | ||
imgOut += '<h4 class="coo311">Lisää valokuva</h4>'; | imgOut += '<h4 class="coo311">Lisää valokuva</h4>'; | ||
− | imgOut += '<div class="imgUploader2 imgPreview imgButton plupNoImages" id="imgUploader2"> | + | imgOut += '<div class="imgUploader2 imgPreview imgButton plupNoImages" id="imgUploader2">{{JwClear}}</div>'; |
imgOut += '<a style="width: 0; height: 0; overflow: hidden;" href="#" name="imgButton" id="imgButton"></a>'; | imgOut += '<a style="width: 0; height: 0; overflow: hidden;" href="#" name="imgButton" id="imgButton"></a>'; | ||
imgOut += '<p class="coo311" style="text-align: center; font-size: 80%; margin-top: 5px;">Huomaa, että luovut lähettämiesi kuvien oikeuksista CC0-lisenssin mukaisesti!</p>'; | imgOut += '<p class="coo311" style="text-align: center; font-size: 80%; margin-top: 5px;">Huomaa, että luovut lähettämiesi kuvien oikeuksista CC0-lisenssin mukaisesti!</p>'; | ||
Rivi 455: | Rivi 462: | ||
//container: 'imgPreview', | //container: 'imgPreview', | ||
url : '//www.jarviwiki.fi/common/citobsembed_upload.php', | url : '//www.jarviwiki.fi/common/citobsembed_upload.php', | ||
− | flash_swf_url : ' | + | flash_swf_url : '/scripts/plupload-2/Moxie.swf', |
− | silverlight_xap_url : ' | + | silverlight_xap_url : '/scripts/plupload-2/Moxie.xap', |
unique_names: true, | unique_names: true, | ||
//opts.allowImages, | //opts.allowImages, |