Merge pull request #48 from H4CK3R-01/fix_manual

Manual is shown several times
This commit is contained in:
Florian Kaiser 2021-07-01 09:30:44 +02:00 committed by GitHub
commit 8749193951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -95,3 +95,8 @@ main {
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';
}