mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-04 06:28:38 +00:00
Deploy to GitHub pages
This commit is contained in:
11
nimcache/runnableExamples/dom_examples_3.nim
Normal file
11
nimcache/runnableExamples/dom_examples_3.nim
Normal file
@@ -0,0 +1,11 @@
|
||||
#[
|
||||
autogenerated by docgen
|
||||
loc: /home/runner/work/Nim/Nim/lib/js/dom.nim(30, 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", 30, 17).}:
|
||||
proc example(e: Event) = echo "Document is unloaded"
|
||||
document.addEventListener("unload", example) # You can also use "beforeunload".
|
||||
|
||||
Reference in New Issue
Block a user