threading code deactivated; tiny C bugfix: don't report warnings to error callback
This commit is contained in:
parent
c065694598
commit
93b3c03dbd
15 changed files with 208 additions and 135 deletions
|
|
@ -6,11 +6,14 @@ import
|
|||
# We need to declare the used elements here. This is annoying but
|
||||
# prevents any kind of typo:
|
||||
var
|
||||
inputElement {.importc: "document.form1.input", nodecl.}: ref TElement
|
||||
inputElement {.importc: "document.form1.input1", nodecl.}: ref TElement
|
||||
|
||||
proc OnButtonClick() {.exportc.} =
|
||||
var x: int = parseInt($inputElement.value)
|
||||
echo($(x * x))
|
||||
#var x = parseInt($inputElement.value)
|
||||
#echo($(x * x))
|
||||
var input = $inputElement.value
|
||||
echo "Test"
|
||||
echo "Hi, ", input
|
||||
|
||||
proc OnLoad() {.exportc.} =
|
||||
echo("Welcome! Please take your time to fill in this formular!")
|
||||
echo "Welcome! Please take your time to fill in this formular!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue