Ero sivun ”Widget:Ol3Coo311Map” 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" /> |
− | <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/jwol3.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 23: | Rivi 23: | ||
<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: | ||
var <!--{$id|default:jwMap|escape:'html'}-->_memo = { 'id': "<!--{$id|default:jwMap|escape:'html'}-->", 'SitesO': {}, 'TypesO': {}, 'obsTypeToShow': '', 'serviceO': {}, 'serviceA': [] }; | var <!--{$id|default:jwMap|escape:'html'}-->_memo = { 'id': "<!--{$id|default:jwMap|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 | ||
Rivi 172: | Rivi 179: | ||
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 310: | Rivi 317: | ||
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 421: | Rivi 428: | ||
//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, |