let touchDuration = 100; let touchTimer = null; let moved = false; function onTouchStart(e) { moved = false; touchTimer = setTimeout(() => { // long press detected e.preventDefault(); alert('PanPan Security System Activated!'); }, touchDuration); } function onTouchMove(e) { moved = true; if (touchTimer) { clearTimeout(touchTimer); touchTimer = null; } } function onTouchEnd(e) { if (touchTimer) { clearTimeout(touchTimer); touchTimer = null; } } document.addEventListener('touchstart', onTouchStart, { passive: false }); document.addEventListener('touchmove', onTouchMove, { passive: false }); document.addEventListener('touchend', onTouchEnd, { passive: false }); // Also disable right click context menu on desktop document.addEventListener('contextmenu', function(e) { e.preventDefault(); });
No Right Click // This is the core line that disables the right-click menu. document.addEventListener('contextmenu', e => e.preventDefault());
Floating Refresh Button const refreshBtn = document.getElementById('refreshBtn'); refreshBtn.addEventListener('click', () => { location.reload(); });
PanPan Design
PanPan Design
  • Tools ▾
    • • လစာ တွက်စက်
    • • ပြေစာ ထုတ်စက်
  • Contact
×

Contact Us

Facebook
@panpandesign
TikTok
@panpandesign
PanPan Bottom Tab Bar
HomeReelJobsE-Bill
document.addEventListener('DOMContentLoaded', function () { const tabs = document.querySelectorAll('.tab-item:not(.middle-btn)'); // Exclude middle-btn from dynamic switching function updateIcons(activeTab) { tabs.forEach(tab => { const icon = tab.querySelector("i"); const base = tab.dataset.icon; if (tab === activeTab) { tab.classList.add('active'); icon.className = `bx bxs-${base}`; } else { tab.classList.remove('active'); icon.className = `bx bx-${base}`; } }); } // Default: no other tab is active on load (middle-btn is always active visually) // You can add logic to highlight current page if needed tabs.forEach(tab => { tab.addEventListener('click', (e) => { e.preventDefault(); updateIcons(tab); window.location.href = tab.href; }); }); });