var el = document.createElement("div"); el.id = "gallery_7add24d7ce1b45610538" el.innerHTML = `
`; var s = document.getElementById("script_7add24d7ce1b45610538"); s.parentNode.insertBefore(el, s.nextSibling) var jq = document.createElement("script"); jq.type = "text/javascript"; jq.onload = function() { var jqSet = document.createElement("script"); jqSet.type = "text/javascript"; jqSet.innerText = "var $mj = jQuery.noConflict(true);"; document.getElementsByTagName("head")[0].appendChild(jqSet); scriptReady(); } jq.src = "https://www.pic-mediabox.de/js/jquery-3.6.0.min.js"; document.getElementsByTagName("head")[0].appendChild(jq); let aframeLoaded = false; function loadAFrame(){ if (!aframeLoaded) { var af = document.createElement("script"); af.type = "text/javascript"; af.onload = function() { aframeLoaded = true; var afSet = document.createElement("script"); afSet.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(afSet); } af.src = "https://www.pic-mediabox.de/js/aframe.min.js"; document.getElementsByTagName("head")[0].appendChild(af); } } var pic_gallery_ready = new Event('pic_gallery_ready'); var pic_gallery_albums = new Event('pic_gallery_albums'); var pic_gallery_images = new Event('pic_gallery_images'); var sharelink; var currenImg; function scriptReady() { document.dispatchEvent(pic_gallery_ready); console.log("scriptReady"); sharelink = document.getElementById("script_7add24d7ce1b45610538").dataset.sharelink; if (document.getElementById("script_7add24d7ce1b45610538").dataset.album) { getStyle(); getImages(document.getElementById("script_7add24d7ce1b45610538").dataset.album, false); }else{ getAlbums(); } $mj(document).on("click", ".album-list", (e) => { var currentId = e.currentTarget.dataset.id $mj("#gallery_7add24d7ce1b45610538").find("#gallery_body").hide(); getImages(currentId,true); }) $mj(document).on("click", ".images-list .file_pic", (e) => { var linkbig = e.currentTarget.dataset.linkbig; var image_name = e.currentTarget.dataset.image_name; var file_name = e.currentTarget.dataset.file_name; var description = e.currentTarget.dataset.description; var global_description = e.currentTarget.dataset.global_description; var pan = e.currentTarget.dataset.pan; currenImg = e.currentTarget; $mj("body").css("overflow", "hidden"); $mj("body").append("") if (pan == 1) { $mj("body").append(""+image.file_name+"