2014-07-06 20:57:37 +04:00
|
|
|
!:
|
2014-07-29 03:43:33 +04:00
|
|
|
::::::::: Appbug: a simple application.
|
2014-06-25 02:00:07 +04:00
|
|
|
::
|
|
|
|
|_ [hid=hide vat=[%0 p=@ud]]
|
|
|
|
++ poke
|
2014-06-25 08:01:09 +04:00
|
|
|
|= [ost=bone *]
|
2014-06-25 02:00:07 +04:00
|
|
|
:_ +>(p.vat +(p.vat))
|
2014-07-08 03:59:39 +04:00
|
|
|
:~ [ost %give %nice ~]
|
2014-06-25 02:00:07 +04:00
|
|
|
==
|
|
|
|
::
|
2014-09-24 05:03:20 +04:00
|
|
|
++ peer
|
|
|
|
|= [ost=bone you=ship pax=path]
|
|
|
|
:: ?^ pax
|
|
|
|
:: [%txt (crip "demo peeking {<p.vat>}")]
|
|
|
|
:_ +>.$ :_ ~
|
|
|
|
:+ ost %give
|
|
|
|
:- %meta
|
|
|
|
!>
|
|
|
|
:- %meta
|
|
|
|
!>
|
|
|
|
:- %meta
|
|
|
|
!>
|
|
|
|
:- %meta
|
|
|
|
!>
|
|
|
|
:- %meta
|
|
|
|
!>
|
|
|
|
:- %meta
|
|
|
|
!>
|
|
|
|
:- %meta
|
|
|
|
!>
|
|
|
|
:- %meta
|
|
|
|
!>
|
|
|
|
:+ %rust %hymn
|
2014-06-25 02:00:07 +04:00
|
|
|
^- manx
|
|
|
|
;html
|
|
|
|
;head
|
2014-08-06 02:09:19 +04:00
|
|
|
;title: Demo!
|
|
|
|
;script: urb.appl = '{(trip app.hid)}'
|
2014-06-25 02:00:07 +04:00
|
|
|
==
|
|
|
|
;body
|
2014-08-06 02:09:19 +04:00
|
|
|
;p: State is {<p.vat>}.
|
2014-07-01 00:07:56 +04:00
|
|
|
;button(onclick "bump()"): (Bump.)
|
2014-06-25 02:00:07 +04:00
|
|
|
;script
|
2014-08-06 02:09:19 +04:00
|
|
|
; var mess = 0
|
|
|
|
;
|
2014-06-25 02:00:07 +04:00
|
|
|
; function bump() {
|
2014-08-06 02:09:19 +04:00
|
|
|
; xhr = new XMLHttpRequest()
|
|
|
|
; xhr.onload = function() { mess++}
|
|
|
|
; xhr.open("PUT", "/tim/" + [urb.user, urb.port, mess].join("/"))
|
|
|
|
; xhr.setRequestHeader("content-type", "text/json")
|
|
|
|
; xyro = {ship: urb.ship, appl: urb.appl, data: {}}
|
|
|
|
; xhr.send(JSON.stringify({oryx: urb.oryx, xyro: xyro}))
|
2014-06-25 02:00:07 +04:00
|
|
|
; }
|
|
|
|
==
|
|
|
|
==
|
|
|
|
==
|
|
|
|
--
|
|
|
|
|
|
|
|
|