v1.4.7c Code shift
This commit is contained in:
parent
da2dce56e7
commit
26ae5f1212
|
@ -2,6 +2,8 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>@yield("title")</title>
|
<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">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link type="text/css" rel="stylesheet" href="{{ asset("/css/normalize.css") }}">
|
<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'>
|
<link rel='icon' href='{{ asset('/images/icons/pencil-dark.svg') }}' type='image/x-icon'>
|
||||||
|
|
|
@ -109,9 +109,6 @@
|
||||||
date_default_timezone_set('Europe/Copenhagen');
|
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)
|
@foreach($news as $new)
|
||||||
<!--Code to list events-->
|
<!--Code to list events-->
|
||||||
@if($new->type == 'News')<!--Code that prints news-->
|
@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>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,11 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section("content")
|
@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">
|
<div class="brand">
|
||||||
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
|
<img src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" alt="Syddansk Erhvervsskole">
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,7 +32,6 @@
|
||||||
<input class="btn btn-dark" type="submit" value="Sign in">
|
<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>
|
<button type="button" class="btn btn-dark" onclick="location.href = '{{ route("users.signup") }}'" style="line-height: 2rem;">Register</button>
|
||||||
</form>
|
</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>
|
<a class="text-white text-center" href="{{ route('users.show-forgot') }}">Forgot password?</a>
|
||||||
</main>
|
</main>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -49,31 +52,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
addToHomescreen();
|
||||||
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")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
Loading…
Reference in New Issue