ソースを参照

scroll testing

master
farhan 5ヶ月前
コミット
74dfc2be1a
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      resources/views/digital-card.blade.php

+ 2
- 2
resources/views/digital-card.blade.php ファイルの表示

@@ -69,9 +69,9 @@
69 69
                 var audioElement = document.getElementById('player');
70 70
                 var hasPlayed = false; // To ensure audio only plays once upon clicking and scrolling
71 71
                 var scrollCount = 0;
72
-                var maxScrolls = 8;
72
+                var maxScrolls = 6;
73 73
                 var scrollInterval = 500; // Time in milliseconds between each scroll
74
-                var scrollAmount = window.innerHeight / 8; // Amount to scroll per interval
74
+                var scrollAmount = window.innerHeight / 6; // Amount to scroll per interval
75 75
     
76 76
                 function playAudio() {
77 77
                     if (!hasPlayed) {

読み込み中…
キャンセル
保存