AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.192
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_apps/leo/application/plugins/module_imobles/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/leo/application/plugins/module_imobles/assets/js/paymentPlan-jpeg.js
function saveImages(images) {
    images.forEach(function (canvas, index) {
        var a = document.createElement('a');
        a.href = canvas.toDataURL("image/jpeg").replace("image/jpeg", "image/octet-stream");
        a.download = 'planoDePagamento.jpg';
        a.click();
    });    
}

function saveTofile(){
    var classesNodeList = document.querySelectorAll(".payment_plan");
    var images = [];
    var promises = Array.prototype.map.call(classesNodeList, function(element) {
        return html2canvas(element).then(
            res=>{
                images.push(res);
            }
        ).catch(error=>console.log(error));            
    });
    
    Promise.all(promises).then((values) => {
        saveImages(images);
    });
}

function copyToClipboard(){
    let src = document.getElementById("payment_plan");
    html2canvas(src).then(function(canvas) {
    //   document.getElementById("body").appendChild(canvas);
      canvas.toBlob(function(blob) {
        navigator.clipboard
          .write([
            new ClipboardItem(
              Object.defineProperty({}, blob.type, {
                value: blob,
                enumerable: true
              })
            )
          ])
          .then(function() {
              // do something
          });
      });
    });
  }

Anon7 - 2022
AnonSec Team