Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/static/templ/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
海に生き,海を守り,海を行く,それがブルーマーメード
-->

<body data-bs-theme="dark">
<body data-bs-theme="dark" class="d-flex flex-column min-vh-100">
<!-- style="background-color: #314783;" -->
<nav class="navbar navbar-expand-lg">
<div id="index-navlist" class="container-fluid">
Expand Down Expand Up @@ -240,10 +240,10 @@
</div>
</nav>

<div class="container-fluid" id="index-cont" style="min-height:100%;">
<div class="container-fluid flex-grow-1" id="index-cont">
</div>

<footer class="text-muted py-3 me-3 float-end">
<footer class="text-muted py-3 pe-3 text-end">
<small>New TNFSH Online Judge - Go-Judge</small>
</footer>

Expand Down
6 changes: 4 additions & 2 deletions src/static/templ/pro.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
let j_cont = $('#cont');

function _load_html() {
j_cont.css('height', 'auto');
j_cont.load(html_url, function(res, status, xhr) {
if (status == 'error') {
$('#pdfbtn').show();
Expand All @@ -86,6 +87,7 @@
}

function _load_pdf_js() {
j_cont.css('height', 'auto');
PDFJS.getDocument(pdf_url).promise.then(function(pdf) {
j_cont.empty();
for (let i = 1; i <= pdf.numPages; i++) {
Expand Down Expand Up @@ -134,6 +136,7 @@

function _load_pdf_embed() {
j_cont.empty();
j_cont.css('height', '88vh');
var embed = $(`<embed width="100%" height="100%" src="${pdf_url}" type="application/pdf">`);
j_cont.append(embed);
}
Comment thread
uyo9 marked this conversation as resolved.
Expand Down Expand Up @@ -265,8 +268,7 @@ <h5 class="card-title">Waiting for you to become the first <span class="state-1"
</div>
</div>

<!-- TODO: Remove fixed height -->
<div id="cont" class="col-lg-10 col-12" style="height: 904px;">
<div id="cont" class="col-lg-10 col-12">
<strong>Loading...</strong>
</div>
</div>
Loading