Server IP : 162.213.251.212 / Your IP : 18.222.113.254 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/needapair.com/public/ |
Upload File : |
<!DOCTYPE html> <html> <head> <title> Home </title> <meta charset="UTF-8"> <meta name="keywords" content="HTML, CSS, JavaScript"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <%- include('./parcials/cssLinks') %> <link href="<%= baseUrl %>css/dashboard.css" rel="stylesheet" type="text/css"> </head> <body> <%- include('./parcials/header') %> <main class="certificate-page"> <% if(eCard){ %> <h2 class="theme-h2">Your Card</h2> <section class="card-wrapper"> <div class="card-item"> <% if(eCard.recipentemail == email){ %> <ul class="cta-cards"> <li><a id="print-card" href="javascript:;printCard()" title="Print Card"><i class="fa-solid fa-print"></i></a></li> <li><a id="download-card" href="javascript:;" title="Download Card"><i class="fa-solid fa-file-arrow-down"></i></a></li> </ul> <% } %> <canvas id="design"></canvas> </div> </section> <% } else{ %> <section class="certificate-wrapper"> <h2 class="theme-h2">Card Not Found...</h2> </section> <% } %> </main> <%- include('./parcials/footer') %> <script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script> <%- include('./parcials/scriptLinks') %> <%- include('./parcials/e-card-links') %> </body> <script> function printCard() { var printWindow = window.open('', '', `width=1056 ,height=816,left=${screen.width / 4},top=100`); printWindow.document.write('<html><head><title>Print Card</title></head><body>'); printWindow.document.write('<style>body{display:flex;align-items:center;justify-content:center;} img{transform: scale(1.3)} @media print {@page {size: portrait;margin:0;@top-left {content: "";}@top-right {content: "";}@bottom-left {content: "";}@bottom-right {content: "";}}}</style><img src="' + design.toDataURL() + '"' + 'width="' + design.getWidth() + '" height="' + design.getHeight() + '">'); printWindow.document.write('</body></html>'); setTimeout(() => { printWindow.print(); printWindow.close(); }, 500); } </script> <script> var cardJson = JSON.parse(`<%- cardJson %>`.replaceAll("\n","\\n")); design.loadFromJSON(cardJson); $(document).ready(function() { $("#download-card").attr('href', design.toDataURL()) $("#download-card").attr('download', "Bill Hess Card") }) </script> </html>