Skip to content

Instantly share code, notes, and snippets.

Created January 19, 2010 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/281023 to your computer and use it in GitHub Desktop.
Save anonymous/281023 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/ruby">
def helloRuby
window.document.getElementById('output').innerHTML = "Hello World from Titanium using Ruby"
end
window.helloRuby = helloRuby
</script>
</head>
<body style="background-color:#1c1c1c;margin:0;color:#fff">
<div style="border-top:1px solid #404040">
<div style="padding:10px">
Welcome to Titanium
</div>
<div id="output">Click on a Button!</div>
<div>
<button onclick="helloRuby()">Hello Ruby!</button>
</div>
</div>
</body>
</html>
<?xml version='1.0' encoding='UTF-8'?>
<ti:app xmlns:ti='http://ti.appcelerator.org'>
<!-- These values are edited/maintained by Titanium Developer -->
<id>privategooglehack</id>
<name>googlehack</name>
<version>1.0</version>
<publisher>Joel Dezenzio</publisher>
<url>http://ncaastatpages.com</url>
<icon>default_app_logo.png</icon>
<copyright>2010 by Joel Dezenzio</copyright>
<!-- Window Definition - these values can be edited -->
<window>
<id>initial</id>
<title>GoogleHack</title>
<url>app://googlehack.html</url>
<width>700</width>
<max-width>3000</max-width>
<min-width>0</min-width>
<height>800</height>
<max-height>3000</max-height>
<min-height>0</min-height>
<fullscreen>false</fullscreen>
<resizable>true</resizable>
<chrome scrollbars="true">true</chrome>
<maximizable>true</maximizable>
<minimizable>true</minimizable>
<closeable>true</closeable>
</window>
</ti:app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment