Skip to content

Instantly share code, notes, and snippets.

Embed
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: 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
You can’t perform that action at this time.