Mercurial > urweb
annotate tests/focus.ur @ 1906:0d2fdc2cc46c
Allow building in a separate build directory
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
---
Makefile.am | 30 +++---
src/c/Makefile.am | 2 +-
src/compiler.mlb | 2 +-
src/sources | 302 +++++++++++++++++++++++++++---------------------------
4 files changed, 168 insertions(+), 168 deletions(-)
author | Anders Kaseorg <andersk@mit.edu> |
---|---|
date | Fri, 22 Nov 2013 09:36:14 -0500 |
parents | ffd7ed3bc0b7 |
children |
rev | line source |
---|---|
adam@1785 | 1 fun main () : transaction page = |
adam@1785 | 2 id1 <- fresh; |
adam@1785 | 3 id2 <- fresh; |
adam@1785 | 4 s1 <- source ""; |
adam@1785 | 5 s2 <- source ""; |
adam@1785 | 6 which <- source False; |
adam@1785 | 7 |
adam@1785 | 8 return <xml><body> |
adam@1785 | 9 <ctextbox id={id1} source={s1}/> |
adam@1785 | 10 <ctextbox id={id2} source={s2}/> |
adam@1785 | 11 <button onclick={fn _ => w <- get which; |
adam@1785 | 12 set which (not w); |
adam@1785 | 13 giveFocus (if w then id1 else id2)}/> |
adam@1785 | 14 </body></xml> |