Together We Refer. Together We Grow.

IWillReferYou.com connects professionals from different companies so they can discover opportunities, share candidates, and help each other with trusted job referrals.

How it works

Keep the community private, useful and spam-resistant.

📝

1. Register

Create your professional profile and upload a resume if you choose.

🛡️

2. Get approved

Every new member is reviewed by an administrator before entering the network.

🤝

3. Refer each other

Find members at other companies and send a referral request with candidate details.

'referralhub_members'; let current=null, referralTarget=null; const seed=[ {id:1,name:'Anita Sharma',email:'anita@example.com',company:'Microsoft',title:'Product Manager',location:'Bengaluru',linkedin:'',skills:'Product, AI, Cloud',status:'approved'}, {id:2,name:'Rahul Verma',email:'rahul@example.com',company:'Accenture',title:'Technology Lead',location:'Hyderabad',linkedin:'',skills:'Power Platform, LIMS',status:'approved'}, {id:3,name:'Priya Nair',email:'priya@example.com',company:'Pfizer',title:'Digital Systems Manager',location:'Mumbai',linkedin:'',skills:'Pharma, Quality, GxP',status:'approved'} ]; if(!localStorage.getItem(KEY)) localStorage.setItem(KEY,JSON.stringify(seed)); function data(){return JSON.parse(localStorage.getItem(KEY)||'[]')} function save(x){localStorage.setItem(KEY,JSON.stringify(x))} function show(id){ document.querySelectorAll('.view').forEach(x=>x.classList.add('hidden')); document.getElementById(id).classList.remove('hidden'); if(id==='directory') renderMembers('members'); if(id==='admin') renderAdmin(); if(id==='dashboard') renderDashboard(); window.scrollTo(0,0); } function renderMembers(el){ const arr=data().filter(x=>x.status==='approved'); document.getElementById(el).innerHTML=arr.length?arr.map(m=>card(m)).join(''):'

No approved members yet.

'; } function card(m){ return `
${m.name.split(' ').map(x=>x[0]).slice(0,2).join('')}

${esc(m.name)}

${esc(m.title||'Professional')} · ${esc(m.company)}

${esc(m.location||'')}

${esc(m.company)}${m.skills?`

${esc(m.skills)}

`:''}${current&¤t.id!==m.id?``:''}
`; } function renderDashboard(){ if(!current){show('login');return} document.getElementById('dashProfile').innerHTML=`

${esc(current.name)}

${esc(current.title||'')} · ${esc(current.company)}

${esc(current.email)}

Approved member
`; renderMembers('dashMembers'); } function renderAdmin(){ const arr=data(); document.getElementById('adminTable').innerHTML=`${arr.map(m=>``).join('')}
NameCompanyEmailResumeStatusAction
${esc(m.name)}
${esc(m.title||'')}
${esc(m.company)}${esc(m.email)}${m.resumeName?esc(m.resumeName):'—'}${m.status}${m.status==='pending'?` `:'—'}
`; } function approve(id){let a=data();a.find(x=>x.id===id).status='approved';save(a);renderAdmin()} function reject(id){let a=data();a.find(x=>x.id===id).status='rejected';save(a);renderAdmin()} document.getElementById('regForm').addEventListener('submit',e=>{ e.preventDefault(); const f=new FormData(e.target), file=f.get('resume'); let a=data(); if(a.some(x=>x.email.toLowerCase()===f.get('email').toLowerCase())){document.getElementById('regMsg').innerHTML='
An account with this email already exists.
';return} a.push({id:Date.now(),name:f.get('name'),email:f.get('email'),phone:f.get('phone'),company:f.get('company'),title:f.get('title'),location:f.get('location'),linkedin:f.get('linkedin'),skills:f.get('skills'),resumeName:file&&file.name?file.name:'',status:'pending'}); save(a); e.target.reset(); document.getElementById('regMsg').innerHTML='
Registration submitted. An administrator must approve your account before you can access the member directory.
'; }); document.getElementById('loginForm').addEventListener('submit',e=>{ e.preventDefault(); const email=document.getElementById('loginEmail').value.toLowerCase(); if(email==='admin@referralhub.local'){current={admin:true};document.getElementById('navAdmin').classList.remove('hidden');show('admin');return} const m=data().find(x=>x.email.toLowerCase()===email); if(!m){document.getElementById('loginMsg').innerHTML='
No account found.
';return} if(m.status!=='approved'){document.getElementById('loginMsg').innerHTML=`
Your account is currently ${m.status}. Please wait for administrator approval.
`;return} current=m; document.getElementById('navAuth').textContent='Dashboard';show('dashboard'); }); function openReferral(id){referralTarget=data().find(x=>x.id===id);document.getElementById('refTarget').textContent=`Requesting a referral from ${referralTarget.name} at ${referralTarget.company}`;document.getElementById('modal').classList.remove('hidden')} function closeModal(){document.getElementById('modal').classList.add('hidden')} function sendReferral(){if(!document.getElementById('candidate').value){alert('Candidate name is required.');return}alert('Referral request submitted in this prototype. In the production version, the member would receive an email notification.');closeModal()} function logout(){current=null;document.getElementById('navAdmin').classList.add('hidden');document.getElementById('navAuth').textContent='Login';show('home')} function esc(s){return String(s||'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]))} show('home');