Skip to content

Commit ac3c9d2

Browse files
authored
Update c.html
1 parent 0650efa commit ac3c9d2

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

c.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,22 +147,19 @@
147147
</div>
148148
</div>
149149
<div class="scare">
150-
<video id="video" class="video" src="https://vdse.bdstatic.com/192d9a98d782d9c74c96f09db9378d93.mp4"
151-
loop="loop"></video>
150+
<video id="video" class="video" src="https://vdse.bdstatic.com/192d9a98d782d9c74c96f09db9378d93.mp4"></video>
152151
</video>
153152
</div>
154153
<script type="text/javascript">
155154
const video = document.getElementById("video");
156155
const overlay = document.getElementById("overlay");
157156
const declineButton = document.getElementById("decline-button");
158157
const acceptButton = document.getElementById("accept-button");
159-
let hasClicked;
160-
window.onbeforeunload = function () {
161-
if (hasClicked) return true;
162-
};
158+
video.addEventListener("ended", function () {
159+
window.location.href = "https://arcxingye.github.io/rr/qrcode";
160+
});
163161
function buttonClick1(event) {
164162
event.preventDefault();
165-
if (!hasClicked) hasClicked = true;
166163
overlay.hidden = true;
167164
video.play();
168165
videoClick();
@@ -172,7 +169,6 @@
172169
}
173170
function videoClick(event) {
174171
if (event) event.preventDefault();
175-
// if not fullscreen
176172
const { documentElement } = document;
177173
if (documentElement.requestFullscreen) documentElement.requestFullscreen();
178174
else if (documentElement.mozRequestFullScreen) documentElement.mozRequestFullScreen();
@@ -183,4 +179,6 @@
183179
declineButton.addEventListener("click", buttonClick2);
184180
video.addEventListener("click", videoClick);
185181
</script>
186-
</body>
182+
</body>
183+
184+
</html>

0 commit comments

Comments
 (0)