Thursday, June 25, 2009

Thing 3

eacheronthebeach


teacheronthebeach


Followers
if (!window.google || !google.friendconnect) {
document.write('' +
'');
}

if (!window.registeredBloggerCallbacks) {
window.registeredBloggerCallbacks = true;


var registeredGadgets = [];
gadgets.rpc.register('registerGadgetForRpcs', function(gadgetDomain, iframeName) {
// RPCs don't work from the container to the blog in WebKit -
// they cause the gadgets to get reloaded. Just ignore.
// TODO(henrywong): There's a slick closure way to do this, but
// we don't pull closure into blogs right now.
if (!navigator || navigator.userAgent.indexOf("WebKit") == -1) {
// Trim the gadget domain from a random url (w/ query params)
// down to just a top level domain.
// TODO(henrywong): There must be a slicker way to do this
var startIndex = 0;
var protocolMarker = "://";
// Find the start of the host name
if (gadgetDomain.indexOf(protocolMarker) != -1) {
startIndex = gadgetDomain.indexOf(protocolMarker) + protocolMarker.length;
}
// Now find the start of the path
var pathIndex = gadgetDomain.indexOf("/", startIndex);
// Now extract just the hostname
if (pathIndex != -1) {
gadgetDomain = gadgetDomain.substring(0, pathIndex);
}
gadgets.rpc.setRelayUrl(iframeName, gadgetDomain + "/ps/rpc_relay.html");
// Just return some random stuff so the gadget can tell when
// we're done.
return "callback";
}
});

gadgets.rpc.register('getBlogUrls', function() {
var holder = {};




holder.postFeed = "http://www.blogger.com/feeds/1525562131599188694/posts/default";



holder.commentFeed = "http://www.blogger.com/feeds/1525562131599188694/comments/default";


return holder;
});

gadgets.rpc.register('requestReload', function() {
document.location.reload();
});

gadgets.rpc.register('requestSignOut', function(siteId) {

google.friendconnect.container.openSocialSiteId = siteId;
google.friendconnect.requestSignOut();
});
}

var skin = {};
skin['FACE_SIZE'] = '32';
skin['HEIGHT'] = "260";
skin['BORDER_COLOR'] = "transparent";
skin['ENDCAP_BG_COLOR'] = "transparent";
skin['ENDCAP_TEXT_COLOR'] = "666666";
skin['ENDCAP_LINK_COLOR'] = "5588aa";
skin['ALTERNATE_BG_COLOR'] = "transparent";

skin['CONTENT_BG_COLOR'] = "transparent";
skin['CONTENT_LINK_COLOR'] = "5588aa";
skin['CONTENT_TEXT_COLOR'] = "666666";
skin['CONTENT_SECONDARY_LINK_COLOR'] = "5588aa";
skin['CONTENT_SECONDARY_TEXT_COLOR'] = "999999";
skin['CONTENT_HEADLINE_COLOR'] = "cc6600";
google.friendconnect.container.setParentUrl("/");
google.friendconnect.container["renderMembersGadget"](
{ id: "div-wzwh74atu6ib",
height: 260,


site: "01309282600545721419",
locale: 'en' },
skin);


Blog Archive
2009 (5)
June (5

No comments:

Post a Comment