PageSourceSearch

https://careers.ccs.spokane.edu/assets/sites/controllers/blocks/carousel/accessibility_controller-9ab6d386.js

js spokane.edu collected 2026-10-01 11:59:43 UTC 771 bytes, 31 lines download raw bytes

1import {Controller} from '@hotwired/stimulus'
2import {BootstrapWrapper} from 'sites/bootstrap_wrapper'
3
4export default class extends Controller {
5  static targets = ['carousel', 'button']
6  static values = {playing: Boolean, playLabel: String, pauseLabel: String}
7
8  playPauseEvent() {
9    if (this.playingValue) {
10      this.pauseCarousel()
11    } else {
12      this.playCarousel()
13    }
14  }
15
16  slideEvent() {
17    this.playCarousel()
18  }
19
20  pauseCarousel() {
21    BootstrapWrapper.pauseCarousel(this.carouselTarget)
22    this.playingValue = false
23    this.buttonTarget.textContent = this.playLabelValue
24  }
25
26  playCarousel() {
27    BootstrapWrapper.cycleCarousel(this.carouselTarget)
28    this.playingValue = true
29    this.buttonTarget.textContent = this.pauseLabelValue
30  }
31}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.