// end campaign section js
//start service/Three things, done exceptionally section js
/* Service tab switcher — copied verbatim from index.js. */
function svcTab(n){
document.querySelectorAll('.svc2-tab').forEach((t,i)=>t.classList.toggle('active',i===n-1));
document.querySelectorAll('.svc2-panel').forEach((p,i)=>p.classList.toggle('show',i===n-1));
}
/* The "Book a free call" button scrolls to #contact-sec on the full landing page.
In this standalone file that section doesn't exist, so we guard the lookup. */
function scrollToId(id){
var el = document.getElementById(id);
if (el) el.scrollIntoView({behavior:'smooth'});
}
// end service/Three things, done exceptionally section js
//start Creators section code
/* Reel modal open/close — copied verbatim from index.js. */
function openReel(name,cat,initial,grad,ig,yt,av){
document.getElementById('reelName').textContent=name;
document.getElementById('reelCat').textContent=cat;
document.getElementById('reelAv').textContent=initial;
document.getElementById('reelAv').style.background='linear-gradient(160deg,'+grad+')';
document.getElementById('reelBg').style.background='linear-gradient(160deg,'+grad+')';
document.getElementById('reelIg').textContent=ig;
document.getElementById('reelYt').textContent=yt;
document.getElementById('reelAvg').textContent=av;
document.getElementById('reelOverlay').classList.add('open');
document.body.style.overflow='hidden';
}
function closeReel(){
document.getElementById('reelOverlay').classList.remove('open');
document.body.style.overflow='';
}
document.addEventListener('keydown',e=>{if(e.key==='Escape')closeReel();});
/* The modal's "Collaborate" CTA scrolls to #contact-sec on the full landing page.
In this standalone file that section doesn't exist, so we guard the lookup. */
function scrollToId(id){
var el = document.getElementById(id);
if (el) el.scrollIntoView({behavior:'smooth'});
}
// end Creators section code
//start talent section code
/* Reel modal open/close — copied verbatim from index.js. */
function openReel(name,cat,initial,grad,ig,yt,av){
document.getElementById('reelName').textContent=name;
document.getElementById('reelCat').textContent=cat;
document.getElementById('reelAv').textContent=initial;
document.getElementById('reelAv').style.background='linear-gradient(160deg,'+grad+')';
document.getElementById('reelBg').style.background='linear-gradient(160deg,'+grad+')';
document.getElementById('reelIg').textContent=ig;
document.getElementById('reelYt').textContent=yt;
document.getElementById('reelAvg').textContent=av;
document.getElementById('reelOverlay').classList.add('open');
document.body.style.overflow='hidden';
}
function closeReel(){
document.getElementById('reelOverlay').classList.remove('open');
document.body.style.overflow='';
}
document.addEventListener('keydown',e=>{if(e.key==='Escape')closeReel();});
/* Talent Explorer data + render/select logic — copied verbatim from index.js. */
const texCats = [
{key:'all', name:'All Talents', count:147},
{key:'influencers', name:'Influencers & Creators', count:40},
{key:'chefs', name:'Chefs & Mixologists', count:15},
{key:'fitness', name:'Health & Fitness', count:20},
{key:'film', name:'Film / TV Actors', count:12},
{key:'singers', name:'Singers / Bands', count:10},
{key:'dance', name:'Dance Productions', count:8},
{key:'regional', name:'Regional Artists', count:14},
{key:'celeb', name:'Celeb Performers', count:18},
{key:'comedy', name:'Comedy & Entertainment', count:16},
{key:'tech', name:'Tech & Gaming', count:11},
{key:'fashion', name:'Fashion & Beauty', count:22},
{key:'travel', name:'Travel & Food', count:19},
];
const grads = {
influencers:'#1e3a8a,#3b82f6', chefs:'#7c2d12,#f97316', fitness:'#14532d,#22c55e',
film:'#1c1917,#57534e', singers:'#0c4a6e,#0ea5e9', dance:'#4c1d95,#a855f7',
regional:'#7f1d1d,#ef4444', celeb:'#1e1b4b,#6366f1', comedy:'#854d0e,#eab308',
tech:'#0f766e,#14b8a6', fashion:'#831843,#ec4899', travel:'#9a3412,#fb923c'
};
const texTalent = [
{n:'Ankita Singh',h:'@ankita.s',c:'influencers',f:'1M',init:'A'},
{n:'Vikram Rao',h:'@vikramreviews',c:'tech',f:'320K',init:'V'},
{n:'Chef Arjun',h:'@arjuncooks',c:'chefs',f:'410K',init:'A'},
{n:'Riya Malhotra',h:'@riyafit',c:'fitness',f:'480K',init:'R'},
{n:'Karan Mehra',h:'@karanonscreen',c:'film',f:'890K',init:'K'},
{n:'Ankita Nandy',h:'@ankitamusic',c:'singers',f:'854K',init:'A'},
{n:'Nrityam Crew',h:'@nrityam',c:'dance',f:'260K',init:'N'},
{n:'Lakshmi Iyer',h:'@lakshmi.tamil',c:'regional',f:'520K',init:'L'},
{n:'Rohan Kapoor',h:'@rohanstage',c:'celeb',f:'2.1M',init:'R'},
{n:'Comedy Crew',h:'@thefunnyside',c:'comedy',f:'670K',init:'C'},
{n:'Priya Verma',h:'@priyaeats',c:'travel',f:'730K',init:'P'},
{n:'Sara Khan',h:'@sarastyle',c:'fashion',f:'960K',init:'S'},
{n:'Mansi Rajani',h:'@mansiraj',c:'influencers',f:'620K',init:'M'},
{n:'Mixologist Dev',h:'@devshakes',c:'chefs',f:'180K',init:'D'},
{n:'Tara Joshi',h:'@tarayoga',c:'fitness',f:'390K',init:'T'},
{n:'Aditya Sen',h:'@adityafilms',c:'film',f:'1.2M',init:'A'},
{n:'The Band X',h:'@bandx',c:'singers',f:'440K',init:'B'},
{n:'Meera Dance',h:'@meeramoves',c:'dance',f:'310K',init:'M'},
{n:'Ravi Telugu',h:'@ravi.tel',c:'regional',f:'680K',init:'R'},
{n:'Sweety Yadav',h:'@sweetyy',c:'influencers',f:'514K',init:'S'},
{n:'Gamer Neo',h:'@neoplays',c:'tech',f:'540K',init:'N'},
{n:'Tejaswee Sharma',h:'@tejaswee',c:'fashion',f:'568K',init:'T'},
{n:'Aisha Comedy',h:'@aishalols',c:'comedy',f:'420K',init:'A'},
{n:'Wanderer Sam',h:'@samtravels',c:'travel',f:'810K',init:'S'},
];
let texActive = 'all';
function texRenderMenu(){
const menu = document.getElementById('texDdMenu');
menu.innerHTML = texCats.map(c =>
`
${c.name} ${c.count}
`).join('');
}
function texRenderChips(){
const chips = document.getElementById('texChips');
const quick = ['all','influencers','fitness','fashion','celeb','comedy'];
chips.innerHTML = quick.map(k=>{
const c = texCats.find(x=>x.key===k);
return `
${c.name.replace(' & ','/').split(' /')[0]} `;
}).join('');
}
function texRenderWall(){
const wall = document.getElementById('texWall');
const full = texActive==='all' ? texTalent : texTalent.filter(t=>t.c===texActive);
const list = full.slice(0,10);
if(!list.length){ wall.innerHTML = '
No talents in this category yet — check back soon.
'; return; }
wall.innerHTML = list.map((t,i)=>{
const g = grads[t.c] || '#1e3a8a,#3b82f6';
const catName = texCats.find(c=>c.key===t.c).name;
return `
`;
}).join('');
}
function texSelect(key){
texActive = key;
const cat = texCats.find(c=>c.key===key);
document.getElementById('texDdVal').textContent = cat.name;
document.getElementById('texMetaL').innerHTML = `Showing
${cat.name} `;
const shown = Math.min((key==='all' ? texTalent.length : texTalent.filter(t=>t.c===key).length),10);
document.getElementById('texMetaR').textContent = `${shown} of ${cat.count}+ talents`;
// update view-all button
document.getElementById('texMoreCount').textContent = cat.count+'+';
document.getElementById('texMoreBtn').href = 'talents.html?cat='+key;
document.getElementById('texDd').classList.remove('open');
texRenderMenu(); texRenderChips(); texRenderWall();
}
// init
texRenderMenu(); texRenderChips(); texSelect('all');
// close dropdown on outside click
document.addEventListener('click', e=>{
const dd = document.getElementById('texDd');
if(dd && !dd.contains(e.target)) dd.classList.remove('open');
});
/* The modal's "Collaborate" CTA scrolls to #contact-sec on the full landing page.
In this standalone file that section doesn't exist, so we guard the lookup. */
function scrollToId(id){
var el = document.getElementById(id);
if (el) el.scrollIntoView({behavior:'smooth'});
}
// end talent section code
// start Work With Us section code
/* The "Start a Campaign" button scrolls to #contact-sec on the full landing page.
In this standalone file that section doesn't exist, so we guard the lookup. */
function scrollToId(id){
var el = document.getElementById(id);
if (el) el.scrollIntoView({behavior:'smooth'});
}
// end Work With Us section code;