parent
6d51d7d08c
commit
85c81d8c0e
1 changed files with 1 additions and 2 deletions
|
|
@ -800,11 +800,10 @@ proc prepend(parent, kid: Element) =
|
|||
parent.insertBefore(kid, parent.firstChild)
|
||||
|
||||
proc loadScript*(jsfilename: cstring; kxi: KaraxInstance = kxi) =
|
||||
let body = document.getElementById("body")
|
||||
let s = document.createElement("script")
|
||||
s.setAttr "type", "text/javascript"
|
||||
s.setAttr "src", jsfilename
|
||||
body.prepend(s)
|
||||
document.body.prepend(s)
|
||||
redraw(kxi)
|
||||
|
||||
proc runLater*(action: proc(); later = 400): Timeout {.discardable.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue