Add Ticket Generation and Validation Scripts, still heavily unpolished and may contain bugsdev
parent
c863c2a575
commit
72627ef6c4
@ -0,0 +1,37 @@ |
||||
<!doctype html> |
||||
<html> |
||||
<head> |
||||
<meta charset="UTF-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
<link href="../css/dist.css" rel="stylesheet"> |
||||
<title>Univator</title> |
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> |
||||
</head> |
||||
<body> |
||||
<div class="flex min-h-[100vh] justify-center items-center text-white" bg-[url('../../img/bground1.jpg')]> |
||||
<div class="ml-auto mr-auto"> |
||||
|
||||
<div class="min-w-[60vw] rounded-3xl flex flex-wrap sm:flex-nowrap items-center py-10 sm:py-100 px-8 pb-10 justify-center text-center"> |
||||
<div class="my-5 w-5/6 items-center justify-center text-center"> |
||||
<p class="text-3xl pb-10 font-extrabold tracking-wide">Done.</p> |
||||
<p class="text-md md:text-xl font-normal tracking-wide pb-10">Wait for the confirmation message to appear (might take a bit), and then your product should be fully activated</p> |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
|
||||
</div> |
||||
|
||||
|
||||
<div class="text-white bold fixed bottom-4 flex flex-row flex-wrap sm:flex-nowrap items-center mx-50 justify-center ml-auto mr-auto mx-100 px-2 pt-100 text-md bg-purple md:bg-transparent"> |
||||
|
||||
<button type="button" class="redir outline rounded-md py-1 md:py-3 bg-mycol2 px-3 md:px-7 outline-0 outline-white hover:bg-indigo-900 mx-2" onclick="location.href = '../index.html';"> |
||||
<span class="hidden md:inline">Home</span> |
||||
</button> |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
</body> |
||||
|
||||
</html> |
||||
@ -0,0 +1,63 @@ |
||||
<!doctype html> |
||||
<html> |
||||
<head> |
||||
<meta charset="UTF-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
<link href="../css/dist.css" rel="stylesheet"> |
||||
<title>Univator</title> |
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> |
||||
</head> |
||||
<body> |
||||
<div class="flex min-h-[100vh] justify-center items-center text-white" bg-[url('../../img/bground1.jpg')]> |
||||
<div class="ml-auto mr-auto"> |
||||
|
||||
<div class="min-w-[60vw] rounded-3xl flex flex-wrap sm:flex-nowrap items-center py-10 sm:py-100 px-8 pb-10 justify-center text-center"> |
||||
<div class="my-5 w-5/6 items-center justify-center text-center max-w-3/4"> |
||||
<p class="text-3xl pb-10 font-extrabold tracking-wide" id="title">Generate Activation Request Ticket</p> |
||||
<div class="text-center text-white" id="okdiv"> |
||||
<button type="button" class="rounded-xl w-full bg-indigo-900 my-2 py-5 my-2 px-5 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope]" id="ok">Generate →</button> |
||||
|
||||
</div> |
||||
|
||||
<textarea class="rounded-2xl text-xl monospace bg-white text-black hidden" id="txtbox" cols="38" rows="10" style="font-family: monospace; display: none; margin-left: auto; margin-right: auto;">[GENERATED TICKET WILL APPEAR HERE]</textarea> |
||||
|
||||
<button type="button" class="rounded-xl w-full bg-indigo-900 my-2 py-5 my-2 px-5 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope] hidden" id="next" onclick="location.href = './done.html';">Install Ticket and Activate Windows (Permanent) →<p class="text-[0.5rem] md:text-xs">admin required</p></button> |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
|
||||
</div> |
||||
|
||||
|
||||
</div> |
||||
|
||||
</body> |
||||
|
||||
<script> |
||||
|
||||
const { ipcRenderer } = require('electron'); |
||||
|
||||
const txtbox = document.getElementById('txtbox'); |
||||
const okbut = document.getElementById('ok'); |
||||
const nextbut = document.getElementById('next'); |
||||
|
||||
okbut.addEventListener('click', () => { |
||||
ipcRenderer.send('genTicket'); |
||||
okbut.style.display = 'none'; |
||||
|
||||
}); |
||||
|
||||
ipcRenderer.on('ticketout', (ticket) => { |
||||
txtbox.textContent = String(ticket); |
||||
nextbut.style.display = 'block'; |
||||
txtbox.style.display = 'block'; |
||||
}); |
||||
|
||||
nextbut.addEventListener('click', () => { |
||||
ipcRenderer.send('installTicket'); |
||||
}) |
||||
|
||||
</script> |
||||
|
||||
</html> |
||||
@ -0,0 +1,55 @@ |
||||
<!doctype html> |
||||
<html> |
||||
<head> |
||||
<meta charset="UTF-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
<link href="../css/dist.css" rel="stylesheet"> |
||||
<title>Univator</title> |
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> |
||||
</head> |
||||
<body> |
||||
<div class="flex min-h-[100vh] justify-center items-center text-white" bg-[url('../../img/bground1.jpg')]> |
||||
<div class="md:max-w-[70vw] ml-auto mr-auto"> |
||||
|
||||
<div class="min-w-[60vw] rounded-3xl flex flex-wrap sm:flex-nowrap items-center py-10 sm:py-100 px-8 pb-10 justify-center text-center"> |
||||
<div class="my-5 md:w-2/3 items-center justify-center text-center"> |
||||
<p class="text-3xl pb-10 font-extrabold tracking-wide">Install Retail Product Key</p> |
||||
<p class="text-md md:text-xl font-normal tracking-wide pb-10">Next we need to install a generic retail product key to make sure windows is not in volume or oem mode</p> |
||||
|
||||
<div class="text-center text-white"> |
||||
<button type="button" class="rounded-xl w-full bg-indigo-900 my-2 py-5 my-2 px-5 text-sm md:text-xl font-bold tracking-wide justify-center items-center font-[manrope]" id="ok">Install Product Key →<p class="text-[0.5rem] md:text-xs">admin required</p></button> |
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
|
||||
</div> |
||||
|
||||
|
||||
<div class="text-white bold fixed bottom-4 flex flex-row flex-wrap sm:flex-nowrap items-center mx-50 justify-center ml-auto mr-auto mx-100 px-2 pt-100 text-md bg-purple md:bg-transparent"> |
||||
|
||||
<button type="button" class="redir outline rounded-md py-1 md:py-3 bg-mycol2 px-3 md:px-7 outline-0 outline-white hover:bg-indigo-900 mx-2" onclick="location.href = './edt.html';"> |
||||
<span class="hidden md:inline">Back</span> |
||||
</button> |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
</body> |
||||
|
||||
<script> |
||||
|
||||
const { ipcRenderer } = require('electron'); |
||||
|
||||
document.getElementById('ok').addEventListener("click", function(){ |
||||
|
||||
ipcRenderer.send("runIpk"); |
||||
location.href='./genticket.html'; |
||||
|
||||
}); |
||||
|
||||
</script> |
||||
|
||||
</html> |
||||
Loading…
Reference in new issue