【发布时间】:2011-04-27 03:28:54
【问题描述】:
我知道我一定是脑死了,大约一个月前我有一个解决方案,但不小心删除了它(哎呀)!
您可以从this page 创建一个小部件日历。使用日期选择器和议程(是的,两者都需要)
它会产生一些类似这样的代码:
<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>
但是它没有指定日历,并且总是加载本地日历。我看到那里有变量up_calendarFeeds,这让我想我应该尝试添加一个提要。我在提要上搜索并找到了google's page。表示提要网址的格式为:
https://www.google.com/calendar/feeds/userID/private-magicCookie/full
full over basic 用于机器可读,我假设小工具使用它。但是,当我用我的数据设置 up_calenderFeeds 变量时,它什么也不加载。我错过了什么?这是我的最终代码:
<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&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>
【问题讨论】:
-
我不确定是否应该使用私钥?
标签: html calendar icalendar google-gadget