v0.6.2 - Fixed various bugs

This commit is contained in:
frederikpyt
2020-08-11 09:55:01 +02:00
parent e5cf13c4c2
commit 81af08ef24
3 changed files with 12 additions and 3 deletions
@@ -9,7 +9,7 @@
<link type="text/css" rel="stylesheet" href="{{ mix("/css/webapp.css") }}">
@endif
</head>
<body>
<body onresize="setMain()" onload="setMain()">
<header class="row align-items-center" id="header">
@if(request()->cookie("mode") == "dark")
<img class="w-50" id="sdeLogo" src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" onclick="location.href = '{{ route("root.index") }}';" alt="Syddansk Erhvervsskole">
@@ -107,5 +107,14 @@
};
</script>
@endif
<script type="text/javascript">
function setMain() {
var main = document.getElementsByTagName("main")[0];
var header = document.getElementsByTagName("header")[0];
main.style.minHeight = 'calc(100% - ' + header.clientHeight + 'px)';
}
</script>
</body>
</html>