forked from clemos/try-haxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
317 lines (269 loc) · 15.1 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!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">
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
More info: h5bp.com/b/378 -->
<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="cl3mos@gmail.com">
<meta property="og:image" content="http://try.haxe.org/share.png" />
<!-- 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 href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="lib/CodeMirror-4/lib/codemirror.css"/>
<link rel="stylesheet" href="lib/CodeMirror-4/addon/hint/show-hint.css"/>
<link rel="stylesheet" href="lib/CodeMirror-4/theme/rubyblue.css"/>
<link rel="stylesheet" href="lib/CodeMirror-4/theme/cobalt.css"/>
<link rel="stylesheet" href="style.css"/>
<link rel="stylesheet" href="lib/CodeMirror-4/addon/fold/foldgutter.css">
<link rel="stylesheet" href="lib/CodeMirror-4/addon/dialog/dialog.css">
<link href="lib/CodeMirror-4/addon/lint/lint.css" type="text/css" rel="stylesheet">
<link rel="shortcut icon" type="image/x-icon" href="http://www.haxe.org/favicon.ico" />
</head>
<body data-api=".">
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="pull-right">
<a href="http://haxe.org/documentation" target="_blank">Read the manual</a> |
<a href="http://api.haxe.org/" target="_blank">API documentation</a>
</div>
<a href="http://try.haxe.org" class="logo-link"><strong>TRY</strong> <img src="http://www.haxe.org/img/haxe-logo-horizontal-on-dark.svg" alt="Haxe" onerror="this.src='http://www.haxe.org/img/haxe-logo-horizontal-on-dark.png'" height="21" width="107"></a> The Haxe Playground
</div>
</nav>
<div role="main" class="container-fluid">
<div class="row-fluid">
<div class="span6">
<div class="compiler-in">
<div class="btn-group pull-right">
<a href="#" class="compile-btn btn" data-loading-text="Compiling"><i class="icon-cog"></i> Build + Run</a>
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="#hx-source" data-toggle="tab">Source</a></li>
<li><a href="#hx-options" data-toggle="tab">Options</a></li>
<li><a href="#hx-about" data-toggle="tab">About</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane hx-source active" id="hx-source">
<div class="form-horizontal">
<div class="control-group">
<label class="control-label" for="hx-example-select">Examples</label>
<div class="controls">
<select id="hx-example-select">
<option value="1">Hello world</option>
<option value="2">Inheritance</option>
<option value="17">Generic types</option>
<option value="3">Enums</option>
<option value="4">Maps</option>
<option value="5">Abstracts</option>
<option value="6">Static Extension</option>
<option value="7">String interpolation</option>
<option value="8">Array Comprehension</option>
<option value="9">Pattern Matching - Array matching</option>
<option value="21">Pattern Matching - Structure matching</option>
<option value="18">Pattern Matching - Enum matching</option>
<option value="10">Iterators</option>
<option value="11">Function Bindings</option>
<option value="12">Metadata</option>
<option value="19">Load Json using Http</option>
<option value="13">Access Control</option>
<option value="14">Inline constructors</option>
<option value="15">Conditional compilation</option>
<option value="16">StringTools</option>
<option value="22">Unit testing</option>
<option value="20">Drawing</option>
</select>
</div>
</div>
</div>
<textarea name="hx-source" class="code haxe-source" rows="15">
class Test {
static function main() {
trace("Haxe is great!");
}
}</textarea>
</div>
<div class="tab-pane hx-options" id="hx-options">
<form id="hx-options-form" class="form-horizontal">
<div class="control-group hx-main-name">
<label class="control-label" for="main-class">Main class</label>
<div class="controls">
<input type="text" name="main" value="Test"></input>
</div>
</div>
<div class="control-group hx-targets">
<label class="control-label" for="libs-checkbox">Target</label>
<div class="controls">
<label class="radio"><input type="radio" name="target" value="JS" checked></input> Javascript</label>
<label class="radio"><input type="radio" name="target" value="SWF"></input> SWF</label>
</div>
</div>
<div class="control-group hx-dce-name">
<label class="control-label" for="main-class">DCE <a href="http://haxe.org/manual/cr-dce.html" target="_blank"><i class="icon-question-sign"></i></a></label>
<div class="controls">
<label class="radio"><input type="radio" name="dce" value="full" checked></input> Full</label>
<label class="radio"><input type="radio" name="dce" value="no"></input> No</label>
<label class="radio"><input type="radio" name="dce" value="std"></input> Std</label>
</div>
</div>
<div class="control-group hx-analyzer-name">
<label class="control-label" for="main-class">Analyzer <a href="http://haxe.org/download" target="_blank"><i class="icon-question-sign"></i></a></label>
<div class="controls">
<label class="radio"><input type="radio" name="analyzer" value="yes" checked></input> Yes</label>
<label class="radio"><input type="radio" name="analyzer" value="no"></input> No</label>
</div>
</div>
<div class="control-group hx-libs">
<label class="control-label" for="libs-checkbox">Libraries</label>
<div class="controls SWF-libs"></div>
<div class="controls JS-libs"></div>
</div>
</form>
</div>
<div class="tab-pane hx-options" id="hx-about">
<h2>About Try-Haxe</h2>
<h4>The Haxe Playground</h4>
<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>, <strong>C#</strong> and <strong>Python</strong>.
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/>
<div class="btn-toolbar">
<img src="http://www.haxe.org/img/haxe-logo.svg" class="logo" onerror="this.src='http://www.haxe.org/img/haxe-logo.png'" width="90" height="90" style="margin-ri" />
<a href="http://www.haxe.org/download/" target="_blank" class="download btn btn-haxe"><strong>Download Haxe</strong></a>
<a href="http://haxe.org/#learn-more" target="_blank" class="learn-more btn btn-haxe">Learn More</a>
</div>
<hr/>
<span><img class="logo-github" src="https://assets-cdn.github.com/favicon.ico" align="left"/> The source code of <strong>try-haxe</strong> is <strong><a href="https://github.com/clemos/try-haxe" title="Try-Haxe">available on GitHub</a></strong>. <small>Of course, it's written in Haxe ;)</small></span>
</div>
</div>
</div>
<div class="social">
<div class="span3 span-plusone">
<g:plusone size="medium" href="http://try.haxe.org"></g:plusone>
</div>
<div class="span3 span-twitter">
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="en">Tweet</a>
</div>
<div class="span3 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="compiler-out span6">
<div class=" pull-right">
<a href="#" target="_blank" class="link-btn btn disabled"><i class="icon-share"></i> Run standalone</a>
<!-- </div>
<div class=" pull-right">-->
<!--a href="#" class="fullscreen-btn btn disabled"><i class="icon-resize-full"></i> Fullscreen</a-->
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="#js-output" data-toggle="tab" id="output">Output</a></li>
<li><a href="#js-source" data-toggle="tab">JS Source</a></li>
<li><a href="#embed-source" data-toggle="tab">Embed</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane js-output active" id="js-output">
<div class="thumbnail js-canvas">
<iframe class="js-run" src="about:blank" name="js-run" frameborder="no" scrolling="no">
</iframe>
</div>
</div>
<div class="tab-pane js-source" id="js-source">
<textarea name="js-source" class="code js-source">
</textarea>
</div>
<div class="tab-pane embed-source" id="embed-source">
<h4>Code</h4>
<textarea name="embed-source" class="code embed-source">
</textarea>
<h4>Preview</h4>
<div class="embed-preview" id="embed-preview">
</div>
</div>
</div>
<div class="messages">
</div>
</div>
<div class="row-fluid">
<div class="span12">
<span class="help-inline">Disclaimer: The code you enter on Try-Haxe is compiled and saved on our servers.</span>
<div class="pull-right"><span class="help-inline">Haxe version: 3.2.0 release</span></div>
</div>
</div>
</div>
</div>
<!-- JavaScript at the bottom for fast page loading -->
<!-- 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="js/libs/jquery-1.7.1.min.js"><\/script>')</script>
<!-- scripts concatenated and minified via build script -->
<script src="lib/CodeMirror-4/lib/codemirror.js"></script>
<script src="lib/CodeMirror-4/addon/hint/show-hint.js"></script>
<script src="lib/CodeMirror-4/mode/haxe/haxe.js"></script>
<script src="lib/CodeMirror-4/mode/javascript/javascript.js"></script>
<script src="lib/CodeMirror-4/mode/xml/xml.js"></script>
<script src="lib/CodeMirror-4/mode/css/css.js"></script>
<script src="lib/CodeMirror-4/mode/htmlmixed/htmlmixed.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js" ></script>
<script src="lib/CodeMirror-4/addon/search/searchcursor.js"></script>
<script src="lib/CodeMirror-4/addon/search/search.js"></script>
<script src="lib/CodeMirror-4/addon/dialog/dialog.js"></script>
<script src="lib/CodeMirror-4/addon/comment/comment.js"></script>
<script src="lib/CodeMirror-4/addon/lint/lint.js"></script>
<script src="lib/CodeMirror-4/addon/wrap/hardwrap.js"></script>
<script src="lib/CodeMirror-4/keymap/sublime.js"></script>
<script src="lib/CodeMirror-4/addon/hint/show-hint.js"></script>
<script src="lib/CodeMirror-4/addon/edit/matchbrackets.js"></script>
<script src="lib/CodeMirror-4/addon/edit/closebrackets.js"></script>
<script src="lib/CodeMirror-4/addon/fold/foldcode.js"></script>
<script src="lib/CodeMirror-4/addon/fold/foldgutter.js"></script>
<script src="lib/CodeMirror-4/addon/fold/brace-fold.js"></script>
<script src="lib/CodeMirror-4/addon/fold/comment-fold.js"></script>
<script src="app.js"></script>
<!-- end scripts -->
<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>