Merge branch 'master' of https://github.com/sebathefox/skolehjem-webapp into master
This commit is contained in:
@@ -80,6 +80,12 @@
|
||||
{{ __('msg.logud') }}
|
||||
</a>
|
||||
</div>
|
||||
<style>
|
||||
option, textarea {
|
||||
color: black;
|
||||
}
|
||||
|
||||
</style>
|
||||
@yield("content")
|
||||
<script src="{{ mix("/js/app.js") }}"></script>
|
||||
@if(request()->cookie("mode") == "dark")
|
||||
|
||||
@@ -45,12 +45,14 @@
|
||||
<script src="{{ asset("/js/moment-with-locales.min.js") }}"></script>
|
||||
<script src="{{ asset("/js/da.min.js") }}"></script>
|
||||
<script>
|
||||
//Global vars to use outside functions
|
||||
var momentDate = null;
|
||||
var dateText = null;
|
||||
|
||||
//Custom forEach
|
||||
NodeList.prototype.forEach = Array.prototype.forEach;
|
||||
|
||||
//Generates the calender when the site loads
|
||||
function generateCalendar(weekOffset = 0) {
|
||||
const week = (moment().week() + weekOffset);
|
||||
|
||||
@@ -109,6 +111,7 @@
|
||||
calendar.appendChild(calendarBody);
|
||||
}
|
||||
|
||||
//When a date is selected
|
||||
function onDateSelect(date, dayHolder, datetext) {
|
||||
//Set selected date and dateText
|
||||
momentDate = date;
|
||||
|
||||
Reference in New Issue
Block a user