Skip to content

Instantly share code, notes, and snippets.

@azam
Last active February 7, 2020 00:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save azam/2e35a393ee2425f40c6d04de4ce5926b to your computer and use it in GitHub Desktop.
Save azam/2e35a393ee2425f40c6d04de4ce5926b to your computer and use it in GitHub Desktop.
Gadget to embed gist on Google Site. Use this url as gadget URL when inserting to a Google Site page: https://cdn.rawgit.com/azam/2e35a393ee2425f40c6d04de4ce5926b/raw/5389dc5ce442eca1c517cfe12132a0b90553e965/gist4sites.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Google Sites Gist Module">
<Require feature="dynamic-height"/>
</ModulePrefs>
<UserPref name="gistId" display_name="Gist #" required="true" />
<UserPref name="baseUrl" display_name="Base URL" required="false" default_value="https://gist.github.com"/>
<Content type="html">
<![CDATA[
<div id="content_div"><script src="__UP_baseUrl__/__UP_gistId__.js"></script><script type="text/javascript">gadgets.util.registerOnLoadHandler(gadgets.window.adjustHeight);</script></div>
]]>
</Content>
</Module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment