Timer Function for 'sneak peak'

Hi all,

Not sure if this is possible or if there is a workaround, but my client has just asked if a timer can be put on a link?

They want to do a ‘sneak peak’ to their clients so just have the virtual space available for 30 seconds before it shuts off. I understand the limitations in which if they click the link again, the timer will start again which I think is fine.

Appreciate any help!
Thanks

The following script placed in the body-end.html file in the scene directory should do it:

<script>
  var viewer = WALK.getViewer();
  viewer.onSceneLoadComplete(function() {
    setTimeout(function() {
      window.location = 'https://www.shapespark.com/';
    }, 30000);
  });
</script>

Hi @wojtek

Thanks for your reply. Sorry, but ive yet to get into the script side of Shapespark yet. Is there any basic guide on where and how I can implement this?

Many thanks