From b946e60c1d40c4d2449433c9a5329713e11efe2e Mon Sep 17 00:00:00 2001 From: H4CK3R-01 <44125287+H4CK3R-01@users.noreply.github.com> Date: Thu, 24 Jun 2021 11:12:34 +0200 Subject: [PATCH] Fixed game guide --- public/index.html | 7 +------ public/js/index.js | 10 +++++++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/public/index.html b/public/index.html index 1ab98bb..ea55125 100644 --- a/public/index.html +++ b/public/index.html @@ -17,7 +17,7 @@
Spielanleitung
+ onclick="open_manual();">Spielanleitung
PM-Game
DATE_TO_BE_REPLACEDCOMMIT_TO_BE_REPLACED
@@ -59,11 +59,6 @@ onclick="document.getElementById('modal').style.display = 'none';">close
- diff --git a/public/js/index.js b/public/js/index.js index 8493e39..f69d669 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -51,4 +51,12 @@ document.getElementById('ok').addEventListener('click', function () { socket.on('user left', function (data) { addLogMessage(data + ' left'); }); -}); \ No newline at end of file +}); + +function open_manual() { + let frame = document.createElement('iframe'); + frame.src = 'data/Spielanleitung.pdf'; + frame.id = 'spielanleitung'; + document.getElementById('content').appendChild(frame); + document.getElementById('modal').style.display = 'block'; +} \ No newline at end of file -- 2.45.2