()
| 1 | class SlideShow { |
| 2 | constructor() { |
| 3 | const hash = window.location.hash.replace("#", "") |
| 4 | this.page = hash === "" ? 1 : parseInt(hash) |
| 5 | window.location.hash = "#" + this.page |
| 6 | this.listenToKeyboard() |
| 7 | this.listenToHash() |
| 8 | this.renderAll() |
| 9 | } |
| 10 | |
| 11 | renderSlide() { |
| 12 | jQuery(this.slides[this.page - 1]).show() |
nothing calls this directly
no test coverage detected