-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
92 lines (90 loc) · 2.89 KB
/
index2.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rewarded Interstitial Ad Example</title>
<!-- Monetag script for rewarded interstitial -->
<script src='//niphaumeenses.net/vignette.min.js' data-zone='8539225' data-sdk='show_8539225'></script>
<style>
/* Basic styling */
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
background-color: #282c34;
color: #ffffff;
}
.ad-container {
text-align: center;
padding: 30px;
background: #3b3f47;
border-radius: 12px;
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
width: 300px;
animation: fadeIn 1s ease;
}
.ad-container h1 {
margin-bottom: 10px;
font-size: 24px;
color: #00ff99;
}
.reward-counter {
font-size: 18px;
margin-bottom: 20px;
color: #ffeb3b;
}
.ad-container button {
padding: 12px 25px;
font-size: 18px;
font-weight: bold;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
box-shadow: 0px 5px 15px rgba(0, 123, 255, 0.4);
}
.ad-container button:hover {
background-color: #0056b3;
transform: translateY(-2px);
}
.ad-container button:active {
transform: scale(0.98);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body>
<div class="ad-container">
<h1>Earn Rewards</h1>
<p class="reward-counter">Rewards Earned: <span id="reward-count">0</span></p>
<button onclick="showRewardedAd()">Watch Ad for Reward</button>
</div>
<script>
let rewardCount = 0;
function showRewardedAd() {
// Check if the ad script function is available
if (typeof show_8539225 === 'function') {
show_8539225().then(() => {
// Increment the reward count and update display
rewardCount += 1;
document.getElementById('reward-count').textContent = rewardCount;
alert('You have earned a reward!');
}).catch(error => {
console.error('Ad failed to load or display:', error);
});
} else {
console.error('Ad script is not loaded or available.');
}
}
</script>
</body>
</html>