AZHAIPPU

Connecting...

← Back to Stories
Share Story:
அ
AzhaippU
Verified
EN தமிழ்
You're invited

Event Name

Date TBA
Venue Loading...
Invitation

Help us find your home

Pin your house once — the family will use it to plan card delivery and pickups.

pin
Only the host family can see this pin. You can remove it any time.
1000+ Homes Vision
100% Secure & Private

Join the movement early and become a pioneer of smart celebrations!

View Full Details in the App →

Host Dashboard Demo

This is a preview of what the event host sees inside the app when guests pin their locations.

அ
Radar - My Wedding
Suresh Kumar
📍 1.2km • Near Gandhi Park
Meena Devi
📍 4.5km • Erode Main Rd
Guest 12
📍 0.4km • Opp. Temple
✨ Smart Trip Available
AzhaippU AI found 3 guests on your way to Erode!

AzhaippU Stories

அ
Preserving Traditions
📍
Smart Coordination
🏠
Community Trusted

Guide

About

1000+ Homes Vision
100% Secure & Private

Privacy

அ
Team.AzhaippU@gmail.com
© 2026 AzhaippU

The story begins with the royal union of Cheraman Perumal Nayanar and Uruthira Mani, the daughter of the Great Chola King. During the wedding celebrations, as the Chola King offered traditional dowry and riches, the princess made a profound request that would echo through centuries.

She asked for 8,000 families from the Vellalar community to accompany her to her new home, ensuring the continued prosperity and social coordination of the land.

The Chola King agreed, but with one sacred condition: "They must be treated with the same respect and dignity as the King himself." Cheraman Perumal accepted, promising to value them in high-ranking positions of the state.

Led by the noble Anangur Kani Muthaian, a community began a journey that transformed the logistical and social fabric of a nation. This wasn't just a wedding; it was the birth of a community-driven coordination system—the same spirit that AzhaippU carries forward today.

This noble clan, having migrated westwards towards the Kongu region, has flourished and multiplied into hundreds of thousands of families today. However, with the onset of modernization, many have moved away from traditional agriculture and ancestral villages to pursue diverse businesses and professions in cities. Unlike previous centuries—or even the last decade—it is no longer easy to physically deliver thousands of invitations across scattered urban landscapes.

AzhaippU bridges this gap by combining our ancient community-driven roots with smart mapping technology, making it easy to reach every family, no matter where they have migrated. We invite you to become a pioneer of this movement and help us build a smarter, more connected community.

` } ] }, ta: { load: "திறக்கப்படுகிறது...", tabInvite: "அழைப்பு", tabDemo: "முன்னோட்டம்", tabStories: "கதைகள்", tabGuide: "வழிகாட்டி", tabAbout: "பற்றி", tabPrivacy: "தனியுரிமை", official: "உங்களை வரவேற்கிறோம்", pinTitle: "உங்கள் வீட்டை கண்டறிய உதவவும்", publicTitle: "அழைப்பு சமூகத்தில் இணையுங்கள்", publicDesc: "வருங்கால நிகழ்வுகளில் நண்பர்களும் உறவினர்களும் உங்களை எளிதாக வந்தடைய, உங்கள் வீட்டை ஒருமுறை வரைபடத்தில் குறிக்கவும்.", namePlace: "உங்கள் முழுப் பெயர்", back: "கதைகளுக்குத் திரும்புக", shareLabel: "பகிரவும்:", phonePlace: "10 இலக்க எண்", consent: "உங்கள் தொலைபேசி எண்ணை வைத்துள்ளவர்கள் மட்டுமே உங்களை வந்தடைய உங்கள் இருப்பிடத்தைக் காண முடியும். இதை நீங்கள் எப்போது வேண்டுமானாலும் நீக்கலாம்.", btnOpenMap: "📍 வரைபடத்தைத் திறந்து குறிக்கவும்", btnSave: "✅ இந்த இடத்தைச் சேமிக்கவும்", success: "✓  வீட்டின் இடம் சேமிக்கப்பட்டது", btnNav: "🧭 வழிகாட்டி", btnCal: "📅 நாட்காட்டி", btnMessage: "💬 உரிமையாளரைத் தொடர்பு கொள்ள", landmarkPlace: "அடையாளம் (உதாரணம்: பூங்காவிற்கு எதிரில்)", countdownText: "விழா தொடங்க இன்னும்: ", days: "நாட்கள்", hours: "மணி", minutes: "நிமிடம்", saving: "⌛ சேமிக்கப்படுகிறது...", guideHead: "வழிகாட்டி", guide: [ {h: "இடத்தைக் குறித்தல்", p: "உங்கள் எண்ணை உள்ளிட்டு வரைபடத்தில் சிவப்பு குறியீட்டை உங்கள் வீட்டின் மேல் வைக்கவும்."} ], aboutHead: "செயலியைப் பற்றி", about: [ {p: "இந்திய குடும்ப விழாக்களை எளிமையாக்க அழைப்பு உருவாக்கப்பட்டது."} ], statHomes: "இலக்கு: 1000+ வீடுகள்", statPrivacy: "100% பாதுகாப்பானது", pioneerCta: "இந்த புதிய முயற்சியில் இப்போதே இணைந்து ஒரு முன்னோடியாக இருங்கள்!", privacyHead: "தனியுரிமைக் கொள்கை", privacy: [ {h: "தகவல் சேகரிப்பு", p: "நீங்கள் பகிர விரும்பும் போது மட்டுமே உங்கள் தொலைபேசி எண் மற்றும் இருப்பிடத்தை நாங்கள் சேகரிக்கிறோம், இது இந்த நிகழ்வை ஒருங்கிணைக்க மட்டுமே பயன்படுத்தப்படும்."}, {h: "தொடர்புக்கு", p: "உங்களுக்கு ஏதேனும் கேள்விகள் அல்லது உதவி தேவைப்பட்டால், எங்களை Team.AzhaippU@gmail.com என்ற மின்னஞ்சலில் தொடர்பு கொள்ளவும். நாங்கள் உங்களுக்கு உதவ காத்திருக்கிறோம்!"} ], mission: "எங்கள் நோக்கம்: பாரம்பரிய விழாக்களின் வேலைக்களை எளிமையாக்க இது உருவாக்கப்பட்டது. விளம்பரங்கள் சர்வர் செலவுகளுக்குப் பயன்படுத்தப்படும். உதவிக்கு Team.AzhaippU@gmail.com-க்கு மின்னஞ்சல் செய்யவும்.", demoHead: "ஒருங்கிணைப்பாளர் திரை", demoDesc: "விருந்தினர்கள் தங்கள் வீட்டைப் பின்னிடும்போது ஒருங்கிணைப்பாளர் செயலியில் காண்பது இதுதான்.", storiesHead: "அழைப்பு கதைகள்", posts: [ { t: "பாரம்பரியம்", h: "8,000 குடும்பங்களின் வாழ்வை மாற்றிய அரச திருமணம்", e: "சேரமான் பெருமாள் மற்றும் உருத்திர மணி திருமணத்தின் போது அளிக்கப்பட்ட ஒரு வாக்குறுதி, எப்படி ஒரு பெரும் சமூகத்தின் வரலாற்றை மாற்றியது?", shareMsg: "✨ *8,000 குடும்பங்களின் வாழ்வை மாற்றிய அரச திருமணம்* ✨\n\nஅழைப்பு செயலியின் பின்னால் இருக்கும் பாரம்பரிய வரலாற்றை தெரிந்து கொள்ளுங்கள். இந்த புதிய முயற்சியில் இப்போதே இணைந்து ஒரு முன்னோடியாக இருங்கள்!\n\nமேலும் படிக்க: ", full: `

8,000 குடும்பங்களின் வாழ்வை மாற்றிய அரச திருமணம்

"திக்கெல்லாம் மதிக்கும் சேரமான் பெருமாள்\nகுருத்தணி சோழன் குறைவிலா தீன்ற\nஉருத்திர மணியின் உடன்க மகிழ்ந்து\nமண்புரிந் துலகில் வாழ்ந்திடும் நாளில்\nகுணமுடன் மகட்குக் குருத்தணி சோழன்\nசீதன வரிசை சிலபொருள் உதவும்\nபோதினில் மகளும் பொருந்தியள் மகிழ்ந்து\nதந்தைதன் னுடனே சாற்றிய வசனம்\nநந்தலில் லாத நாற்பத்தெண் ணாாயிரம்\nநற்குலத் தாரில் நாலிரு ஆயிரம்\nநிற்கிரி கடனே னீடூழிக் காலம்\nமதியுடன் எங்கள் மன்சபைச் சமூகராய்\nஇதமுடன் இருக்க ஈகுவீர் என்னக்\கூறவும் மகிழ்ந்து குருத்தணி சோழன்\nசேரமா னுடனே செப்புவர் சிறப்பாய்\nமகளுரை தவறா வாய்மையால் யானும்\nவகையுடன் வேளாண் மரபுளோர் அனுப்பில்\nஉங்களோ டொப்ப உயர்ச்சியாய்ப் பார்க்கில்\nஅங்குயான் அனுப்ப அகம்சொல் மதிப்பேன்\nஎன்றவர் சொல்லவே சேர மானும்\nநன்றவர் நமது நாடதி பதிாய்\nவரிசைமெய்ப் புகழுடன் வழங்குவேன் எனவும்\nசரிசரி யெனவே தரணிபா லக்ரில்\nகண்ணன் ஆனங்கூர்க் காணிமுத் தையனை\nமன்னவர் சபையில் வரவழைத் தேதான்"

திக்கெல்லாம் மதிக்கும் சேரமான் பெருமாள் நாயனார், சோழ மன்னனின் மகளான உருத்திர மணியை மணந்து இல்லறம் நடத்தி வந்தார். திருமணத்திற்குப் பிறகு சோழ மன்னன் தன் மகளுக்குச் சீதனப் பொருள்கள் வழங்க முன்வந்தார்.

அப்போது, அந்த இளவரசி தன் தந்தையிடம் ஒரு உன்னதமான கோரிக்கையை வைத்தார்: 'சீதனப் பொருள்களுடன் சேர்த்து, எங்கள் புதிய தேசத்தின் வளர்ச்சிக்கும் மேலாண்மைக்கும் துணையாக 8,000 வேளாளர் குடும்பங்களை அனுப்பி வைக்க வேண்டும்.'

சோழ மன்னன் அதற்கு ஒரு நிபந்தனை விதித்தார்: 'அவர்களை உங்களைப்போலவே மரியாதையுடனும், கௌரவத்துடனும் நடத்துவதாக இருந்தால் மட்டுமே நான் அவர்களை அனுப்புவேன்.' சேரமான் பெருமிதத்துடன் சம்மதித்தார்.

அவர்கள் நாட்டின் உயரிய பொறுப்புகளில் அமர்த்தப்பட்டு கௌரவிக்கப்படுவார்கள் என்று வாக்களித்தார். அதன் தொடர்ச்சியாக, வேளாளர்களின் தலைவரான ஆனங்கூர் காணி முத்தையன் தலைமையில் அந்த பெரும் பயணம் தொடங்கியது.

இந்த ஒரு திருமணம், தனிநபர்களின் இணைப்பாக மட்டும் அமையாமல், ஒரு பெரும் சமூகத்தின் வாழ்வாதாரத்தையும், ஒரு நாட்டின் நிர்வாக அமைப்பையும் மாற்றியமைத்த வரலாற்று நிகழ்வாக மாறியது. அந்த சமூக ஒருங்கிணைப்பின் நவீன வடிவமே இன்று உங்கள் கைகளில் இருக்கும் 'அழைப்பு'.

மேற்கு நோக்கி கொங்கு மண்டலத்திற்குப் புலம்பெயர்ந்த இச்சமூகம், இன்று பல இலட்சம் குடும்பங்களாகத் தழைத்தோங்கியுள்ளது. இருப்பினும், நவீனமயமாக்கலால் பலர் தங்களின் பாரம்பரிய விவசாயத்தையும் கிராமங்களையும் விட்டு, நகரங்களில் பல்வேறு தொழில்கள் மற்றும் பணிகளில் ஈடுபட்டு வருகின்றனர்.

கடந்த நூற்றாண்டுகளைப் போலவோ அல்லது கடந்த பத்தாண்டுகளைப் போலவோ, இன்று பரந்து விரிந்துள்ள நகரங்களில் ஆயிரக்கணக்கான அழைப்பிதழ்களை நேரில் சென்று வழங்குவது எளிதான காரியமல்ல. இந்த இடைவெளியை நிரப்பவே, எமது பழமையான சமூகக் கட்டமைப்பையும் நவீன வரைபடத் தொழில்நுட்பத்தையும் இணைத்து 'அழைப்பு' உருவாக்கப்பட்டுள்ளது. இதன் மூலம், எங்குப் புலம்பெயர்ந்து இருந்தாலும் ஒவ்வொரு குடும்பத்தையும் எளிதாகச் சென்றடைய முடியும். இந்த புதிய முயற்சியில் இப்போதே இணைந்து ஒரு முன்னோடியாக இருங்கள்!

` } ] } }; let currentLang = 'en', images = [], curIdx = 0, vLat, vLng, eName, eDate, eTimestamp, eLocName, hostPhone, currentPostIdx = 0; function toggleLang() { setLang(currentLang === 'en' ? 'ta' : 'en'); } function setLang(lang) { currentLang = lang; const t = translations[lang]; // If article is open, refresh its content in the new language if (document.getElementById('article-view').style.display === 'block') { document.getElementById('article-content').innerHTML = t.posts[currentPostIdx].full; // Update URL to reflect language change const newUrl = window.location.origin + window.location.pathname + '?article=' + currentPostIdx + '&lang=' + lang + (eventId ? '&id=' + eventId : ''); window.history.replaceState({ article: currentPostIdx, lang: lang }, '', newUrl); } document.getElementById('lang-en').classList.toggle('active', lang === 'en'); document.getElementById('lang-ta').classList.toggle('active', lang === 'ta'); document.getElementById('load-text').innerText = t.load; document.getElementById('tab-invite').innerText = t.tabInvite; document.getElementById('tab-demo').innerText = t.tabDemo; document.getElementById('tab-stories').innerText = t.tabStories; document.getElementById('tab-guide').innerText = t.tabGuide; document.getElementById('tab-about').innerText = t.tabAbout; document.getElementById('tab-privacy').innerText = t.tabPrivacy; document.getElementById('label-official').innerText = t.official; document.getElementById('label-pin-title').innerText = t.pinTitle; document.getElementById('label-pin-desc').innerText = t.pinDesc; document.getElementById('guest-phone').placeholder = t.phonePlace; document.getElementById('label-consent').innerHTML = t.consent; document.getElementById('start-btn').innerText = t.btnOpenMap; document.getElementById('save-btn').innerText = t.btnSave; document.getElementById('pin-success').innerHTML = t.success; document.getElementById('btn-venue-nav').innerText = t.btnNav; document.getElementById('btn-add-calendar').innerText = t.btnCal; document.getElementById('btn-message-host').innerText = t.btnMessage; document.getElementById('guest-landmark').placeholder = t.landmarkPlace; document.getElementById('mission-note').innerHTML = t.mission; document.getElementById('guide-header').innerText = t.guideHead; document.getElementById('about-header').innerText = t.aboutHead; document.getElementById('privacy-header').innerText = t.privacyHead; document.getElementById('demo-header').innerText = t.demoHead; document.getElementById('demo-desc').innerText = t.demoDesc; document.getElementById('stories-header').innerText = t.storiesHead; document.getElementById('label-back').innerText = t.back; document.getElementById('label-share-this').innerText = t.shareLabel; document.getElementById('label-stat-homes').innerText = t.statHomes; document.getElementById('label-stat-privacy').innerText = t.statPrivacy; document.getElementById('label-stat-homes-2').innerText = t.statHomes; document.getElementById('label-stat-privacy-2').innerText = t.statPrivacy; document.getElementById('label-pioneer-cta').innerText = t.pioneerCta; document.getElementById('guest-name').placeholder = t.namePlace; document.getElementById('blog-posts').innerHTML = t.posts.map((p, i) => `
${p.t}

${p.h}

${p.e}

`).join(''); document.getElementById('guide-cards').innerHTML = t.guide.map(i => `

${i.h}

${i.p}

`).join(''); document.getElementById('about-cards').innerHTML = t.about.map(i => `
${i.h ? `

${i.h}

` : ''}

${i.p}

`).join(''); document.getElementById('privacy-cards').innerHTML = t.privacy.map(i => `

${i.h}

${i.p}

`).join(''); } const firebaseConfig = { apiKey: "AIzaSyA42PDKQE6GNz_cmr4OXTlcgJ5AxTuY5PE", authDomain: "azhaippu-36915.firebaseapp.com", projectId: "azhaippu-36915", storageBucket: "azhaippu-36915.firebasestorage.app", messagingSenderId: "206055463907", appId: "1:206055463907:web:1850fc6bcc800dff739ed6", measurementId: "G-CYP3EHXD55" }; firebase.initializeApp(firebaseConfig); const db = firebase.firestore(); firebase.auth().signInAnonymously(); const urlParams = new URLSearchParams(window.location.search); const eventId = urlParams.get('id'); const articleId = urlParams.get('article'); const langParam = urlParams.get('lang'); if (eventId) { db.collection("functions").doc(eventId).get().then((doc) => { if (doc.exists) { const data = doc.data(); eName = data.name; eDate = data.date; eTimestamp = data.dateTimestamp; eLocName = data.locationName; hostPhone = data.ownerPhone || ""; document.getElementById('event-name').innerText = eName; document.getElementById('event-date').innerText = eDate || "Date TBA"; document.getElementById('event-venue').innerText = eLocName || "Venue TBA"; if (eTimestamp) startCountdown(eTimestamp); images = data.imageUrls || (data.imageUrl ? [data.imageUrl] : []); if (images.length > 0) { document.getElementById('event-poster').src = images[0]; if (images.length > 1) { document.getElementById('gallery-nav').style.display = 'flex'; document.getElementById('gallery-dots').innerHTML = images.map((_, i) => ``).join(''); } } if (data.venueLat) { vLat = data.venueLat; vLng = data.venueLng; document.getElementById('btn-venue-nav').style.display = 'flex'; } if (eTimestamp) { document.getElementById('btn-add-calendar').style.display = 'flex'; } if (hostPhone) { document.getElementById('btn-message-host').style.display = 'block'; } setLang(langParam || 'en'); if (articleId !== null) { switchTab('stories'); openArticle(parseInt(articleId), true); } else { switchTab('invite'); } showFinalUI(); } else { showRoot(); } }).catch(() => showRoot()); } else { showRoot(); setLang(langParam || 'en'); if (articleId !== null) { switchTab('stories'); openArticle(parseInt(articleId), true); } } function showRoot() { document.getElementById('tab-invite').style.display = 'block'; document.getElementById('label-pin-title').innerText = translations[currentLang].publicTitle; document.getElementById('label-pin-desc').innerText = translations[currentLang].publicDesc; document.getElementById('guest-name').style.display = 'block'; switchTab('invite'); showFinalUI(); } function showFinalUI() { document.getElementById('loading-overlay').style.display = 'none'; document.getElementById('main-ui').style.display = 'flex'; } function switchTab(tabId) { document.querySelectorAll('.tab-content').forEach(c => c.classList.remove('active')); document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active')); const c = document.getElementById(tabId); if(c) c.classList.add('active'); const b = document.getElementById('tab-' + tabId); if(b) b.classList.add('active'); window.scrollTo(0,0); } function openArticle(index, skipPush = false) { currentPostIdx = index; const post = translations[currentLang].posts[index]; document.getElementById('article-content').innerHTML = post.full; document.getElementById('article-view').style.display = 'block'; window.scrollTo(0,0); if (!skipPush) { const newUrl = window.location.origin + window.location.pathname + '?article=' + index + '&lang=' + currentLang + (eventId ? '&id=' + eventId : ''); window.history.pushState({ article: index, lang: currentLang }, '', newUrl); } } function closeArticle() { document.getElementById('article-view').style.display = 'none'; const newUrl = window.location.origin + window.location.pathname + '?lang=' + currentLang + (eventId ? '&id=' + eventId : ''); window.history.pushState({ lang: currentLang }, '', newUrl); } function shareTo(platform) { const post = translations[currentLang].posts[currentPostIdx]; const url = window.location.origin + window.location.pathname + '?article=' + currentPostIdx + '&lang=' + currentLang + (eventId ? '&id=' + eventId : ''); const text = post.shareMsg + url; if (platform === 'wa') { window.open(`https://api.whatsapp.com/send?text=${encodeURIComponent(text)}`); } else if (platform === 'fb') { window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(url)}`); } else if (platform === 'tw') { window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}`); } } function nextImg() { curIdx = (curIdx + 1) % images.length; updateGallery(); } function prevImg() { curIdx = (curIdx - 1 + images.length) % images.length; updateGallery(); } function updateGallery() { document.getElementById('event-poster').src = images[curIdx]; const dots = document.querySelectorAll('.dots span'); dots.forEach((dot, i) => dot.classList.toggle('on', i === curIdx)); } function navToVenue() { window.open(`https://www.google.com/maps/dir/?api=1&destination=${vLat},${vLng}`); } function addToCalendar() { if (!eTimestamp) return; const start = new Date(eTimestamp); start.setHours(9, 0, 0); const end = new Date(eTimestamp); end.setHours(14, 0, 0); const fmt = d => d.toISOString().replace(/[-:]/g, "").split(".")[0] + "Z"; const url = `https://www.google.com/calendar/render?action=TEMPLATE&text=${encodeURIComponent(eName)}&dates=${fmt(start)}/${fmt(end)}&details=${encodeURIComponent("Invitation via AzhaippU")}&location=${encodeURIComponent(eLocName || "")}`; window.open(url); } function messageHost() { window.open(`https://api.whatsapp.com/send?phone=${hostPhone}&text=${encodeURIComponent("Hi, I have a question regarding " + eName)}`); } function startCountdown(ts) { const el = document.getElementById('countdown'); setInterval(() => { const now = new Date().getTime(); const dist = ts - now; if (dist < 0) { el.style.display = 'none'; return; } const d = Math.floor(dist / (1000 * 60 * 60 * 24)); const h = Math.floor((dist % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); const m = Math.floor((dist % (1000 * 60 * 60)) / (1000 * 60)); const t = translations[currentLang]; el.innerText = `${t.countdownText} ${d}${t.days} ${h}${t.hours} ${m}${t.minutes}`; }, 1000); } let map; function showMap() { const phone = document.getElementById('guest-phone').value.trim(); if (phone.length < 10) { alert(currentLang === 'ta' ? "எண்ணை உள்ளிடவும்." : "Enter 10-digit phone."); return; } document.getElementById('start-btn').style.display = 'none'; document.getElementById('map-wrap').style.display = 'block'; document.getElementById('consent-container').style.display = 'flex'; document.getElementById('save-btn').style.display = 'flex'; navigator.geolocation.getCurrentPosition((pos) => { map = new google.maps.Map(document.getElementById("map"), { center: { lat: pos.coords.latitude, lng: pos.coords.longitude }, zoom: 18, disableDefaultUI: true }); }, () => { map = new google.maps.Map(document.getElementById("map"), { center: { lat: 11.34, lng: 77.71 }, zoom: 12, disableDefaultUI: true }); }); } function saveLocation() { const center = map.getCenter(), phone = document.getElementById('guest-phone').value.trim(), name = document.getElementById('guest-name').value.trim(), landmark = document.getElementById('guest-landmark').value.trim(), consent = document.getElementById('consent-check').checked; if (!consent) { alert(currentLang === 'ta' ? "பெட்டியை டிக் செய்யவும்." : "Check consent box."); return; } document.getElementById('save-btn').innerText = translations[currentLang].saving; const lat = center.lat(), lng = center.lng(); const p1 = db.collection("contacts").doc(phone).set({ lat, lng, landmark, pinnedBy: "GUEST", consentGiven: true, name: name || "", lastUpdated: firebase.firestore.FieldValue.serverTimestamp() }, { merge: true }); let promises = [p1]; if (eventId) { const p2 = db.collection("functions").doc(eventId).collection("guests").where("phoneNumber", "==", phone).get().then(s => { const updates = []; s.forEach(d => updates.push(d.ref.update({ lat, lng, landmark, pinnedBy: "GUEST", consentGiven: true }))); return Promise.all(updates); }); promises.push(p2); } Promise.all(promises).then(() => { document.getElementById('map-wrap').style.display = 'none'; document.getElementById('save-btn').style.display = 'none'; document.getElementById('guest-phone').style.display = 'none'; document.getElementById('consent-container').style.display = 'none'; document.getElementById('pin-success').style.display = 'block'; }); } function demoAction(id) { const card = document.getElementById('demo-card-' + id); const btn = card.querySelector('.demo-btn'); if (id === 1) { btn.innerText = "INVITED"; btn.style.background = "var(--gold)"; card.classList.add('invited'); alert("Demo: Suresh Kumar has been moved to the 'Invited' list!"); } else if (id === 2) { btn.innerText = "NAVIGATE"; btn.style.background = "#10b981"; card.style.borderLeftColor = "#10b981"; alert("Demo: Status reset to Navigate."); } } window.onpopstate = function(event) { if (event.state) { if (event.state.lang) setLang(event.state.lang); if (event.state.article !== undefined) { openArticle(event.state.article, true); } else { closeArticle(); } } else { closeArticle(); } };