fmlib_js
Library for easy compilation from ocaml to javascript
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val get : unit -> t
Get the window object.
val event_target : t -> Event_target.t
The window as an event target.
val document : t -> Document.t
The document of the window.
val location : t -> Location.t
Location object.
val on_next_animation : ( float -> unit ) -> t -> unit
on_next_animation callback window
The callback
is called on the next animation frame. Usually a browser has 60 frames per second.
The argument received by the callback is the time in milliseconds since the current document has been loaded.