#lang s-exp "../moby-lang.ss"
(define-struct world (lat long))
(define initial-world (make-world 0 0))
(define (update w lat long)
(make-world lat long))
(define (world->string w)
(string-append "("
(number->string (world-lat w))
", "
(number->string (world-long w))
")"))
(define (draw w)
(list (js-p '(("id" "aPara")))
(list (js-text "(latitude, longitude) = "))
(list (js-text (world->string w)))))
(define (draw-css w)
'(("aPara" ("font-size" "30px"))))
(js-big-bang initial-world
'()
(on-draw draw draw-css)
(on-location-change update))