Select to view content in your preferred language

Add countdown timer to splash screen widget

1712
2
Jump to solution
08-25-2021 12:20 PM
Labels (1)
AnnaStam
Occasional Contributor

I would like to add a countdown timer to the splash screen widget, showing the days, hours, and minutes remaining until a specified time. In Web AppBuilder Developer edition, could this be accomplished by creating a .js file with the countdown timer script, and then referencing that script in the html file?

0 Kudos
1 Solution

Accepted Solutions
VictorTey
Esri Contributor

Hi, it depends on how you create the js file.  You will need to be able to add it as a dependency to dojo and use it in your html then be able to call close widget when timer hits 0.

https://developers.arcgis.com/javascript/3/jshelp/inside_dojo.html

 

 

View solution in original post

2 Replies
VictorTey
Esri Contributor

Hi, it depends on how you create the js file.  You will need to be able to add it as a dependency to dojo and use it in your html then be able to call close widget when timer hits 0.

https://developers.arcgis.com/javascript/3/jshelp/inside_dojo.html

 

 

AnnaStam
Occasional Contributor

Thank you!

0 Kudos