Initial commit
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.
This commit is contained in:
32
site/assets/js/calendar.js
Normal file
32
site/assets/js/calendar.js
Normal file
@@ -0,0 +1,32 @@
|
||||
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()
|
||||
})
|
||||
Reference in New Issue
Block a user