PageSourceSearch

https://www.love2say.de/lib/panel/panel_functions.js

js love2say.de collected 2026-10-04 03:33:27 UTC 2,554 bytes, 6 lines download raw bytes

1function load_panelpage(panelpage_id,targetSelector,callback){if(typeof panelpage_id==="undefined"||panelpage_id===""||typeof targetSelector==="undefined"||targetSelector==="")return;const targetElement=document.querySelector(targetSelector);const loadingImg=document.createElement("img");Object.assign(loadingImg.style,{width:"60px",height:"60px"});loadingImg.src="images/loading_bar_css.svg";const loadingItem=document.createElement("div");loadingItem.classList.add("loading_item");Object.assign(loadingItem.style,
2{display:"flex",width:"100%",height:"100%","justify-content":"center","align-items":"center",opacity:0});loadingItem.appendChild(loadingImg);setTimeout(()=>{loadingItem.style.opacity=1},300);fetch(`./?ID=${panelpage_id}&use_ajax=true`).then(response=>response.text()).then(html=>{targetElement.innerHTML=html;const scripts=targetElement.querySelectorAll("script");scripts.forEach(script=>{const newScript=document.createElement("script");if(script.src)newScript.src=script.src;else newScript.textContent=
3script.textContent;document.body.appendChild(newScript)})}).then(()=>{if(typeof Android!=="undefined"&&typeof Android.afterLoadPanelPage==="function")Android.afterLoadPanelPage();if(typeof callback==="function")callback()}).catch(error=>{console.error("Fehler beim Laden:",error)})}
4function send_form_ajax(panelpage_id,target){if(typeof panelpage_id==="undefined"||panelpage_id===""||typeof target==="undefined"||target==="")return;var form=$(target).find("form");var inputfields=$(form).find("input, textarea, select");var json_obj={};var input_groups=[];$(inputfields).each(function(){if(this.name.includes("[]")===true&&!input_groups.includes(this.name))input_groups.push(this.name)});$(input_groups).each(function(){var groupname=this.toString();var val=[];$(inputfields).each(function(){if(this.name===
5groupname)if(this.type==="checkbox"){if(this.checked===true)val.push(this.value)}else val.push(this.value)});json_obj[groupname]=val});$(inputfields).each(function(){var val="";if(this.name.includes("[]")===true)return;if(this.type==="radio"||this.type==="checkbox")if(this.checked===true)val=this.value;else return;else val=this.value;json_obj[this.name]=val});$(target).html("");$.post("./?ID="+panelpage_id+"&use_ajax=true",json_obj).done(function(data,success,xhr){if(data){$(target).html(data);var csrf_token=
6xhr.getResponseHeader("x-csrf_token");if(typeof csrf_token!=="undefined"&&csrf_token!==null)$('input[name="csrf_token"]').val(csrf_token)}})}function change_modal_titel(title){$(".modal-title").html(title)};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.