feat: Embed PDF documents on the webpages which describe them. #13

Merged
daball merged 1 commits from daball/nm3clol-express-app:main into main 2024-06-22 14:30:42 -04:00
Showing only changes of commit 6fabbf4fe8 - Show all commits

View File

@ -23,11 +23,32 @@
<h1 class="title"><%= h.readmeFm(directory).title %></h1> <h1 class="title"><%= h.readmeFm(directory).title %></h1>
<p> <p>
<small> <small>
<%if (typeof h.readmeFm(directory).docDate !== 'undefined') { %><b>Document Date:</b> <%= h.moment(h.readmeFm(directory).docDate).format('MMMM D, YYYY') %><% } %> <%if (typeof h.readmeFm(directory).docDate !== 'undefined') { %>
<b>Document Date:</b> <%= h.moment(h.readmeFm(directory).docDate).format('MMMM D, YYYY') %>
<% } %>
<%if (typeof h.readmeFm(directory).file !== 'undefined') { %>
<b>Attached Document:</b> <a href="<%- encodeURI(h.readmeFm(directory).file) %>"><%- h.readmeFm(directory).file %></a>
<% } %>
</small> </small>
</p> </p>
<% } %> <% } %>
<% if (typeof h.readmeFm(directory).file !== 'undefined') { %>
<iframe src="<%- encodeURI(h.readmeFm(directory).file) %>" style="width: 100%; height: 90vh;"></iframe>
<% } else { %>
<%- h.printReadme(directory) %> <%- h.printReadme(directory) %>
<% } %>
</div>
</div>
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg" style="max-height:65vh;overflow-y:scroll">
<div class="col-lg-12 p-3 p-lg-5 pt-lg-3">
<h2 class="title">OCR Text Scan (approximately)</h1>
<p>
This text scan may contain automatically generated text as generated using Apache Tika
and Tesseract. It may not be correct. No effort has been made to correct any of these scans
(so far). These OCR scans are also used in the site's Search feature. Please review the
<a href="/search-policy" target="_blank">Search Policy</a> for details about the site features.
</p>
<pre style="white-space:pre-wrap;overflow-wrap:anywhere"><%- h.printReadme(directory) %></pre>
</div> </div>
</div> </div>
<% } %> <% } %>