Howto use Google Apps Calendar + replace dojo with jQuery

30 views
Skip to first unread message

Alvin Mites

unread,
Sep 14, 2010, 7:52:17 PM9/14/10
to RESTYLEgc
I posted the below to the howto section of the wiki - figured I'd cc
it here for easier searching

How to: Use Google Apps Hosted Calendar
line 115 in restylegc.php update $url to

$url = "http://www.google.com/calendar/hosted/GOOGLE_APS_URL/
embed?" . $_SERVER['QUERY_STRING'];
How to: Use jQuery instead of dojo
replace lines 142 through 157 (may very slightly) with

$replacement = <<<RGC
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
function restylegc() {
// remove inline style from body so background-color can be set
using the stylesheet
$('body').removeAttr('style');

// iterate over each bubble and remove the width property from the
style attribute
// so that the width can be set using the stylesheet
$('.bubble').each(function() {
$(this).css('width', '');
});
}
</script>
</head>
RGC;
Reply all
Reply to author
Forward
0 new messages