Hugo/PaperMod static site tracking 13 conferences and 7 journals for edge and cloud systems research. Includes FullCalendar deadline view, ICORE/SCImago rankings, DBLP paper digest pipeline, and Python fetch/generate scripts. PaperMod added as a git submodule.
33 lines
878 B
JavaScript
33 lines
878 B
JavaScript
import { Calendar } from '@fullcalendar/core'
|
|
import dayGridPlugin from '@fullcalendar/daygrid'
|
|
import listPlugin from '@fullcalendar/list'
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
var el = document.getElementById('pa-calendar')
|
|
if (!el) return
|
|
|
|
var events
|
|
try { events = JSON.parse(el.dataset.events || '[]') } catch (_) { events = [] }
|
|
|
|
var cal = new Calendar(el, {
|
|
plugins: [dayGridPlugin, listPlugin],
|
|
initialView: 'dayGridMonth',
|
|
events: events,
|
|
headerToolbar: {
|
|
left: 'prev,next today',
|
|
center: 'title',
|
|
right: 'dayGridMonth,listYear'
|
|
},
|
|
eventClick: function (info) {
|
|
if (info.event.url) {
|
|
info.jsEvent.preventDefault()
|
|
window.location.href = info.event.url
|
|
}
|
|
},
|
|
eventDidMount: function (info) {
|
|
info.el.title = info.event.title
|
|
}
|
|
})
|
|
cal.render()
|
|
})
|