Skip to content
Browse files

Added a new HTML file and modified demo.sh to generate a minified cop…

…y of the source. It looks like the original source is broken at the moment (js.Boot isn't defined when I run it), but that may be a HaXe 2.05 issue. (2.06 doesn't work on my version of OSX)
  • Loading branch information...
1 parent 885e0c5 commit a1ba1eb2fd0837ca377eb598705bdeb90515f845 Spencer Tipping committed Aug 19, 2010
Showing with 28 additions and 0 deletions.
  1. +27 −0 demo.min.html
  2. +1 −0 demo.sh
View
27 demo.min.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>Stax JavaScript Demo</title>
+ <script type="text/javascript">
+ var expandIframe = function() {
+ var iframe = document.getElementById('test-iframe');
+
+ iframe.style.position = 'fixed';
+ iframe.style.left = '50%';
+ iframe.style.top = '50%';
+ iframe.style.marginLeft = '-150px';
+ iframe.style.marginTop = '-100px';
+ }
+ </script>
+ </head>
+ <body>
+ <div id="haxe:trace"></div>
+
+ <!--
+ <iframe id="test-iframe" src="http://www.yahoo.com" width="300" height="250"></iframe>
+ <input type="button" value="Fix" onclick="javascript:expandIframe();"/>
+ -->
+
+ <script type="text/javascript" src="demo.min.js"></script>
+ </body>
+</html>
View
1 demo.sh
@@ -1,3 +1,4 @@
#!/bin/sh
haxe -cp ./src/main/haxe/ -cp ./src/demo/haxe/ -js demo.js --js-namespace hxrt -main Demo
+tools/minify-js demo.js > demo.min.js
open demo.html

0 comments on commit a1ba1eb

Please sign in to comment.
Something went wrong with that request. Please try again.