Skip to content

Instantly share code, notes, and snippets.

@mneil
Last active March 16, 2016 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mneil/58555011ed3ab3b8a0c7 to your computer and use it in GitHub Desktop.
Save mneil/58555011ed3ab3b8a0c7 to your computer and use it in GitHub Desktop.
Muut Google Sites Widget
<Module>
<ModulePrefs title="Preferences for __UP_forum__" height="400"/>
<UserPref name="myforum" display_name="Muut Playground" default_value="playground" datatype="string"/>
<Content type="html">
<![CDATA[
<div id="muut-gadget"> <script type="text/javascript">
var prefs = new gadgets.Prefs();
var forum = prefs.getString("myforum");
document.write('<a class="muut" href="https://muut.com/i/'+forum+'">'+forum+'</a>');
</script>
<style>
.m-header{
height: 3em !important;
}
@media (max-width: 720px){
.m-header{
height: 6em !important;
}
}
</style>
<script src="//cdn.muut.com/1/moot.min.js"></script></div>
]]>
</Content>
</Module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment