invite / index.html
abeea's picture
Update index.html
fb97f2d verified
<!doctype html>
<html lang="ur" dir="rtl">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Comet Browser Referral Blog — DilSe</title>
<meta name="description" content="Comet Browser referral program guide — install, invite, earn up to $20. Referral link aur shareable links." />
<style>
/* Reset */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
font-family: "Segoe UI", Tahoma, Arial, Noto Nastaleeq Urdu, sans-serif;
background: linear-gradient(180deg,#f7fbff 0%, #ffffff 40%);
color:#0f1724;
line-height:1.5;
padding:20px;
}
/* Layout */
.container{max-width:980px;margin:20px auto;padding:22px;background:#fff;border-radius:14px;box-shadow:0 8px 30px rgba(12,20,40,0.06);overflow:hidden}
header{display:flex;gap:18px;align-items:center;justify-content:space-between}
.brand{display:flex;gap:12px;align-items:center}
.logo{
width:64px;height:64px;border-radius:12px;background:linear-gradient(135deg,#5b6cff,#00c2ff);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:22px;box-shadow:0 6px 18px rgba(12,20,40,0.12)
}
h1{font-size:20px;margin:0}
p.lead{margin:6px 0 0;color:#334155}
/* Hero */
.hero{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;margin:18px 0;padding:18px;border-radius:12px;background:linear-gradient(90deg,#f0f7ff,#ffffff)}
.hero .steps{font-size:15px}
.cta-btn{
display:inline-flex;align-items:center;gap:10px;padding:12px 16px;border-radius:10px;background:#0ea5a2;color:#fff;text-decoration:none;font-weight:600;border:none;cursor:pointer;
box-shadow:0 8px 18px rgba(14,165,162,0.12)
}
.small {font-size:13px;color:#475569}
/* Links list */
.links{margin-top:16px;display:grid;gap:12px}
.link-card{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:12px;border-radius:10px;border:1px solid #e6eef7;background:#fbfeff}
.link-left{max-width:72%}
.link-title{font-weight:700;margin:0 0 6px}
.link-desc{margin:0;color:#475569;font-size:13px}
.link-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.action-btn{padding:8px 10px;border-radius:8px;border:1px solid transparent;background:#eef6ff;color:#0f1724;font-weight:600;cursor:pointer}
.copy-btn{background:#fff;border:1px solid #dbeafe}
.share-btn{background:#e6fffa;border:1px solid #bbf7d0}
/* Form */
.add-form{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.add-form input[type="text"], .add-form input[type="url"]{
padding:10px;border-radius:8px;border:1px solid #e6eef7;flex:1;min-width:180px
}
.add-form button{padding:10px 14px;border-radius:8px;background:#0b74ff;color:#fff;border:none;cursor:pointer;font-weight:600}
/* Footer */
footer{margin-top:18px;font-size:13px;color:#6b7280;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
a.inline-link{color:#0b74ff;text-decoration:none}
/* Responsive */
@media (max-width:720px){
.hero{grid-template-columns:1fr; text-align:right}
.link-left{max-width:100%}
.link-actions{align-items:flex-start}
header{flex-direction:column;align-items:flex-end;gap:12px}
}
</style>
</head>
<body>
<div class="container" role="main">
<header>
<div class="brand">
<div class="logo" aria-hidden="true">C</div>
<div>
<h1>Comet Browser — Referral Blog</h1>
<p class="lead">Comet — naya agentic AI browser. Invite karein aur hingga $20 tak kamayen.</p>
</div>
</div>
<div style="text-align:right">
<div class="small">By <strong>DilSe</strong></div>
<div class="small">Updated: <strong><!-- JS will fill date --></strong></div>
</div>
</header>
<section class="hero" aria-labelledby="how-title">
<div class="steps">
<h2 id="how-title" style="margin:0 0 8px 0">Comet Browser Referral Program — Kaise Shuru Karein</h2>
<ol style="margin:0 0 8px 18px">
<li>Referral link par click karein</li>
<li>"Download Comet" par click kar ke install karein</li>
<li>Email verify karein</li>
<li>Comet mein login kar ke "Invite and Earn" use karein</li>
<li>DUB dashboard set karein aur apna referral share karein</li>
</ol>
<p class="small">Har successful referral par $20 tak mil sakta hai (terms & conditions apply — Comet ki policy check karein).</p>
</div>
<div style="text-align:left;display:flex;flex-direction:column;gap:10px;align-items:flex-end">
<!-- Referral link -->
<div>
<button class="cta-btn" id="openReferral" title="Open referral link">
Open Comet & Invite
</button>
</div>
<div style="display:flex;gap:8px;align-items:center;">
<input id="refInput" type="text" readonly value="https://pplx.ai/hajramazha95571" style="padding:8px;border-radius:8px;border:1px solid #e6eef7;background:#fff" aria-label="Referral link">
<button class="action-btn copy-btn" id="copyReferral">Copy</button>
</div>
</div>
</section>
<!-- Description -->
<section aria-labelledby="about-title" style="margin-top:12px">
<h3 id="about-title" style="margin:0 0 8px 0">Comet Browser — The New Age AI Browser</h3>
<p class="small">Comet aik Agentic AI se powered browser hai jo fast search experiences aur AI-driven features offer karta hai — Chrome ka alternative. Niche diye gaye links mein aap tutorials, reviews, download pages aur referral posts dhoondh sakte hain.</p>
</section>
<!-- Links list -->
<section aria-labelledby="links-title" style="margin-top:14px">
<h3 id="links-title" style="margin:0 0 10px 0">Useful Links (Misal ke taur par)</h3>
<div class="links" id="linksList" aria-live="polite">
<!-- JS will populate -->
</div>
<!-- Add new link -->
<form id="addForm" class="add-form" onsubmit="return false;" aria-label="Add new referral link">
<input type="url" id="newUrl" placeholder="Link daalein (https://...)" required>
<input type="text" id="newMsg" placeholder="Short message / description" required>
<button id="addBtn">Add Link</button>
</form>
</section>
<footer>
<div>Terms: Comet ki official policy check karein. Yeh page affiliate/referral information aur helpful links provide karta hai.</div>
<div>Share: <a class="inline-link" id="shareAll" href="#" onclick="shareAll()">Share Page</a></div>
</footer>
</div>
<script>
// Initial data sample
const initialLinks = [
{
title: "Comet Official (DONE)(link 1 main)",
url: "https://pplx.ai/hajramazha95571",
desc: "Comet browser download karein aur apna account banayein — mera referral link."
},
{
title: "Comet Quick (Done) (mohsin kamil)(link 2)Guide",
url: "https://pplx.ai/mohsinkami77665",
desc: "Step-by-step setup aur DUB dashboard ka overview."
},
{
title: "Comet Review — Is it Chro(Done)(butt karahi)(link 3) r?",
url: "https://pplx.ai/buttkarahi31832",
desc: "Pro & cons, performance aur AI features ka review."
},
{
title: "Comet Review — Is it (Done) ka(Fahee) (link 4)competitor?",
url: "https://pplx.ai/fahee2269590947",
desc: "Pro & cons, performance aur AI features ka review."
},
{
title: "Comet Review — Is it (Done)(Life focus) (link 5)competitor?",
url: "https://pplx.ai/lifefocusf8845",
desc: "Pro & cons, performance aur AI features ka review."
},
{
title: "Comet Review — Is it (Done)(Abdulrahman ) (link 6)competitor?",
url: "https://pplx.ai/m416abdulr16174",
desc: "Pro & cons, performance aur AI features ka review."
},
{
title: "Comet Review — Is it (Done)(Abdulrahman 2id) (link 7)competitor?",
url: "https://pplx.ai/m416abdulr53576",
desc: "Pro & cons, performance aur AI features ka review."
},
{
title: "Comet Quick Start (Done)(Abdullah )(link 8)Guide",
url: "https://pplx.ai/muhammadab79035",
desc: "Step-by-step setup aur DUB dashboard ka overview."
},
{
title: "Comet Quick Start (Abdullah tarar)(link 9)Guide",
url: "https://pplx.ai/abdullahta33335",
desc: "Step-by-step setup aur DUB dashboard ka overview."
},
{
title: "Comet Review — Is it Chrome ka(mazhar mehm) (link 10 )competitor?",
url: "https://pplx.ai/muhammadma15429",
desc: "Pro & cons, performance aur AI features ka review."
},
{
title: "Comet Review — Is it Chrome ka(mingle) (link 11 )competitor?",
url: "https://pplx.ai/minglemedi81541",
desc: "Pro & cons, performance aur AI features ka review."
},
{
title: "How to Earn with (Done)(nasff) (link 12)Referral",
url: "https://pplx.ai/nasfft82425",
desc: "Referral rules, payout aur terms ka summary."
}
];
// Utility: create link card
function createLinkCard(item, idx){
const card = document.createElement('article');
card.className = 'link-card';
card.setAttribute('data-index', idx);
const left = document.createElement('div');
left.className = 'link-left';
const title = document.createElement('h4');
title.className = 'link-title';
title.textContent = item.title;
const desc = document.createElement('p');
desc.className = 'link-desc';
desc.textContent = item.desc;
const meta = document.createElement('div');
meta.style.marginTop = '8px';
const anchor = document.createElement('a');
anchor.href = item.url;
anchor.target = '_blank';
anchor.rel = 'noopener noreferrer';
anchor.className = 'small';
anchor.textContent = item.url;
meta.appendChild(anchor);
left.appendChild(title);
left.appendChild(desc);
left.appendChild(meta);
const actions = document.createElement('div');
actions.className = 'link-actions';
const openBtn = document.createElement('button');
openBtn.className = 'action-btn';
openBtn.textContent = 'Open';
openBtn.onclick = () => window.open(item.url, '_blank');
const copyBtn = document.createElement('button');
copyBtn.className = 'action-btn copy-btn';
copyBtn.textContent = 'Copy';
copyBtn.onclick = () => copyToClipboard(item.url, 'Link copied!');
const shareBtn = document.createElement('button');
shareBtn.className = 'action-btn share-btn';
shareBtn.textContent = 'Share';
shareBtn.onclick = () => shareLink(item);
const removeBtn = document.createElement('button');
removeBtn.className = 'action-btn';
removeBtn.textContent = 'Remove';
removeBtn.style.background='#fff'; removeBtn.style.border='1px solid #fde68a';
removeBtn.onclick = () => removeLink(idx);
actions.appendChild(openBtn);
actions.appendChild(copyBtn);
actions.appendChild(shareBtn);
actions.appendChild(removeBtn);
card.appendChild(left);
card.appendChild(actions);
return card;
}
// Render list
const linksList = document.getElementById('linksList');
let links = initialLinks.slice();
function renderLinks(){
linksList.innerHTML = '';
links.forEach((l,i) => {
linksList.appendChild(createLinkCard(l,i));
});
}
// Copy helper
function copyToClipboard(text, toastText){
navigator.clipboard?.writeText(text).then(() => {
alert(toastText || 'Copied to clipboard');
}).catch(() => {
// fallback
const ta = document.createElement('textarea');
ta.value = text; document.body.appendChild(ta); ta.select();
try { document.execCommand('copy'); alert('Copied (fallback)'); } catch(e){ prompt('Copy this link:', text); }
ta.remove();
});
}
// Share helper
function shareLink(item){
const shareData = {
title: item.title,
text: item.desc,
url: item.url
};
if (navigator.share){
navigator.share(shareData).catch(err => {
alert('Share cancelled or not supported.');
});
} else {
// fallback to whatsapp / twitter
const whatsapp = `https://wa.me/?text=${encodeURIComponent(item.title + " - " + item.desc + " " + item.url)}`;
const twitter = `https://twitter.com/intent/tweet?text=${encodeURIComponent(item.title + " - " + item.desc)}&url=${encodeURIComponent(item.url)}`;
const choice = confirm("Native share not available. Press OK to share via WhatsApp, Cancel to use Twitter.");
window.open(choice ? whatsapp : twitter, '_blank');
}
}
// Remove
function removeLink(index){
if (!confirm('Kya aap yaqeenan is link ko hatana chahte hain?')) return;
links.splice(index,1);
renderLinks();
}
// Add new link form
const addBtn = document.getElementById('addBtn');
addBtn.addEventListener('click', () => {
const u = document.getElementById('newUrl').value.trim();
const m = document.getElementById('newMsg').value.trim();
if (!u || !m) { alert('Donon fields bharain.'); return; }
links.unshift({title: 'Custom Link', url: u, desc: m});
document.getElementById('newUrl').value='';
document.getElementById('newMsg').value='';
renderLinks();
});
// Open referral main button
document.getElementById('openReferral').addEventListener('click', () => {
const ref = document.getElementById('refInput').value;
window.open(ref, '_blank');
});
// Copy referral input
document.getElementById('copyReferral').addEventListener('click', () => {
const ref = document.getElementById('refInput').value;
copyToClipboard(ref, 'Referral link copied!');
});
// Share page
function shareAll(){
const url = window.location.href;
const text = "Check out Comet Browser and earn with my referral: " + document.getElementById('refInput').value;
if (navigator.share){
navigator.share({title:'Join Comet Browser', text, url}).catch(()=>{});
} else {
// fallback
const whatsapp = `https://wa.me/?text=${encodeURIComponent(text + " " + url)}`;
window.open(whatsapp, '_blank');
}
}
// fill current updated date
(function init(){
const dt = new Date();
const formatted = dt.toLocaleDateString('en-GB'); // dd/mm/yyyy
document.querySelector('header .small strong').textContent = formatted;
renderLinks();
})();
// Expose shareAll to global scope for footer link
window.shareAll = shareAll;
// Accessibility: allow keyboard "Enter" to submit add form
document.getElementById('addForm').addEventListener('keydown', (e) => {
if (e.key === 'Enter') {
e.preventDefault();
addBtn.click();
}
});
</script>
</body>
</html>