mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-12 13:26:47 +00:00
fix calendar midmatch
This commit is contained in:
parent
6665bd74c7
commit
9254b1a900
2 changed files with 0 additions and 33 deletions
|
|
@ -1,32 +0,0 @@
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
|
||||||
const calendarEl = document.getElementById("calendar");
|
|
||||||
const calendar = new FullCalendar.Calendar(calendarEl, {
|
|
||||||
headerToolbar: {
|
|
||||||
left: "prev,next",
|
|
||||||
right: "title",
|
|
||||||
},
|
|
||||||
locale: "fr",
|
|
||||||
firstDay: 1, // week start on Monday
|
|
||||||
displayEventTime: false, // don't show the time column in list view
|
|
||||||
googleCalendarApiKey: "AIzaSyC2Wcg2Q2sq071w_L6k5JfHnPptlseU16g",
|
|
||||||
events: {
|
|
||||||
googleCalendarId:
|
|
||||||
"burik7aclvhc7vsboh06c179uo@group.calendar.google.com",
|
|
||||||
},
|
|
||||||
// eventColor: "#378006",
|
|
||||||
contentHeight: "auto",
|
|
||||||
// don't navigate in main tab
|
|
||||||
eventClick: (arg) => {
|
|
||||||
arg.jsEvent.preventDefault();
|
|
||||||
},
|
|
||||||
themeSystem: "bootstrap",
|
|
||||||
|
|
||||||
loading: (bool) => {
|
|
||||||
document.getElementById("loading").style.display = bool
|
|
||||||
? "block"
|
|
||||||
: "none";
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
calendar.render();
|
|
||||||
});
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
<link rel="stylesheet" href="{% static 'rental/lib/calendar/main.min.css' %}" />
|
<link rel="stylesheet" href="{% static 'rental/lib/calendar/main.min.css' %}" />
|
||||||
<link rel="stylesheet" href="{% static 'rental/lib/calendar/style.css' %}" />
|
<link rel="stylesheet" href="{% static 'rental/lib/calendar/style.css' %}" />
|
||||||
<script src="{% static 'rental/lib/calendar/main.min.js' %}"></script>
|
<script src="{% static 'rental/lib/calendar/main.min.js' %}"></script>
|
||||||
<script src="{% static 'rental/lib/calendar/main.js' %}"></script>
|
|
||||||
<script src="{% static 'rental/lib/calendar/locales/fr.js' %}"></script>
|
<script src="{% static 'rental/lib/calendar/locales/fr.js' %}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue