Manual is shown several times

This commit is contained in:
H4CK3R-01 2021-07-01 09:23:50 +02:00 committed by H4CK3R-01
parent 1fe82b6165
commit c7cc5aea63
3 changed files with 9 additions and 1 deletions

View File

@ -94,4 +94,9 @@ main {
background-color: #fefefe;
width: 100%;
height: calc(100% - 50px);
}
#manual {
width: 100%;
height: calc(100% - 50px);
}

View File

@ -59,6 +59,7 @@
onclick="document.getElementById('modal').style.display = 'none';">close</i></span>
</div>
<div class="divider"></div>
<div id="manual"></div>
</div>
</div>
</main>

View File

@ -57,6 +57,8 @@ function open_manual() {
let frame = document.createElement('iframe');
frame.src = 'data/Spielanleitung.pdf';
frame.id = 'spielanleitung';
document.getElementById('content').appendChild(frame);
document.getElementById('manual').innerHTML = '';
document.getElementById('manual').appendChild(frame);
document.getElementById('modal').style.display = 'block';
}