Hello here jfdeclercq.com

jfdeclercq.com Welcome Blog
Contact Twitter Facebook LinkedIn Instagram Lowas.be

- >> November 2011 >> - Show 10, 25, 50, All News - Expand All, Compact All, 1024 chars

December 2011

I managed to add a Like Button and a Facebook Comment on my google site.

To do so I had to develop a custom Google Gadget that embeds the javascript code.


That's not so complex.

What was less simple, was to find the code to get the page url where the gadget is embedded.

I found it on stackoverflow (thanks to Vaibhav) :

var url = (window.location != window.parent.location) ? document.referrer: document.location;
 
You can see the result here (go to the bottom of the pages):

|| >> November 2011 >>