1/** 2 * DokuWiki Compact Calendar Plugin 3 * 4 * This file dynamically loads calendar-main.js which contains the actual functionality. 5 * This approach avoids DokuWiki's automatic file concatenation which was causing conflicts. 6 * 7 * @version 7.2.6 8 */ 9 10(function() { 11 // Check if calendar-main.js functions are already loaded 12 if (typeof window.showConflictTooltip === 'function') { 13 return; // Already loaded, don't load again 14 } 15 16 // Dynamically load calendar-main.js 17 var script = document.createElement('script'); 18 script.type = 'text/javascript'; 19 20 // Get the base path from DOKU_BASE or derive from this script's location 21 var base = (typeof DOKU_BASE !== 'undefined') ? DOKU_BASE : '/'; 22 script.src = base + 'lib/plugins/calendar/calendar-main.js'; 23 24 // Version-based cache key (updated on each release, avoids per-request cache busting) 25 script.src += '?v=7.2.6'; 26 27 document.head.appendChild(script); 28})(); 29