1.9.3 - verbiage change and fix janssen photo color issue

This commit is contained in:
Billy Lo 2021-09-23 17:20:21 -04:00
parent 088c2de84c
commit e1ab604858
2 changed files with 1 additions and 8 deletions

View File

@ -1,5 +1,5 @@
title: Vaccination Receipt to Wallet
subtitle: This tool converts your vaccination receipt from Ontario Ministry of Health to an Apple Wallet pass for easy access in the interim.
subtitle: This utility (created by volunteers) converts your vaccination receipt from Ontario Ministry of Health to an Apple Wallet pass for easy access in the interim.
subtitle2: Once Ontario's official QR code is released on Oct 22, you will be able to update your Apple Wallet pass by visiting this site again.
update1Date: Sep 23 Updates
update1: Thanks so much for all the encouragements and suggestions to make this better. We plan to keep enhancing this to help more Canadians. Stay tuned!

View File

@ -89,11 +89,6 @@ export class Photo {
const body = document.getElementById('pass-image');
body.hidden = false;
if (payload.receipt.numDoses > 1)
body.style.backgroundColor = 'green';
else
body.style.backgroundColor = 'orangered';
const name = payload.receipt.name;
const dateOfBirth = payload.receipt.dateOfBirth;
const vaccineName = payload.receipt.vaccineName;
@ -104,14 +99,12 @@ export class Photo {
if (vaccineName.includes('MODERNA'))
vaccineNameProper = 'Moderna (SpikeVax)'
// vaccineNameProper = 'Pfizer (Comirnaty)'
if (vaccineName.includes('ASTRAZENECA'))
vaccineNameProper = 'AstraZeneca (Vaxzevria)'
let doseVaccine = "#" + String(payload.receipt.numDoses) + ": " + vaccineNameProper;
document.getElementById('vaccineName').innerText = doseVaccine;
document.getElementById('vaccinationDate').innerText = payload.receipt.vaccinationDate;
document.getElementById('organization').innerText = payload.receipt.organization;