Script Deteksi Operator Dengan HTML dan Javascript

8/06/2016 09:55:00 AM
Script Deteksi Operator Dengan HTML dan Javascript

Tidak semua orang tau tentang operator dari berbagai nomor hp yang ada di Indonesia, maka dari itu saya membuat aplikasi HLR ini, tetapi masih dalam penegembangan jadi tidak mencantumkan lokasi awal nomor di produksi, ini hanyalah sebatas sebuah deteksi operator, dan apilkasi ini murni Javascript dan HTML jadi bisa di terapkan di Blogger. (Salah gambar bukan pelacak tapi deteksi operator)



1. Buka akun dasbor Blogger kalian.
2. Masuk ke Template -> Edit HTML 
3. Masukan script di bawah sebelum code   <b:skin>



<script>
function cekOp() {
    var x = document.getElementById(&quot;text&quot;).value;
    if (x == parseInt(x))
      {
      identifikasi = x.slice(0,4);
       if (identifikasi == 0811 || identifikasi == 0812 || identifikasi == 0813 || identifikasi == 0852 || identifikasi == 0853 || identifikasi == 0821 || identifikasi == 0822 || identifikasi == 0823)
       {
         z = &quot;Telkomsel&quot;
       }else{
       if (identifikasi == 0814 || identifikasi == 0815 || identifikasi == 0816 || identifikasi == 0855 || identifikasi == 0856 || identifikasi == 0857 || identifikasi == 0858)
       {
         z = &quot;Indosat&quot;
       }else{
       
       if (identifikasi == 0817 || identifikasi == 0818 || identifikasi == 0819 || identifikasi == 0859 || identifikasi == 0877 || identifikasi == 0878)
       {
         z = &quot;XL&quot;
       }
       else
       {
       if (identifikasi == 0831 || identifikasi == 0832 || identifikasi == 0838)
       {
         z = &quot;Axis&quot;
       }else
       {
       if (identifikasi == 0828)
       {
         z = &quot;Sampoerna Telekom&quot;
       }
       else{
       if (identifikasi == 0881 || identifikasi == 0882)
       {
         z = &quot;Smartfren&quot;
       }else{
        if (identifikasi == 0887 || identifikasi == 0888)
       {
         z = &quot;Mobile-8&quot;
       }else{
        if (identifikasi == 0896 || identifikasi == 0897 || identifikasi == 0898)
       {
         z = &quot;Three (3)&quot;
       }else{
       z= &quot;Nomor Tidak Dikenal&quot;
       }
       }
       }
       }
       }
       }
       }
       }
      }else{
       z=&quot;Yang Anda Input Bukan Nomor&quot;
      } 
  document.getElementById(&quot;nomorawal&quot;).innerHTML = x;
    document.getElementById(&quot;operator&quot;).innerHTML = z;
    document.getElementById(&quot;ruang&quot;).style.visibility = &quot;&quot;;
}
</script>

4. Jika sudah Simpan Template
5. Lalu buat halaman di Laman -> Laman Baru -> HTML lau salin kode di bawah

<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="col-md-6">
<label for="msisdn">Silahkan masukan No HH</label>
          <br />
<div class="input-group input-group-lg">
<input autocomplete="off" class="form-control" id="text" placeholder="Masukan Nomor HP" type="text" />
           <span class="input-group-btn">
            <button class="demo" onclick="cekOp()"><i class="fa fa-search"></i> Cari</button>
           </span>
          </div>
<div>
<small><b>Catatan</b>: Khusus untuk operator Indonesia</small></div>
</div>
<div class="col-md-6" id="ruang" style="visibility: hidden;">
<table class="responsive">
<tbody>
<tr>
<th>Nomor Terinput</th>
<th>Operator Terdeteksi</th>
</tr>
<tr>
<td><div id="nomorawal">
</div>
</td>
<td><div id="operator">
</div>
</td>
</tr>
</tbody><tbody>
</tbody></table>
</div>
<div style="visibility: hidden;">
Pencarian Nomor HP, Pencarian HP Hilang Gratis, pencarian lokasi hp, pencarian hlr</div>
</div>

dan selesai tutorial nya, silahkan di coba untuk demo klik di bawah ini :


IP Kamu Adalah :

Share this

Tidak ada hal yang spesial, cuman Blogger yang hanya sebatas tau tentang dunia Programer

Related Posts

Previous
Next Post »

1 komentar:

Write komentar
March 8, 2019 at 6:36 PM delete

ga niat share gan ? di copy aja ga bisa

Reply
avatar