403Webshell
Server IP : 172.67.147.195  /  Your IP : 216.73.216.142
Web Server : Apache/2
System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : mienphi ( 1014)
PHP Version : 8.2.14
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mienphi/public_html/wp-content/plugins/learnpress/assets/js/admin/order/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/public_html/wp-content/plugins/learnpress/assets/js/admin/order/export_invoice.min.js
export default function export_invoice(){let e,t;document.addEventListener("click",(t=>{const o=t.target;if("lp-invoice__export"===o.id)e.save();else if("lp-invoice__update"===o.id){const e=document.querySelector(".export-options__content").querySelectorAll("input"),t=[];e.forEach((e=>{e.checked||t.push(e.name)})),window.localStorage.setItem("lp_invoice_un_fields",JSON.stringify(t)),window.localStorage.setItem("lp_invoice_show",1),window.location.reload()}}));document.addEventListener("DOMContentLoaded",(()=>{if(!document.querySelector("#order-export__section").length){document.querySelectorAll(".tabs");const n=document.querySelectorAll(".tab"),l=document.querySelectorAll(".panel");function o(e){for(let e=0;e<n.length;e++)n[e].classList.remove("active");for(let e=0;e<l.length;e++)l[e].classList.remove("active");e.target.classList.add("active");const t=e.target.getAttribute("data-target");document.getElementById("panels").getElementsByClassName(t)[0].classList.add("active")}for(let s=0;s<n.length;s++)n[s].addEventListener("click",o,!1);t=document.getElementById("myModal");const c=document.getElementById("order-export__button"),i=document.getElementsByClassName("close")[0];c.onclick=function(){t.style.display="block"},i.onclick=function(){t.style.display="none",window.localStorage.setItem("lp_invoice_show",0)},window.onclick=function(e){e.target===t&&(t.style.display="none",window.localStorage.setItem("lp_invoice_show",0))},(()=>{const e=window.localStorage.getItem("lp_invoice_un_fields"),o=document.querySelector(".export-options__content");document.querySelectorAll(".invoice-field").forEach((t=>{const n=t.classList[1];if(e&&e.includes(n)){t.remove();const e=o.querySelector(`[name=${n}]`);e&&(e.checked=!1)}})),1===parseInt(window.localStorage.getItem("lp_invoice_show"))&&(t.style.display="block")})(),(()=>{const t={margin:[0,0,0,5],filename:document.title,image:{type:"webp"},html2canvas:{scale:2.5},jsPDF:{format:"a4",orientation:"p"}},o=document.querySelector("#lp-invoice__content");e=html2pdf().set(t).from(o)})()}}))}

Youez - 2016 - github.com/yon3zu
LinuXploit