forked from am-abdulmueed/pluginstream-apk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffers.html
More file actions
231 lines (210 loc) · 15.4 KB
/
offers.html
File metadata and controls
231 lines (210 loc) · 15.4 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!DOCTYPE html>
<html lang="en" style="scroll-behavior: smooth;">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DYWD9NH5LY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DYWD9NH5LY');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PluginStream - Offers & Rewards</title>
<meta name="description" content="Get exclusive offers, rewards, and material from PluginStream. Download premium tools and explore exciting contests.">
<meta name="keywords" content="PluginStream, offers, rewards, free material, download tools, AI tools, contests, win IPL tickets, affiliate rewards">
<meta name="robots" content="index, follow">
<meta name="author" content="Am-abdulmueed">
<meta name="language" content="English">
<meta name="rating" content="General">
<meta name="revisit-after" content="7 days">
<meta name="google-site-verification" content="utaJR55PlljW93fiXCXHOuLrcaZZw7zvHsq00M1LzQI" />
<meta name="msvalidate.01" content="23D2046DA1A290EA2CA13C6E1D0A4C74" />
<link rel="canonical" href="https://pluginstream.pages.dev/offers.html">
<!-- Open Graph / Facebook / WhatsApp -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://pluginstream.pages.dev/offers.html">
<meta property="og:title" content="PluginStream - Offers & Rewards">
<meta property="og:description" content="Get exclusive offers, rewards, and material from PluginStream. Download premium tools and explore exciting contests.">
<meta property="og:image" content="https://pluginstream.pages.dev/assets/opengraph.jpg">
<meta property="og:image:secure_url" content="https://pluginstream.pages.dev/assets/opengraph.jpg">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:site_name" content="PluginStream">
<meta property="og:locale" content="en_US">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://pluginstream.pages.dev/offers.html">
<meta name="twitter:title" content="PluginStream - Offers & Rewards">
<meta name="twitter:description" content="Get exclusive offers, rewards, and material from PluginStream. Download premium tools and explore exciting contests.">
<meta name="twitter:image" content="https://pluginstream.pages.dev/assets/opengraph.jpg">
<meta name="twitter:site" content="@am_abdulmueed">
<meta name="twitter:creator" content="@am_abdulmueed">
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon_io/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon_io/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon_io/favicon-16x16.png">
<link rel="icon" type="image/x-icon" href="assets/favicon_io/favicon.ico">
<link rel="manifest" href="assets/favicon_io/site.webmanifest">
<!-- Google Fonts - Premium Typography -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<!-- Theme Color for Mobile -->
<meta name="theme-color" content="#050508">
<link rel="stylesheet" href="style.css">
</head>
<body class="dark-theme">
<!-- Background Texture & Blurs -->
<div class="fixed-background">
<div class="noise"></div>
<div class="blob blob-1"></div>
<div class="blob blob-2"></div>
</div>
<!-- Header / Navbar -->
<header class="navbar">
<div class="container flex-between">
<div class="logo">
<img src="assets/logo.png" alt="PluginStream - Free Premium Movies & OTT Plugins Logo" class="logo-img">
<span class="logo-text">PLUGIN<span>STREAM</span></span>
</div>
<nav class="nav-links">
<a href="index.html">Home</a>
<a href="index.html#screenshots">App</a>
<a href="plugins.html">Plugins</a>
<a href="offers.html" class="active">Offers</a>
<a href="index.html#comparison">Compare</a>
<a href="index.html#plugin-search">Channels</a>
<a href="index.html#features">Features</a>
<a href="index.html#how-to-install">Guide</a>
<a href="https://github.com/am-abdulmueed/pluginstream/releases/latest/download/pluginstream.apk" class="btn btn-primary header-download-btn">Download</a>
</nav>
<button class="hamburger-btn" onclick="toggleMobileMenu()">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
</button>
</div>
</header>
<!-- Mobile Navigation Overlay -->
<div id="mobile-menu" class="mobile-nav-overlay">
<button class="close-mobile-btn" onclick="toggleMobileMenu()">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
<div class="mobile-nav-content">
<a href="index.html" onclick="toggleMobileMenu()"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg> Home</a>
<a href="index.html#screenshots" onclick="toggleMobileMenu()"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line></svg> App</a>
<a href="plugins.html" onclick="toggleMobileMenu()"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline></svg> Plugins</a>
<a href="offers.html" onclick="toggleMobileMenu()"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline></svg> Offers</a>
<a href="index.html#comparison" onclick="toggleMobileMenu()"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><path d="M11 18H8a2 2 0 0 1-2-2V9"></path></svg> Compare</a>
<a href="index.html#plugin-search" onclick="toggleMobileMenu()"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg> Channels</a>
<a href="index.html#features" onclick="toggleMobileMenu()"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg> Features</a>
<a href="index.html#how-to-install" onclick="toggleMobileMenu()"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg> Guide</a>
<a href="https://github.com/am-abdulmueed/pluginstream/releases/latest/download/pluginstream.apk" class="btn btn-primary btn-full">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path><path d="m9 12 2 2 4-4"></path></svg> Download Now
</a>
</div>
</div>
<main class="page-content">
<section class="repository-page" style="padding-top: 160px; padding-bottom: 100px;">
<div class="container">
<div class="section-header text-center">
<div class="badge">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline></svg>
Exclusive Material
</div>
<h2 class="section-title">Offers & <span class="highlight">Rewards</span></h2>
<p class="section-subtitle">Download premium tools, participate in contests, and explore exclusive rewards curated for you.</p>
</div>
<div id="offer-grid" class="offer-grid">
<!-- Populated by JS -->
<div class="loading">Loading offers...</div>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="container text-center">
<p>© 2026 PluginStream. All rights reserved.</p>
<p><strong>Privacy Based</strong></p>
<p><a href="policy.html" class="footer-link">Privacy Policy</a> | <a href="offers.html" class="footer-link">Offers</a></p>
</div>
</footer>
<script src="script.js"></script>
<script>
function renderOffers(data) {
const grid = document.getElementById('offer-grid');
if (data && data.offers) {
// Sort offers by amount (price) in descending order (highest first)
const sortedOffers = data.offers.sort((a, b) => b.amount - a.amount);
grid.innerHTML = '';
sortedOffers.forEach((offer, index) => {
const card = document.createElement('div');
card.className = 'offer-card fade-up';
card.style.animationDelay = `${index * 0.1}s`;
// Format countries
let countryText = 'Worldwide';
if (offer.countries && offer.countries.length > 0) {
if (offer.countries.length > 3) {
countryText = 'Available in ' + offer.countries.slice(0, 3).join(', ') + '...';
} else {
countryText = 'Available in ' + offer.countries.join(', ');
}
}
// Use creatives url or fallback
const imageUrl = (offer.creatives && offer.creatives.url) ? offer.creatives.url : 'assets/logo.png';
// Button text with payout
const buttonText = `Earn ${offer.amount} ${offer.payout_currency || 'USD'}`;
card.innerHTML = `
<div class="offer-badge">${offer.payout_type || 'Offer'}</div>
<div class="country-badge">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>
<span>${countryText}</span>
</div>
<div class="offer-img-container">
<img src="${imageUrl}" alt="${offer.title}" class="offer-img" loading="lazy">
</div>
<div class="offer-info">
<h3 class="offer-name">[Rank ${offer.offer_rank}] ${offer.title}</h3>
<p class="offer-desc">${offer.description || offer.conversion || 'No description available.'}</p>
</div>
<div class="claim-btn">
<span>${buttonText}</span>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>
</div>
`;
card.onclick = () => {
window.open(offer.link, '_blank');
};
grid.appendChild(card);
});
} else if (data && data.status === 'success' && (!data.offers || data.offers.length === 0)) {
grid.innerHTML = '<div class="loading">No offers found for your region/device.</div>';
}
}
window.onload = () => {
const apiUrl = "https://www.cpalead.com/api/offers?id=3277747&country=user&device=user&fields=id,title,description,conversion,link,amount,payout_currency,payout_type,countries,creatives,offer_rank&format=jsonp&callback=handleOffers";
// Define the JSONP callback
window.handleOffers = (data) => {
renderOffers(data);
};
// Create script tag for JSONP
const script = document.createElement('script');
script.src = apiUrl;
script.onerror = (error) => {
console.error('Error loading offers from API:', error);
document.getElementById('offer-grid').innerHTML = `
<div class="loading" style="color: #ff3333; opacity: 1;">
<p>Failed to load offers from CPAlead API.</p>
<p style="font-size: 12px; margin-top: 10px; color: var(--text-muted);">
Possible reasons:<br>
1. <b>AdBlocker:</b> Please disable AdBlock/uBlock for this site.<br>
2. <b>Local File:</b> Browser security might block API calls from <code>file://</code> protocol. Use a local server (like Live Server) or upload to a host.
</p>
</div>
`;
};
document.body.appendChild(script);
};
</script>
</body>
</html>