Skip to content

Instantly share code, notes, and snippets.

@technohippy
Created December 6, 2009 04:08
Show Gist options
  • Save technohippy/250046 to your computer and use it in GitHub Desktop.
Save technohippy/250046 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="My First Gadget" height="50">
</ModulePrefs>
<Content type="html">
<![CDATA[
<script>
function test() {
alert(gadgets.io.encodeValues({key1:"値1", key2:"値2"}));
var fps = gadgets.util.getFeatureParameters();
for (var i = 0; i < fps.length; i++) {
alert(fps[i]);
}
}
</script>
<button onclick="test()">Test</button>
]]>
</Content>
</Module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment