-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedgewebview.html
40 lines (36 loc) · 1.23 KB
/
edgewebview.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2474829687651266"
crossorigin="anonymous"></script>
<html>
<head>
<meta charset="UTF-8">
<title>正在重新導向...</title>
<script>
// Countdown function
function countdown() {
var seconds = 2; // Number of seconds to countdown
var countdownElement = document.getElementById("countdown");
var countdownInterval = setInterval(function() {
countdownElement.textContent = seconds;
seconds--;
if (seconds < 0) {
clearInterval(countdownInterval);
redirect();
}
}, 1000);
}
// Redirect function
function redirect() {
window.location.href = "https://developer.microsoft.com/zh-tw/microsoft-edge/webview2/";
}
// Call the countdown function when the page loads
window.onload = function() {
countdown();
};
</script>
</head>
<body>
<h1>正在重新導向...</h1>
<p>將在 <span id="countdown">3</span> 秒後自動導向,如果未能自動導向,請點擊<a href="https://developer.microsoft.com/zh-tw/microsoft-edge/webview2/">此處</a>。</p>
</body>
</html>