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