Why do you want to add jQuery? None of your pages use it now, at least none that I see. And that page with the HTML box doesn't have a calendar on it.
You seem to imply that you have access to events.js - if so it could be edited to include at the end:
Code:
. . . Description: 'Corfe Castle',
eventLink: 'http://www.dorsetdog.com/september-diary#09mgc',
},
{ eventDate: 20120923,
eventDescription: 'Mosterton',
eventLink: 'http://www.dorsetdog.com/september-diary#09mos',
},
]);
myCalendar.showCalendar();
(function(){
var addEvent = (function(){return window.addEventListener? function(el, ev, f){
el.addEventListener(ev, f, false);
}:window.attachEvent? function(el, ev, f){
el.attachEvent('on' + ev, function(){f.call(el);});
}:function(){return;};
})();
function setNew(){
var events = document.getElementById('myCalendarContainer').getElementsByTagName('a'), i = events.length;
while(--i > -1){
if(events[i].target === '_blank'){
addEvent(events[i], 'click', function(e){
e = e || event;
if(e.preventDefault){e.preventDefault();}
e.returnValue = false;
window.open(this.href, this.target, 'top=150,left=200,width=600,height=500,scrollbars,resizable');
return false;
});
}
}
}
function makeNew(){setTimeout(function(){setNew();}, 500);}
addEvent(window, 'load', makeNew);
})();
The browser cache may need to be cleared and/or the page refreshed to see changes.
Oh, BTW - that final red comma in the array of events will cause problems in some browsers, get rid of it
Bookmarks