38 lines
986 B
Plaintext
38 lines
986 B
Plaintext
@using EnvelopeGenerator.Common;
|
|
@{
|
|
ViewData["Title"] = "Home Page";
|
|
}
|
|
|
|
@functions {
|
|
string encodeEnvelopeKey(Envelope envelope)
|
|
{
|
|
var receiver = envelope.Receivers.Where(r => r.Id == 1).SingleOrDefault();
|
|
return Helpers.EncodeEnvelopeReceiverId(envelope.Uuid, receiver.Signature);
|
|
}
|
|
}
|
|
|
|
<div class="container">
|
|
<section>
|
|
<ul>
|
|
@foreach (Envelope envelope in @Model)
|
|
{
|
|
<li><a href="/EnvelopeKey/@encodeEnvelopeKey(envelope)">@envelope.Title</a></li>
|
|
}
|
|
</ul>
|
|
</section>
|
|
|
|
<section>
|
|
<a href="#" id="url" target="_blank">Show image</a>
|
|
<img src="#" id="img" />
|
|
</section>
|
|
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
const anno = new Annotation()
|
|
anno.createAnnotationFrameBlob("Deine Mudda", 200, 80).then(url => document.getElementById("img").src = url)
|
|
})
|
|
</script>
|
|
|
|
</div>
|
|
|