Skip to content

Instantly share code, notes, and snippets.

@necrolyte2
Created September 27, 2014 12:18
Show Gist options
  • Save necrolyte2/c785ce0e353287da8380 to your computer and use it in GitHub Desktop.
Save necrolyte2/c785ce0e353287da8380 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Hello, world!">
<Require feature="opensocial-0.8"/>
</ModulePrefs>
<Content type="html"><![CDATA[
<script type="text/javascript">
function init() {
document.getElementById("handler").innerHTML = "Hello, world.";
}
gadgets.util.registerOnLoadHandler(function() { init(); });
</script>
<div id="handler"></div>
]]></Content>
</Module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment