Skip to content

Commit

Permalink
comment index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Nov 26, 2023
1 parent 98ad009 commit 18e8be6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ window.onload = function() {
let performanceTime = new PerformanceTime()

// Performance redirect
// This URL should be the canoncal URL to which the user should be directed when the
// performance is about to begin.
var performanceURL = 'https://my.domain.com/live'

performanceTime.addEventListener('Speech', function() {
// ToPerformance here is the name of the cue on receipt of which, the browser should redirect
// the user to the live performance page.
performanceTime.addEventListener('ToPerformance', function() {
window.location.href = performanceURL
})
}

0 comments on commit 18e8be6

Please sign in to comment.