Skip to content

Instantly share code, notes, and snippets.

@technohippy
Created January 11, 2010 16:03
Show Gist options
  • Save technohippy/274330 to your computer and use it in GitHub Desktop.
Save technohippy/274330 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Minimessage Gadget" height="30">
<Require feature="wave" />
<Require feature="dynamic-height" />
<Require feature="minimessage" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<input id="message" />
<button onclick="showMessage()">Show</button>
<script>
var minimsg = new gadgets.MiniMessage(__MODULE_ID__);
function showMessage() {
var msg = document.getElementById('message').value;
minimsg.createDismissibleMessage(msg);
gadgets.window.adjustHeight();
}
</script>
]]>
</Content>
</Module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment