v0.10.14e - Location site now reloads with the div instead of the whole page

This commit is contained in:
Anders 2020-08-24 14:25:50 +02:00
parent fa5cd1c3e2
commit 3e18809584
1 changed files with 21 additions and 21 deletions

View File

@ -12,7 +12,7 @@
<img src="{{ URL::asset('/images/logos/Logo-hvid.svg') }}" class="brand" alt="Syddansk Erhvervsskole">
<p class="text-white" style="margin-left: auto; padding-right: 24px; font-size: 1vw;">Lokation: {{ $location->name }}</p>
</header>
<main style="min-height: calc(100% - 72px); background-color: #ffffff;">
<main style="min-height: calc(100% - 72px); background-color: #ffffff;" id="mainDiv">
<?php
date_default_timezone_set('Europe/Copenhagen');
$i = 1;
@ -45,8 +45,8 @@
<script src="{{ mix("/js/app.js") }}"></script>
<script type="text/javascript">
$(document).ready(function () {
setTimeout(function(){
location.reload(true);
setInterval(function(){ // There has to be a space between " and # or it will not load correctly
$('#mainDiv').load(" #mainDiv").fadeIn();
}, (60000*5));
});
</script>