I have been trying to expand all calendar events by default on page load. first few attempts put me into an endless page loading loop. Then I came across several scripts and was able to make one work, I thought.
Code:
//Expant all events onload
var yScroll = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop
var y = window.innerHeight || document.body.clientHeight || document.documentElement.clientHeight
var xScroll = window.pageXOffset || document.body.scrollLeft || document.documentElement.scrollLeft
var x = window.innerWidth || document.body.clientWidth || document.documentElement.clientWidth;
var cover = document.getElementById("cover");
cover.style.height = (y + yScroll) + "px";
cover.style.width = (x + xScroll) + "px";
function expand() {
if (document.referrer != location.href && !location.href.match(/CalendarPeriod=((week)|(day))/i))
{ GetMonthView('11111111'); }
else { cover.style.display = "none"; }
}
window.onload = function() { expand(); };
the problem with this code is it hides any recurring events. Does any one know of a script that will expand all events on a calendar view including recurring events on page load, or see what is missing here?
thanks