Demonstrates how to use session storage to know which site page a site visitor previously visited. The code needs to be placed in the Site tab so that it runs on all of the site's pages. The code retrieves the URL of the page a visitor previously visited from session storage. It then stores the URL of the visitor's current page in session storage. When the visitor navigates to another page, this stored URL is retrieved as the previous page URL.
The original example Countdown site displays the countdown till a certain date and time. When the countdown reaches that moment, it begins the countdown for how long the awaited event lasts. After the event is over, the app then begins counting up to show how much time has elapsed since the event.
This example Countdown site displays the countdown till I reach retirement age (67, a prime number) on Feb 15th. Wix Code is amazing, and I'm not going anywhere! So, on Sunday (the 17th) I’ll be back in the office as usual... forums, support, and examples.
This is a fun example written by my friend and colleague Majd Qumseya. Majd cleverly uses a show/hide spin effect to "spin the wheel". Behind the scenes, he randomizes the list of available prizes. The coupon code is displayed when the wheel stops spinning.
Page through the dynamic pages using a Next button. When there are no more pages, then go back to the beginning. Works the same for the Previous button, when there are no more previous pages, go to the last page.