forked from clemos/try-haxe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
121 lines (103 loc) · 6.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="icon" href="http://haxe.org/img/haxe2/favicon.ico" type="image/x-icon"/>
<title>Try Haxe !</title>
<meta name="description" content="Haxe is an amazing multiplatform programming language. Check it out !">
<meta name="author" content="[email protected]">
<meta property="og:image" content="http://haxe.org/file/homeBanner.jpg" />
<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css" />
<!-- <link rel="stylesheet" href="lib/bootstrap/css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="lib/CodeMirror2/lib/codemirror.css"/>
<link rel="stylesheet" href="lib/CodeMirror2/addon/hint/show-hint.css"/> -->
<link rel="stylesheet" href="style.css"/>
</head>
<body data-api="app" id="website">
<div role="main" class="container-fluid">
<form><textarea name="hx-source" class="code haxe-source" rows="10">
class Test {
static function main(){
#if js
new js.JQuery("body").html("Haxe is great :)");
#elseif flash
trace("Haxe is great :)");
#end
}
}</textarea></form>
<div class="row-fluid"><div class="span6">
<strong><a href="http://haxe.org" target="_blank" title="Haxe">Haxe</a></strong> is an awesome language that compiles to <strong>Javascript</strong>, <strong>Flash</strong>, <strong>C++</strong>, <strong>PHP</strong>, <strong>Neko</strong>, <strong>Java</strong> and <strong>C#</strong>.<br/>
It thus allows to write applications that target native <strong>iOS</strong>, <strong>Android</strong> as well as traditional browsers (<strong>HTML5</strong> or <strong>SWF</strong>), servers and desktops (Mac, PC or Linux).
<hr/>
<ul>
<li><strong><a href="http://haxe.org" target="_blank" title="Haxe">Check it out here !</a></strong></li>
<li>If you're more into <strong>Javascript</strong>, check <strong><a href="http://haxejs.org" target="_blank" title="Haxe">HaxeJS.org</a></strong></li>
<li><strong>try-haxe</strong>'s source code is <strong><a href="https://github.com/clemos/try-haxe" title="Try-Haxe">available on github</a></strong>. Of course, it's written in Haxe ;)</li>
</ul>
<div class="span2 span-plusone"><g:plusone size="medium" href="http://try.haxe.org"></g:plusone></div>
<div class="span2 span-twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-lang="en">Tweet</a></div>
<div class="span2 span-hn"><iframe frameborder="no" scrolling="no" height="36px" width="160px" src="http://hnlike.com/upvote.php?link=http%3A%2F%2Ftry.haxe.org&title=Try+Haxe+%21">iframes not supported by your browser</iframe></div>
<div class="span2 span-fb">
<div class="fb-like" data-send="true" data-layout="button_count" data-width="100" data-show-faces="true"></div>
</div>
</div></div>
<div class="row-fluid"><div class="span12"><span class="pull-right help-inline" id="haxe-version"></span></div></div>
</div>
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="lib/jquery.min.js"><\/script>')</script>
<script src="lib/fullscreen-api.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<!-- <script type="text/javascript" src="lib/CodeMirror2/lib/codemirror.js"></script>
<script type="text/javascript" src="lib/CodeMirror2/mode/haxe/haxe.js"></script>
<script type="text/javascript" src="lib/CodeMirror2/mode/javascript/javascript.js"></script>
<script type="text/javascript" src="lib/CodeMirror2/addon/hint/show-hint.js"></script>
<script type="text/javascript" src="lib/CodeMirror2/addon/selection/active-line.js"></script>
<script type="text/javascript" src="lib/haxe-hint.js"></script> -->
<script src="app.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32389876-1']);
_gaq.push(['_setDomainName', 'haxe.org']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- Place this render call where appropriate -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=114114245328430";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if lt IE 7 ]>
<script defer src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
</body>
</html>