Created
August 8, 2011 16:33
-
-
Save marsch/1132120 to your computer and use it in GitHub Desktop.
main.js
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
function showMore() { | |
document.getElementById("more-text").hidden = false; | |
} | |
alert("heheh"); |
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"?> | |
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> | |
<window id="main" title="My App" width="300" height="300" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | |
<script type="application/javascript" src="chrome://myapp/content/main.js"/> | |
<caption label="Hello World"/> | |
<separator/> | |
<button label="More >>" oncommand="showMore();"/> | |
<separator/> | |
<description id="more-text" hidden="true">This is a simple XULRunner application. XUL is simple to use and quite powerful and can even be used on mobile devices.</description> | |
</window> |
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
pref("toolkit.defaultChromeURI", "chrome://myapp/content/main.xul"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment