We are broadcasting an webinar. The idea is to reveal a ‘receive your certificate’ after user spent more than 30 minutes online, navigating in our website, watching our transmission. (ref: www.simposiosuperlentes.com.br))
Thank you very much!
Hi,
I was able to find a forum post with a solution for a question that is similar to this one here . Y ou can use the setTimeout function to accomplish this. You will just have to change 30 minutes into milliseconds.
Hope this helps!
Edward | Corvid Team
Thx very much for you fast reply!
But I’m kinda new on this.
I wrote the line, changed the $w value to #image111 and the “Unexpected token” error occurred.
Error parsing web-module ‘public/pages/xq23d.js’: Unexpected token (5:1) while parsing file: public/pages/xq23d.js
Hi! With the parsing error, you need to make sure that every parentheses has a pair, and that every bracket has a pair. So you need to have equal numbers of open ( and closed ) , as well as equal numbers of open { and closed } .
You can read about more errors you may encounter here.
In your case it looks like you need another ) on line 5, because there’s a ( on line 1.
Hope this helps you!
You got it!
Thx Lmeyer, it is very thoughtful of your. Yet, code is fine, but expected functionality (delay the exhibition of box) is not happening. Look the code now is:
$w.onReady( function () {
setTimeout( function () {
$w( “#image111” ).show( “FadeIn” );
}, 100000 );
})
but on the website: https://www.simposiosuperlentes.com.br/webinar the box with the HTML form is immediately loaded. Not in 1000 seconds.
TESTED-CODE ----> it works fine for me!
$w.onReady (function() {
setTimeout(() {
$w("#image1").show("FadeIn");
}, 10000 );
})
The code is also not doing what you describe!
It is setted to show an IMAGE and not a BOX!
$w("#image111").show("FadeIn");
Which element do you wanna to show after the delay-time?
- An html-iFrame?
$w('#html1').show('fade')
- CONTAINER-BOX?
$w('#box1').show('fade')
- IMAGE? (already done by you…)
$w("#image111").show("FadeIn");
Is the box set to hidden on load ?
@lmeyer
Good question!
Also a possible scenario!
You were right! It works now! I’m a newbee at coding, but thx to your support, I’m inclinate to keep learning! thx a lot, mate! new questions will come for other experiments, lol.