Y-SLD/assets/js/sentinel_imaginary-2215a3b8...

26 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-03-01 11:23:55 +00:00
$(document).ready(function () {
$('#share-modal').on('shown.bs.modal', function () {
var URL = baseURL;
if (!map.settings.https && map.settings.https != 1) {
URL = baseURL.replace("s://", "://");
}
var ifrmecode = '<iframe src="' + URL + "map/embed/" + map.random_token + '" height="' + map.settings.height + '" width="' + map.settings.width + '"></iframe>';
jQuery('#ds_iframe_code').val(ifrmecode);
jQuery('#ds_share_url').val(URL + "map/share/" + map.random_token);
jQuery('#ds_json_url').val(URL + "map/json/" + map.random_token);
});
$(".dashboard-download-link").on("click", function (e) {
e.preventDefault();
e.stopPropagation();
var image_1 = $("#before_images_1 option:selected").data("id");
var image_2 = $("#after_images_1 option:selected").data("id");
var type = $(this).data("type");
window.location.href = $(this).attr("href") + "?image_1=" + image_1 + "&image_2=" + image_2;
});
});
//# sourceMappingURL=sentinel_imaginary.js.map