| 2 |
<page name="demo"> |
<page name="demo"> |
| 3 |
<title>CDuce demo</title> |
<title>CDuce demo</title> |
| 4 |
|
|
| 5 |
<box title="Demo" link="demo"> |
<box title="Integers" link="ints"> |
| 6 |
<xhtml> |
<demo> |
| 7 |
<table style="width:100%"> |
let x = 2;; |
| 8 |
<tr> |
let a = x * 10;; |
| 9 |
<td style="width:50%"> |
</demo> |
| 10 |
<input type="submit" value="Evaluate" onclick="submit('a');"/> |
</box> |
| 11 |
<input type="button" value="Clear" onclick="clearreq('a');"/> |
|
| 12 |
</td> |
<box title="Strings" link="strs"> |
| 13 |
<td style="width:50%"> |
<demo> |
| 14 |
<input type="button" value="Clear" onclick="show_result('a','');"/> |
let x = "abc";; |
| 15 |
</td> |
let a = [ !x 'xyz' ] @ "123";; |
| 16 |
</tr> |
</demo> |
|
<tr> |
|
|
<td> |
|
|
<textarea id="areq" cols="60" rows="25"> |
|
|
[];; |
|
|
</textarea> |
|
|
</td> |
|
|
<td valign="top"> |
|
|
<div id="ares"></div> |
|
|
</td> |
|
|
</tr> |
|
|
</table> |
|
|
<script src="demo.js" type="text/javascript"/> |
|
|
</xhtml> |
|
| 17 |
</box> |
</box> |
| 18 |
|
|
| 19 |
</page> |
</page> |