Browse Source

event of generate and verify to GA.

pull/3/head
Vitor Pamplona 5 years ago
parent
commit
28b7934808
18 changed files with 52 additions and 1 deletions
  1. +2
    -0
      banknote.html
  2. +3
    -0
      cowin.html
  3. +2
    -0
      debug.html
  4. +3
    -0
      eu.dgc.html
  5. +4
    -0
      eu.dgc.v1.html
  6. +4
    -0
      icao.html
  7. +2
    -0
      index.v-1.html
  8. +2
    -0
      index.v0.html
  9. +2
    -0
      index.v1.html
  10. +2
    -0
      index.v2.html
  11. +2
    -0
      index.v3.html
  12. +2
    -0
      index.v4.html
  13. +4
    -0
      index.v5.html
  14. +4
    -0
      liberty.html
  15. +4
    -0
      opencerta.html
  16. +4
    -0
      us.ma.id.html
  17. +2
    -1
      verify.html
  18. +4
    -0
      vial.html

+ 2
- 0
banknote.html View File

@ -177,6 +177,7 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function generateQRCodes() {
gtag('event', 'generateQR');
clear();
// Where to Download the public key
@ -196,6 +197,7 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function verifyQRCode() {
gtag('event', 'verifyQR');
PCFUtils.debugParseURI(e("qr-verify").value).then(result => {
e("qr-verify-result").innerHTML = result;
});


+ 3
- 0
cowin.html View File

@ -266,6 +266,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function generateQRCodes() {
gtag('event', 'generateQR');
// Where to Download the public key
const pubKeyLink = e("qr-link").value.trim().replace("http://","");
@ -376,6 +378,7 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function verifyQRCode() {
gtag('event', 'verifyQR');
const payload = e("qr-verify").value;
if (payload.startsWith("CRED:")) {
PCFUtils.debugParseURI(e("qr-verify").value).then(result => {


+ 2
- 0
debug.html View File

@ -120,6 +120,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0=
}
function verifyQRCode() {
gtag('event', 'debugQR');
e("qr-verify-brand").innerHTML = "";
e("qr-verify-result").innerHTML = "Checking";
e('qr-verify-verified').innerHTML = "";


+ 3
- 0
eu.dgc.html View File

@ -1016,6 +1016,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0=
}
function generateQRCodes() {
gtag('event', 'generateQR');
clear(payloads, compressionAlgos);
// Where to Download the public key
@ -1070,6 +1072,7 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0=
}
function verifyQRCode() {
gtag('event', 'verifyQR');
if (e("qr-verify").value.startsWith('CRED:')) {
PCFUtils.debugParseURI(e("qr-verify").value).then(result => {
e("qr-verify-result").innerHTML = result;


+ 4
- 0
eu.dgc.v1.html View File

@ -671,6 +671,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0=
}
function generateQRCodes() {
gtag('event', 'generateQR');
clear(payloads, compressionAlgos);
// Where to Download the public key
@ -1080,6 +1082,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0=
}
function verifyQRCode() {
gtag('event', 'verifyQR');
if (e("qr-verify").value.startsWith('CRED:')) {
PCFUtils.debugParseURI(e("qr-verify").value).then(result => {
e("qr-verify-result").innerHTML = result;


+ 4
- 0
icao.html View File

@ -836,6 +836,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0=
}
function generateQRCodes() {
gtag('event', 'generateQR');
clear();
// Where to Download the public key
@ -969,6 +971,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0=
}
function verifyQRCode() {
gtag('event', 'verifyQR');
if (e("qr-verify").value.startsWith('CRED:')) {
PCFUtils.debugParseURI(e("qr-verify").value).then(result => {
e("qr-verify-result").innerHTML = result;


+ 2
- 0
index.v-1.html View File

@ -102,6 +102,8 @@
//e(elemPrefix + "-bytes").innerHTML = "QR Version: " + qr.version + " with size " + qr.modules.size + "x" + qr.modules.size + " bits => " + Math.round((qr.modules.size*qr.modules.size)/8) + " bytes";
}
function generateQRCodes() {
gtag('event', 'generateQR');
generateCode('text-qr1', "qr-code1");
generateCode('text-qr2', "qr-code2");
}


+ 2
- 0
index.v0.html View File

@ -103,6 +103,8 @@ uku7JUXcVpt08DFSceCEX9unCuMcT72rAQlLpdZir876
client.send();
}
function generateQRCode() {
gtag('event', 'generateQR');
var message = addIfExists("data=", 'india-data');
var pubkey = e("qr-link").value.trim().replace("http://","");


+ 2
- 0
index.v1.html View File

@ -112,6 +112,8 @@ uku7JUXcVpt08DFSceCEX9unCuMcT72rAQlLpdZir876
client.send();
}
function generateQRCode() {
gtag('event', 'generateQR');
var message = "date="+e("qr-date").value;
message += addIfExists("&vaccinee=", "qr-vaccineeid");
message += addIfExists("&vaccinator=", "qr-vacinatorid");


+ 2
- 0
index.v2.html View File

@ -192,6 +192,8 @@ uku7JUXcVpt08DFSceCEX9unCuMcT72rAQlLpdZir876
}
function generateQRCodes() {
gtag('event', 'generateQR');
var pubkey = e("qr-link").value.trim().replace("http://","");
var prikey = e('privkey').value;


+ 2
- 0
index.v3.html View File

@ -213,6 +213,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function generateQRCodes() {
gtag('event', 'generateQR');
var pubkey = e("qr-link").value.trim().replace("http://","");
var prikey = e('privkey').value;


+ 2
- 0
index.v4.html View File

@ -243,6 +243,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function generateQRCodes() {
gtag('event', 'generateQR');
// Get Keys
let pubkey = e("qr-link").value.trim().replace("http://","");
let prikey = e('privkey').value;


+ 4
- 0
index.v5.html View File

@ -206,6 +206,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
async function generateQRCodes() {
gtag('event', 'generateQR');
clear();
// Where to Download the public key
@ -256,6 +258,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function verifyQRCode() {
gtag('event', 'verifyQR');
PCFUtils.debugParseURI(e("qr-verify").value).then(result => {
e("qr-verify-result").innerHTML = result;
});


+ 4
- 0
liberty.html View File

@ -255,6 +255,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function generateQRCodes() {
gtag('event', 'generateQR');
// Where to Download the public key
const pubKeyLink = e("qr-link").value.trim().replace("http://","");
@ -314,6 +316,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function verifyQRCode() {
gtag('event', 'verifyQR');
PCFUtils.debugParseURI(e("qr-verify").value).then(result => {
e("qr-verify-result").innerHTML = result;
});


+ 4
- 0
opencerta.html View File

@ -268,6 +268,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function generateQRCodes() {
gtag('event', 'generateQR');
// Where to Download the public key
const pubKeyLink = e("qr-link").value.trim().replace("http://","");
@ -291,6 +293,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function verifyQRCode() {
gtag('event', 'verifyQR');
PCFUtils.debugParseURI(e("qr-verify").value).then(result => {
e("qr-verify-result").innerHTML = result;
});


+ 4
- 0
us.ma.id.html View File

@ -239,6 +239,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function generateQRCodes() {
gtag('event', 'generateQR');
clear();
// Where to Download the public key
@ -310,6 +312,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function verifyQRCode() {
gtag('event', 'verifyQR');
PCFUtils.debugParseURI(e("qr-verify").value).then(result => {
e("qr-verify-result").innerHTML = result;
});


+ 2
- 1
verify.html View File

@ -122,7 +122,8 @@
return hash.substr(0,10) + ".." + hash.substr(hash.length-10,10)
}
function verifyQRCode(data) {
function verifyQRCode(data) {
gtag('event', 'universalverifyQR');
if (!data)
data = e("qr-verify").value;


+ 4
- 0
vial.html View File

@ -177,6 +177,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function generateQRCodes() {
gtag('event', 'generateQR');
clear();
// Where to Download the public key
@ -202,6 +204,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ==
}
function verifyQRCode() {
gtag('event', 'verifyQR');
PCFUtils.debugParseURI(e("qr-verify").value).then(result => {
e("qr-verify-result").innerHTML = result;
});


Loading…
Cancel
Save