go to page after verify
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 28s
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 28s
This commit is contained in:
@@ -21,9 +21,7 @@
|
||||
<div id="result-safe" style="display:none;">
|
||||
<div style="font-size: 3rem; margin-bottom: 0.5rem;">✅</div>
|
||||
<h2>Verified Loot Hunt QR</h2>
|
||||
<p style="color: var(--muted); margin-bottom: 1rem;">This code points to a verified Loot Hunt page.</p>
|
||||
<a id="result-safe-link" href="#" class="btn btn-primary" style="width: 100%; justify-content: center; font-size: 1rem;">Open Package</a>
|
||||
<button onclick="resumeScanner()" class="btn btn-outline" style="width: 100%; margin-top: 0.5rem;">Scan Another</button>
|
||||
<p style="color: var(--muted); margin-bottom: 1rem;">Looks good to us; lets go!</p>
|
||||
</div>
|
||||
<div id="result-warning" style="display:none;">
|
||||
<div style="font-size: 3rem; margin-bottom: 0.5rem;">⚠️</div>
|
||||
@@ -211,6 +209,11 @@
|
||||
if (isTrusted) {
|
||||
document.getElementById('result-safe').style.display = 'block';
|
||||
document.getElementById('result-safe-link').href = data;
|
||||
// Go to the package page after 1 second to give user feedback that the scan was successful
|
||||
setTimeout(function() {
|
||||
window.location.href = data;
|
||||
return;
|
||||
}, 1000);
|
||||
} else {
|
||||
document.getElementById('result-warning').style.display = 'block';
|
||||
document.getElementById('result-warning-url').textContent = data;
|
||||
|
||||
Reference in New Issue
Block a user