Last active
February 7, 2020 00:41
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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