Sweeeet! Nice work!
By the way, the author of TwinCalendar, a widget which contains JavaScript code which might be handy made the code open source:
http://widgets.yahoo.com/widgets/twincalendarIf you'd like to make a full blown calendar within Firefox, let me know, as I'm hoping to work with others to develop such a thing eventually. (Firefox extension development is my professional work now, so we might be able to work together.)
There are some very exciting possibilities out there. I think it might be worth starting from scratch to make a calendar (as opposed to using Lightning, etc.), both because it could be integrated into Firefox (instead of Thunderbird) and because a public API could be developed allowing third parties to do things like grab the sunrise/sunset times for a locale and insert an event or to-do based on these, etc. (I don't see any documentation in Lightning to do that, unfortunately.)
One small suggestion. You can detect the locale of the user with code like this, so you can show them the calendar data immediately in their own language:
Code: Select all
var srvPrefBranch = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBranch('general.useragent.');
var USR_LOCALE = srvPrefBranch.getCharPref('locale'); // en-US, etc.
best wishes,
Brett