remove info popup. Closes #12

This commit is contained in:
Felix Schulze 2019-11-11 19:43:52 +01:00
parent 58889b73ae
commit 3594ca0fac
3 changed files with 0 additions and 34 deletions

View File

@ -8001,18 +8001,6 @@ body {
height: 0 height: 0
} }
#popup {
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
cursor: pointer;
background-color: #fff;
position: fixed;
z-index: 9;
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
min-width: 340px;
}
@media screen and (max-width:450px) { @media screen and (max-width:450px) {
.marginAuto { .marginAuto {
margin-bottom: 0!important; margin-bottom: 0!important;

View File

@ -1,29 +1,8 @@
<?php <?php
echo " echo "
<div id='hider' style='display:none;height: 100vh;position: fixed;width: 100vw;top: 0;background-color: rgba(85, 85, 85, 0.74);z-index: 4;'></div>
<div id='popup' style='display:none;'>
<div style='margin:30px;'>
<h1>Tips</h1><br>
<h5>Glömt bort vilken kurs som innehåller vad? Håll muspekaren över en icke standard kurs för att se mer info.</h5><br><br>
<img src='/img/tips.jpg' width='100%' height='auto' alt='Tips' style='max-width:450px; margin:auto; display:block;'/>
</div>
</div>
<!--popup-->
<script> <script>
$(document).ready(function() { $(document).ready(function() {
laddaBetyg(); laddaBetyg();
if(localStorage.getItem('popupInfo') != 'sett'){
$('#popup').delay(1000).fadeIn();
$('#hider').delay(300).fadeIn();
}
$('body').click(function(e)
{
$('#popup').fadeOut();
$('#hider').fadeOut();
localStorage.setItem('popupInfo','sett')
});
}); });
</script> </script>
"; ";

View File

@ -14,7 +14,6 @@ self.addEventListener('install', function(e) {
'/Teknik', '/Teknik',
'/Kontakt', '/Kontakt',
'/css/main.css', '/css/main.css',
'/img/tips.jpg',
'/img/background.jpg', '/img/background.jpg',
'/img/background85.webp', '/img/background85.webp',
'/img/favicon/manifest.json', '/img/favicon/manifest.json',