v0.10.14e - Location site now reloads with the div instead of the whole page
This commit is contained in:
parent
fa5cd1c3e2
commit
3e18809584
|
@ -12,7 +12,7 @@
|
||||||
<img src="{{ URL::asset('/images/logos/Logo-hvid.svg') }}" class="brand" alt="Syddansk Erhvervsskole">
|
<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>
|
<p class="text-white" style="margin-left: auto; padding-right: 24px; font-size: 1vw;">Lokation: {{ $location->name }}</p>
|
||||||
</header>
|
</header>
|
||||||
<main style="min-height: calc(100% - 72px); background-color: #ffffff;">
|
<main style="min-height: calc(100% - 72px); background-color: #ffffff;" id="mainDiv">
|
||||||
<?php
|
<?php
|
||||||
date_default_timezone_set('Europe/Copenhagen');
|
date_default_timezone_set('Europe/Copenhagen');
|
||||||
$i = 1;
|
$i = 1;
|
||||||
|
@ -45,8 +45,8 @@
|
||||||
<script src="{{ mix("/js/app.js") }}"></script>
|
<script src="{{ mix("/js/app.js") }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
setTimeout(function(){
|
setInterval(function(){ // There has to be a space between " and # or it will not load correctly
|
||||||
location.reload(true);
|
$('#mainDiv').load(" #mainDiv").fadeIn();
|
||||||
}, (60000*5));
|
}, (60000*5));
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue