Merge pull request #48 from H4CK3R-01/fix_manual
Manual is shown several times
This commit is contained in:
commit
8749193951
@ -95,3 +95,8 @@ main {
|
||||
width: 100%;
|
||||
height: calc(100% - 50px);
|
||||
}
|
||||
|
||||
#manual {
|
||||
width: 100%;
|
||||
height: calc(100% - 50px);
|
||||
}
|
@ -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>
|
||||
|
@ -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';
|
||||
}
|
Loading…
Reference in New Issue
Block a user