v1.4.7c Code shift
This commit is contained in:
parent
da2dce56e7
commit
26ae5f1212
|
@ -2,6 +2,8 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<title>@yield("title")</title>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link type="text/css" rel="stylesheet" href="{{ asset("/css/normalize.css") }}">
|
||||
<link rel='icon' href='{{ asset('/images/icons/pencil-dark.svg') }}' type='image/x-icon'>
|
||||
|
|
|
@ -109,9 +109,6 @@
|
|||
date_default_timezone_set('Europe/Copenhagen');
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/../../../css/addtohomescreen.css">
|
||||
<script src="/../../../js/addtohomescreen.js"></script>
|
||||
|
||||
@foreach($news as $new)
|
||||
<!--Code to list events-->
|
||||
@if($new->type == 'News')<!--Code that prints news-->
|
||||
|
@ -257,7 +254,27 @@
|
|||
}
|
||||
}
|
||||
|
||||
addToHomescreen();
|
||||
|
||||
/*
|
||||
Make the application fullscreen
|
||||
*/
|
||||
|
||||
//Get all html
|
||||
let elem = document.documentElement;
|
||||
|
||||
function fullScreen() {
|
||||
if (elem.requestFullscreen) {
|
||||
elem.requestFullscreen();
|
||||
} else if (elem.mozRequestFullScreen) { //Support for Firefox browser
|
||||
elem.mozRequestFullScreen();
|
||||
} else if (elem.webkitRequestFullscreen) { //Support for Safari, Chrome and Opera browser
|
||||
elem.webkitRequestFullscreen();
|
||||
} else if (elem.msRequestFullscreen) { //And support for the old ass internet browser IE and Edge
|
||||
elem.msRequestFullscreen();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
|
|
@ -5,7 +5,11 @@
|
|||
@endsection
|
||||
|
||||
@section("content")
|
||||
<main style="background-color: #00788a; height: 100%;" onload="fullScreen();">
|
||||
<main style="background-color: #00788a; height: 100%;">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/../../../css/addtohomescreen.css">
|
||||
<script src="/../../../js/addtohomescreen.js"></script>
|
||||
|
||||
<div class="brand">
|
||||
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
|
||||
</div>
|
||||
|
@ -28,7 +32,6 @@
|
|||
<input class="btn btn-dark" type="submit" value="Sign in">
|
||||
<button type="button" class="btn btn-dark" onclick="location.href = '{{ route("users.signup") }}'" style="line-height: 2rem;">Register</button>
|
||||
</form>
|
||||
<button type="button" class="btn btn-dark" onclick="fullScreen();">Open Fullscreen</button>
|
||||
<a class="text-white text-center" href="{{ route('users.show-forgot') }}">Forgot password?</a>
|
||||
</main>
|
||||
@endsection
|
||||
|
@ -49,31 +52,7 @@
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
Make the application fullscreen
|
||||
*/
|
||||
|
||||
//Get all html
|
||||
let elem = document.documentElement;
|
||||
|
||||
function fullScreen() {
|
||||
if (elem.requestFullscreen) {
|
||||
elem.requestFullscreen();
|
||||
console.log("1")
|
||||
} else if (elem.mozRequestFullScreen) { //Support for Firefox browser
|
||||
elem.mozRequestFullScreen();
|
||||
console.log("1")
|
||||
} else if (elem.webkitRequestFullscreen) { //Support for Safari, Chrome and Opera browser
|
||||
elem.webkitRequestFullscreen();
|
||||
console.log("1")
|
||||
} else if (elem.msRequestFullscreen) { //And support for the old ass internet browser IE and Edge
|
||||
elem.msRequestFullscreen();
|
||||
console.log("1")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
addToHomescreen();
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
|
Loading…
Reference in New Issue