Skip to content

Instantly share code, notes, and snippets.

Last active February 7, 2020 00:41
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Gadget to embed gist on Google Site. Use this url as gadget URL when inserting to a Google Site page:
<?xml version="1.0" encoding="UTF-8" ?>
<ModulePrefs title="Google Sites Gist Module">
<Require feature="dynamic-height"/>
<UserPref name="gistId" display_name="Gist #" required="true" />
<UserPref name="baseUrl" display_name="Base URL" required="false" default_value=""/>
<Content type="html">
<div id="content_div"><script src="__UP_baseUrl__/__UP_gistId__.js"></script><script type="text/javascript">gadgets.util.registerOnLoadHandler(gadgets.window.adjustHeight);</script></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment