Skip to content

Commit

Permalink
Add an index
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Jun 23, 2023
1 parent d0f9d48 commit 588c746
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 4 additions & 7 deletions VerifierInsuranceCompany/Pages/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@model IndexModel
@{
ViewData["Title"] = "Home";
var nonce = this.HttpContext.GetNonce();
}

<div class="container">
Expand All @@ -13,14 +14,10 @@
<h3>Verifiable Credential Insurance which requires driving license proof</h3>

<button type="button" id="idVerify" class="btn btn-primary">Do new verification</button>
<script>
var idVerify = document.getElementById('idVerify');

idVerify.addEventListener('click', () => {
window.location = "verifier";
})
</script>
<script src="index.js" nonce="@nonce"></script>

</div>
</div>
</div>
</div>
</div>
5 changes: 5 additions & 0 deletions VerifierInsuranceCompany/wwwroot/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var idVerify = document.getElementById('idVerify');

idVerify.addEventListener('click', () => {
window.location = "verifier";
})

0 comments on commit 588c746

Please sign in to comment.