mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 02:12:11 +00:00
13 lines
442 B
Nim
13 lines
442 B
Nim
#[
|
|
autogenerated by docgen
|
|
loc: /home/runner/work/Nim/Nim/lib/js/dom.nim(22, 17)
|
|
rdoccmd: -b:js -r:off
|
|
]#
|
|
import std/assertions
|
|
import "/home/runner/work/Nim/Nim/lib/js/dom.nim"
|
|
{.line: ("/home/runner/work/Nim/Nim/lib/js/dom.nim", 22, 17).}:
|
|
proc example() = echo "5 seconds after document ready"
|
|
proc domReady(e: Event) = discard setTimeout(example, 5_000) # Document is ready.
|
|
document.addEventListener("DOMContentLoaded", domReady)
|
|
|