This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Js_of_ocaml | |
let main () = | |
let doc = Dom_html.document in | |
let inner_width = | |
Js.Optdef.get Dom_html.window##.innerWidth (fun () -> 1000) | |
in | |
let inner_height = | |
Js.Optdef.get Dom_html.window##.innerHeight (fun () -> 500) | |
in |