forked from SpivEgin/yourls-interstitial-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
executable file
·47 lines (40 loc) · 1.12 KB
/
template.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
41
42
43
44
45
46
47
<html>
<head>
<title>Redirecting to: %pagetitle%</title>
<meta charset="utf-8">
<meta http-equiv="refresh" content="15;url=%url%">
<meta name="ROBOTS" content="NOINDEX, FOLLOW" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="stylesheet" href="%pluginurl%/css/interstitial.css" type="text/css" media="all" />
</head>
<body>
<div id="header">
<div id="logo">
<img src="%pluginurl%/img/logo.jpg" />
</div>
<div id="skip">
<p><a href="%url%" title="Skip this ad">Skip this ad »</a></br>
or wait <span id="timer">15</span> seconds</p>
</div>
</div>
<div id="ad">
%ad%
</div>
<script>
var count = 15;
function countDown(){
var timer = document.getElementById("timer");
if(count > 0){
count--;
timer.innerHTML = count;
setTimeout("countDown()", 1000);
}else{
window.location.href = "%url%";
}
}
countDown();
</script>
</body>
</html>