浏览代码

testing scrollInterval 5 seconds

master
farhan 8 个月前
父节点
当前提交
772af7d9dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      resources/js/app.js

+ 1
- 1
resources/js/app.js 查看文件

95
     var hasPlayed = false; // To ensure audio only plays once upon clicking and scrolling
95
     var hasPlayed = false; // To ensure audio only plays once upon clicking and scrolling
96
     var scrollCount = 0;
96
     var scrollCount = 0;
97
     var maxScrolls = 8;
97
     var maxScrolls = 8;
98
-    var scrollInterval = 500; // Time in milliseconds between each scroll
98
+    var scrollInterval = 3000; // Time in milliseconds between each scroll
99
     var scrollAmount = window.innerHeight / 6; // Amount to scroll per interval
99
     var scrollAmount = window.innerHeight / 6; // Amount to scroll per interval
100
 
100
 
101
     function playAudio() {
101
     function playAudio() {

正在加载...
取消
保存