Search found 1 match

by Tomas3956
06 Sep 2020, 14:18
Forum: SmartFoxServer 1.x Discussions and Help
Topic: problem with setTimeout
Replies: 1
Views: 19373

problem with setTimeout

I'm programming a JavaScript app

in the app there is a button when the user clicks on it, a door supposed to be opened for 7 seconds then close again
(the default is close state)

that's my code :

if (cmd == "clickOnButton") {
var rVars = []
rVars.push({
name: "door",
val: 1
}) // 1 for ...