* Go to step
(index)
| 104 | * Go to step |
| 105 | */ |
| 106 | goStep(index) |
| 107 | { |
| 108 | // // Remove old step class |
| 109 | // if(this.step !== null) |
| 110 | // { |
| 111 | // this.$container.classList.remove(`step-${this.step}`) |
| 112 | // } |
| 113 | |
| 114 | // Add new step class |
| 115 | this.step = index |
| 116 | this.$container.classList.add(`step-${this.step}`) |
| 117 | |
| 118 | // Cases |
| 119 | switch(this.step) |
| 120 | { |
| 121 | case 0: |
| 122 | this.$speakerVideo.currentTime = 0 |
| 123 | this.$speakerVideo.play() |
| 124 | .then(() => |
| 125 | { |
| 126 | this.goStep(1) |
| 127 | }) |
| 128 | break |
| 129 | |
| 130 | case 1: |
| 131 | break |
| 132 | |
| 133 | case 2: |
| 134 | this.$audienceVideo.play() |
| 135 | break |
| 136 | |
| 137 | case 6: |
| 138 | window.setTimeout(() => |
| 139 | { |
| 140 | for(let step = 0; step < 7; step++) |
| 141 | { |
| 142 | this.$container.classList.remove(`step-${step}`) |
| 143 | } |
| 144 | }, 800) |
| 145 | |
| 146 | window.setTimeout(() => |
| 147 | { |
| 148 | this.goStep(0) |
| 149 | }, 1600) |
| 150 | |
| 151 | break |
| 152 | } |
| 153 | } |
| 154 | } |
no outgoing calls
no test coverage detected