Skip to content

Commit

Permalink
Allow deep linking to a specific month
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Nov 16, 2023
1 parent aa2fec5 commit bd723e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

<script>
document.addEventListener('DOMContentLoaded', function() {
var calendarDiv = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarDiv, {
const calendarDiv = document.getElementById('calendar');
const initialDate = new URLSearchParams(window.location.search).get('initialDate')
const calendar = new FullCalendar.Calendar(calendarDiv, {
initialView: 'dayGridMonth',
initialDate: initialDate,
headerToolbar: {
left: 'today prev,next',
center: 'title',
Expand Down

0 comments on commit bd723e3

Please sign in to comment.