148 lines
5.5 KiB
HTML
148 lines
5.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<title>Greenpass pure javascript decoder in browser</title>
|
|
<link href="style.css" type="text/css" rel="stylesheet">
|
|
<script type="text/javascript" src="js/llqrcode.js"></script>
|
|
<script type="text/javascript" src="js/qrdecode.js"></script>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
|
|
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="main">
|
|
<div id="header">
|
|
<h1 style="text-align:center">A simple Green Pass data extractor</h1>
|
|
<div id="mainbody">
|
|
<table class="tsel" border="0" width="100%">
|
|
<tr>
|
|
<td valign="top" align="center" width="50%">
|
|
<table class="tsel" border="0">
|
|
<tr>
|
|
<tr>
|
|
<td colspan="2" align="center">
|
|
<div id="outdiv">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
<div id="footer">
|
|
<br>
|
|
</div>
|
|
</div>
|
|
<canvas id="qr-canvas" width="800" height="600"></canvas>
|
|
</div>
|
|
<script type="text/javascript">;
|
|
|
|
setimg();
|
|
load();</script>
|
|
|
|
|
|
<br>
|
|
<br>
|
|
<div id="res">
|
|
<h1>Your reading is back!</h1>
|
|
<br>
|
|
<br>
|
|
<h2>Holder</h2>
|
|
Name: <b><span id="firstname" name="firstname"></span></b><br>
|
|
Surname: <b><span id="surname" name="surname"></span></b><br>
|
|
Date Of birth <b><span id="birth" name="birth"></span></b><br>
|
|
<br>
|
|
Covid test certificate: <b><span id="tested" name="tested"></span></b><br>
|
|
Covid recovery certificate: <b><span id="covidend" name="covidend"></span></b><br>
|
|
Covid vaccine certificate: <b><span id="vaccin" name="vaccin"></span></b><br>
|
|
<br>
|
|
<br>
|
|
<h2>Covid test data</h2>
|
|
Date: <b><span id="testDate" name="testDate"></span></b><br>
|
|
Device: <b><span id="testDevice" name="testDevice"></span></b><br>
|
|
Type: <b><span id="testType" name="testType"></span></b><br>
|
|
Name: <b><span id="testName" name="testName"></span></b><br>
|
|
Country: <b><span id="testCountryTestato" name="testCountryTestato"></span></b><br>
|
|
Center: <b><span id="testCenter" name="testCenter"></span></b><br>
|
|
Id: <b><span id="testCertId" name="testCertId"></span></b><br>
|
|
Issuer: <b><span id="issuerT" name="issuerT"></span></b><br>
|
|
Disease: <b><span id="testDisease" name="testDisease"></span></b><br>
|
|
RESULT: <b><span id="testResult" name="testResult"></span></b><br>
|
|
|
|
<br>
|
|
<br>
|
|
<h2>Covid recovery data</h2>
|
|
Target desease: <b><span id="targetR" name="targetR"></span></b><br>
|
|
First positive date: <b><span id="firstPositive" name="firstPositive"></span></b><br>
|
|
Test country: <b><span id="testCountryGuarito" name="testCountryGuarito"></span></b><br>
|
|
Certificate issuer: <b><span id="issuerR" name="issuerR"></span></b><br>
|
|
Valid from: <b><span id="validFromR" name="validFromR"></span></b><br>
|
|
Valid to: <b><span id="validToR" name="validToR"></span></b><br>
|
|
Valid for: <b><span id="validForDaysR" name="validForDaysR"></span></b> days<br>
|
|
Id: <b><span id="certIdR" name="certIdR"></span></b><br>
|
|
<br>
|
|
<br>
|
|
<h2>Covid vaccine data</h2>
|
|
Disease: <b><span id="targetV" name="targetV"></span></b><br>
|
|
Profilaxis: <b><span id="proph" name="proph"></span></b><br>
|
|
Vaccine ID: <b><span id="vaccid" name="vaccid"></span></b><br>
|
|
Vaccine manufacturer: <b><span id="manuf" name="manuf"></span></b><br>
|
|
dose number : <b><span id="receivedDoses" name="receivedDoses"></span></b> of <b><span id="neededDoses"
|
|
name="neededDoses"></span></b><br>
|
|
Vaccination date <b><span id="vaccinDate" name="vaccinDate"></span></b><br>
|
|
Country of vaccination: <b><span id="nation" name="nation"></span></b><br>
|
|
Certificate issuer: <b><span id="issuerV" name="issuerV"></span></b><br>
|
|
Certificate ID: <b><span id="idV" name="idV"></span></b><br>
|
|
<br>
|
|
<br>
|
|
<h2>Validity</h2>
|
|
Creation date: <b><span id="qrdate1" name="qrdate1"></span></b><br />
|
|
Expiry date: <b><span id="qrdate2" name="qrdate2"></span></b><br />
|
|
Duration: <b><span id="days" name="days"></span></b> days
|
|
(<b><span id="months" name="months"></span></b> months).<br>
|
|
Remaining: <b><span id="daysleft" name="daysleft"></span></b> days
|
|
(<b><span id="monthsleft" name="monthsleft"></span></b> months).<br>
|
|
<br />
|
|
<a href="javascript:newr();">Scan again</a>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
</div>
|
|
|
|
<!-- https://github.com/klonikar/qrcodejs -->
|
|
<!-- file a parte -->
|
|
|
|
<script src="js/pako.min.js"></script>
|
|
<!-- https://github.com/nodeca/pako/blob/master/dist/pako.min.js -->
|
|
|
|
<script src="js/my_base45_2.js"></script>
|
|
<!-- https://github.com/dirkx/base45-js/raw/main/lib/base45-js.js -->
|
|
|
|
<script src="js/cbor.js"></script>
|
|
<!-- https://github.com/paroga/cbor-js/raw/master/cbor.js -->
|
|
|
|
<script src="js/disease-agent-targeted.js"></script>
|
|
<script src="js/vaccine-prophylaxis.js"></script>
|
|
<script src="js/vaccine-medicinal-product.js"></script>
|
|
<script src="js/vaccine-mah-manf.js"></script>
|
|
<script src="js/test-result.js"></script>
|
|
<script src="js/test-manf.js"></script>
|
|
<script src="js/test-type.js"></script>
|
|
<script src="js/hexbuf.js"></script>
|
|
|
|
<script src="js/main.js"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
|
|
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
|
|
crossorigin="anonymous"></script>
|
|
</body>
|
|
|
|
</html> |