mirror of
https://github.com/czhu12/canine.git
synced 2025-12-30 15:49:54 -06:00
14 lines
269 B
JavaScript
14 lines
269 B
JavaScript
import { Controller } from "@hotwired/stimulus"
|
|
|
|
export default class extends Controller {
|
|
connect() {
|
|
const progress = this.element;
|
|
let value = 0;
|
|
|
|
setInterval(() => {
|
|
value = (value + 1) % 101;
|
|
progress.value = value;
|
|
}, 15);
|
|
}
|
|
}
|