Skip to content

Commit

Permalink
add some legal notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-42 committed Sep 20, 2023
1 parent 5a6c475 commit d9d8926
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 22 deletions.
78 changes: 56 additions & 22 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,38 +135,72 @@ h1 {
background-color: transparent;
}
}

#shareIcon {
position: fixed;
bottom: 20px;
right: 20px;
cursor: pointer;
position: fixed;
bottom: 20px;
right: 20px;
cursor: pointer;
}

#openLegal {
position: fixed;
bottom: 20px;
left: 20px;
cursor: pointer;
}

#qrCodePopup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
padding: 20px;
border: 2px solid #0071F0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
padding: 20px;
border: 2px solid #0071F0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: none;
}

#qrCodePopup img {
max-width: 100%;
height: auto;
max-width: 100%;
height: auto;
}

#closePopup {
display: block;
margin-top: 10px;
background-color: #0071F0;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
display: block;
margin-top: 10px;
background-color: #0071F0;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
}



#legalPopup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
padding: 20px;
border: 2px solid #0071F0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: none;

}


#closeLegal {
display: block;
margin-top: 10px;
background-color: #0071F0;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
}

.matrix-latex {
Expand Down
22 changes: 22 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,21 @@ <h1>Max-Matrix-Multiplikationsspiel</h1>
<button id="closePopup">Schließen</button>
</div>

<a id="openLegal">Rechtliches</a>

<div id="legalPopup">
<h3>Impressum</h3>
<p>Max Oppermann</p>
<p>Lindholz, 9</p>
<p>31139 Hildesheim</p>
<br>
<p>Icons von <a href="https://tablericons.com/" target="_blank">Tabler Icons</a></p>
<p>MathJax von <a href="https://www.mathjax.org/" target="_blank">MathJax</a></p>
<button id="closeLegal">Schließen</button>
</div>




</div>

Expand Down Expand Up @@ -303,6 +318,13 @@ <h1>Max-Matrix-Multiplikationsspiel</h1>
document.getElementById('closePopup').addEventListener('click', function () {
document.getElementById('qrCodePopup').style.display = 'none';
});
document.getElementById('openLegal').addEventListener('click', function () {
document.getElementById('legalPopup').style.display = 'block';
});

document.getElementById('closeLegal').addEventListener('click', function () {
document.getElementById('legalPopup').style.display = 'none';
});

</script>
</body>
Expand Down

0 comments on commit d9d8926

Please sign in to comment.