Having trouble implementing the bootstrap-year-calendar on my website. The JavaScript functionality and the display of the calendar are not working as expected.
I want to show the calendar horizontally like the example in the link, but it is currently displaying vertically, requiring scrolling to view more months;
Please check the current display of the calendar on my website.
Another issue arises when creating new events. Upon selecting a date, an error occurs:
Additionally, updating or deleting existing events does not work properly.
You can view all my HTML code below:
<!DOCTYPE html>
...
</html>
Here is the calendar JS file:
function editEvent(event) {
...
}
$(function() {
var currentYear = new Date().getFullYear();
$('#calendar').calendar({
// Calendar settings
});
$('#save-event').click(function() {
saveEvent();
});
});
If you have any suggestions on how I can improve the way this question is presented, please feel free to leave your feedback in the comments.
Thank you.