I know I must be brain-dead, and I had a solution about a month ago, but accidentally deleted it (oops)!
From the this page you can create a small widget calendar. With the date picker AND agenda (yes both are needed)
It produces some code like so:
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/calendar3.xml&up_calendarFeeds=&up_calendarColors=&up_firstDay=0&up_dateFormat=0&up_timeFormat=1%3A00pm&up_showDatepicker=1&up_hideAgenda=0&up_showEmptyDays=0&up_showExpiredEvents=1&synd=open&w=320&h=165&title=__MSG_Google_Calendar__&lang=en&country=ALL&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
However it doesn't specify the calendar, and always loads the local calendar. I see there is the variable up_calendarFeeds
in there, and that got me thinking I should try to add a feed. I searched and found google's page on feeds. The says the feed url is in the format of:
https://www.google.com/calendar/feeds/userID/private-magicCookie/full
full
over basic
is for machine readable, of which I assume the gadget uses. However when I set the up_calenderFeeds
variable with my data, It loads nothing. What am I missing? This being my final code:
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/calendar3.xml&up_calendarFeeds=https://www.google.com/calendar/feeds/ohmusama@gmail.com/private-0b7544f4b5f2198fc76c96e59f285dad/full&up_calendarColors=&up_firstDay=0&up_dateFormat=0&up_timeFormat=1%3A00pm&开发者_如何转开发;amp;up_showDatepicker=1&up_hideAgenda=0&up_showEmptyDays=0&up_showExpiredEvents=1&synd=open&w=195&h=500&title=Portland+IPA+Calendar&lang=en&country=ALL&border=%23ffffff%7C3px%2C0px+solid+%23999999&output=js"></script>
Alright, since no one was able to help me. I searched and searched and found some answers.
There are a variety of different variables in the get string with many characters that need escaping. First for what ever reason, up_calendarFeeds
must be set to ({})
which url encoded ends up being up_calendarFeeds=%28%7B%7D%29
Then you need to set 2 variables for your calendar to work properly (I think you need both), up_c0u
and up_c0c
both to your feed path. Note that It seems this can be in an array form, so you can add many feeds by incrementing 0, so up_c1u
up_c2u
up_c3u
etc
精彩评论