]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/calculator/calculator.xml
scryfall: parse mtga deck format
[factor.git] / extra / webapps / calculator / calculator.xml
1 <?xml version='1.0' ?>
2 <!DOCTYPE html>
3 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
4 <html>
5         <head> <title>Calculator</title> </head>
6
7         <body>
8                 <h1>Calculator</h1>
9
10                 <t:form t:action="$calculator">
11
12                         <table>
13                                 <tr><td>First value:</td><td> <t:field t:name="x" /> </td></tr>
14                                 <tr><td>Second value:</td><td> <t:field t:name="y" /> </td></tr>
15                         </table>
16
17                         <input type="SUBMIT" value="Compute" />
18
19                         <t:if t:value="z">
20                                 <br/>
21
22                                 Result: <t:label t:name="z" />
23                         </t:if>
24
25                 </t:form>
26         </body>
27 </html>
28
29 </t:chloe>