<!doctype html>
<html lang="en" translate="no" class="w-[640px] mx-auto md:w-full">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Activation</title>
      <?php echo view('user/layout/head');?>
   </head>
   <style>
      .nav-item
      {
      border:2px solid  rgba(140,98,10,1) !important;
      }
      .sam .active {
      background: linear-gradient(180deg, rgba(179,137,34,1) 0%, rgba(140,98,10,1) 50%, rgba(179,137,34,1) 100%, rgba(14,72,62,1) 100%) !important;
      border-radius: 0px !important;
      }
      .help-block {
      color: #eb5055;
      margin: 0em 0em 0em !important;
      }
      #countdown{
      width: 337px;
      height: 120px;
      text-align: center;
      background: #222;
      background: linear-gradient(180deg, rgba(179,137,34,1) 0%, rgba(140,98,10,1) 50%, rgba(179,137,34,1) 100%, rgba(14,72,62,1) 100%) !important; 
      /* background-image:    -moz-linear-gradient(top, #222, #333, #333, #222);
      background-image:     -ms-linear-gradient(top, #222, #333, #333, #222);
      background-image:      -o-linear-gradient(top, #222, #333, #333, #222); */
      border: 1px solid #111;
      border-radius: 5px;
      box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.6);
      margin: auto;
      padding: 24px 0;
      position: relative;
      top: 0; bottom: 0; left: 0; right: 0;
      margin-top:10px;
      }
      #countdown:before{
      content:"";
      width: 8px;
      height: 65px;
      background: #444;
      background: linear-gradient(180deg, rgba(179,137,34,1) 0%, rgba(140,98,10,1) 50%, rgba(179,137,34,1) 100%, rgba(14,72,62,1) 100%) !important; ; 
      /* background-image:    -moz-linear-gradient(top, #555, #444, #444, #555);
      background-image:     -ms-linear-gradient(top, #555, #444, #444, #555);
      background-image:      -o-linear-gradient(top, #555, #444, #444, #555); */
      border: 1px solid #111;
      border-top-left-radius: 6px;
      border-bottom-left-radius: 6px;
      display: block;
      position: absolute;
      top: 48px; left: -10px;
      }
      #countdown:after{
      content:"";
      width: 8px;
      height: 65px;
      background: #444;
      background: linear-gradient(180deg, rgba(179,137,34,1) 0%, rgba(140,98,10,1) 50%, rgba(179,137,34,1) 100%, rgba(14,72,62,1) 100%) !important; ; 
      /* background-image:    -moz-linear-gradient(top, #555, #444, #444, #555);
      background-image:     -ms-linear-gradient(top, #555, #444, #444, #555);
      background-image:      -o-linear-gradient(top, #555, #444, #444, #555); */
      border: 1px solid #111;
      border-top-right-radius: 6px;
      border-bottom-right-radius: 6px;
      display: block;
      position: absolute;
      top: 48px; right: -10px;
      }
      /* #countdown #tiles{
      position: relative;
      z-index: 1;
      } */
      #countdown #tiles > span{
      width: 60px;
      max-width: 60px;
      font: bold 25px 'Droid Sans', Arial, sans-serif;
      text-align: center;
      color: #fff;
      background-color: #ddd;
      background: rgba(0,0,0,0.5); 
      /* background-image:    -moz-linear-gradient(top, #bbb, #eee);
      background-image:     -ms-linear-gradient(top, #bbb, #eee);
      background-image:      -o-linear-gradient(top, #bbb, #eee); */
      border-top: 1px solid #fff;
      border-radius: 3px;
      box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.7);
      margin: 0 7px;
      padding: 14px 0;
      display: inline-block;
      position: relative;
      }
      #countdown #tiles > span:before{
      content:"";
      width: 100%;
      height: 5px;
      background: #111;
      display: block;
      padding: 0 3px;
      position: absolute;
      top: 41%; left: -3px;
      z-index: -1;
      }
      #countdown #tiles > span:after{
      content:"";
      width: 100%;
      height: 1px;
      background: #eee;
      border-top: 1px solid #333;
      display: block;
      position: absolute;
      top: 48%; left: 0;
      }
      #countdown .labels{
      width: 100%;
      height: 20px;
      text-align: center;
      position: absolute;
      bottom: 8px;
      }
      #countdown .labels li{
      width: 70px;
      font: bold 15px 'Droid Sans', Arial, sans-serif;
      color: #000;
      text-shadow: 1px 1px 0px #000;
      text-align: center;
      text-transform: uppercase;
      display: inline-block;
      }
      .head {
      background: linear-gradient(180deg, rgba(179,137,34,1) 0%, rgba(140,98,10,1) 50%, rgba(179,137,34,1) 100%, rgba(14,72,62,1) 100%);
      color: #fff;
      border: 1px;
      }
      .change-danger {
      background: red;
      color: #fff;
      font-size: 12px;
      padding: 5px;
      }
      .change-success {
      background: green;
      color: #fff;
      font-size: 12px;
      padding: 5px;
      }
      p.frgtpwd1 {
      background:#8DC540 !important
      }
      p.frgtpwd1 i {
      background:#8DC540 !important;
      color:#fff !important
      }
      p.frgtpwd {
      font-size: 13px;
      color: #fff;
      text-align: left;
      line-height: 24px;
      margin: 0 0 1em 0;
      background: #22313F;
      border-radius: 2px;
      padding:10px 39px 10px 10px;
      font-weight: 600;
      position: relative;
      }
      p.frgtpwd i {
      position: absolute;
      top: 0;
      right: 0;
      padding:15px 8px 8px 8px;
      font-size: 14px;
      background: #F5AB35;
      color: #22313F;
      height: 100%;
      }
      p.frgtpwdred {
      background:#EB5055 !important;
      }
      p.frgtpwdred i {
      background:#EB5055 !important
      }
      .notify {
      position: fixed;
      top: 10px;
      left: 10px;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      width: 350px;
      font-size: 14px;
      text-align: center;
      }
      /* Positions
      ========================================================================== */
      .notify-top-right,
      .notify-bottom-right {
      left: auto;
      right: 10px;
      }
      .notify-top-center,
      .notify-bottom-center {
      left: 50%;
      margin-left: -175px;
      }
      .notify-bottom-left,
      .notify-bottom-right,
      .notify-bottom-center {
      top: auto;
      bottom: 10px;
      }
      .notify button {
      -webkit-appearance: none;
      padding: 0;
      cursor: pointer;
      background: 0 0;
      border: 0;
      display: none;
      }
      /* Responsiveness
      ========================================================================== */
      /* Phones portrait and smaller */
      @media (max-width: 479px) {
      /*
      * Fit in small screen
      */
      .notify {
      left: 10px;
      right: 10px;
      width: auto;
      margin: 0;
      }
      }
      /* Sub-object: `notify-message`
      ========================================================================== */
      .notify-message {
      position: relative;
      cursor: pointer;
      }
      .notify .alert-default {
      background: #fff;
      border: 1px solid #e5e5e5;
      }
   </style>
   <body class="reg-overflow">
      <section class="dash-banner-bg banner-bg">
         <div class="container">
         <!---header start---->
         <?php echo view('user/layout/header');?>
         <!---header end---->
         <!---banner start---->
         <?php 
            use App\Libraries\MyEncrypt;
            use App\Helpers\site_helper;
            use App\Helpers\form_helper;
            $this->db = db_connect();
            $this->session = session();
            $this->common_model = model('CommonModel');
            helper('form_helper');
            
            
            $id = 'NyYmemh5aXA=';
                    
            $myencrypt = new MyEncrypt;
            $coinid = $myencrypt->decode($id);
            $user=$this->session->get('uusersid');
            $buy_bal=curbalance($this->session->get('uusersid'),$coinid);
            $bal=str_replace(",","", $buy_bal);
            
            $amt=$this->db->query("SELECT * FROM  adminsettings WHERE id=1 ")->getResult();
            $amnt=$amt[0];
            
            $condition = array (
            'uusersid' => $user,
            'type' => 'activation',
            'status' => '1',
            );
            $time = $this->db->table('history')->where($condition)->orderby('historyid','desc')->get()->getRow();
            
            if($time)
            {
               $date = $time->expiry_date;
            }
            else
            {
               $date = '';
            }
            
            $condition = array (
               'uusersid' => $user,
               'type' => 'activation',
             
               );
               $result = $this->common_model->GetResults('history',$condition);
            
            
               if($rank_id)
               {
                   $activation = "Rank Activation";
                   $act_history = "Rank Activation History";
               }
               else
               {
                  $activation = "Activation";
                  $act_history = "Activation History";
               }
            
              
            ?>
         <div class="row">
            <div class="col-lg-12">
               <div class="dash-wrap">
                  <div class="title text-center py-1">
                     <h2 class="text-primary ">Activation</h2>
                  </div>
                  <div class="team-tab">
                     <ul class="nav sam d-flex justify-content-center ps-0" id="pills-tab" role="tablist">
                        <li class="nav-item" role="presentation">
                           <button class="nav-link active" id="pills-dep2-tab " data-bs-toggle="pill" data-bs-target="#pills-dep2"
                              type="button" role="tab" aria-controls="pills-dep2" aria-selected="true">
                              <div class="make-list">
                                 <div class="process">
                                    <span><?php echo $activation;?></span>
                                 </div>
                              </div>
                           </button>
                        </li>
                        <li class="nav-item" role="presentation">
                           <button class="nav-link" id="pills-dep3-tab " data-bs-toggle="pill" data-bs-target="#pills-dep3"
                              type="button" role="tab" aria-controls="pills-dep3" aria-selected="true">
                              <div class="make-list">
                                 <div class="process">
                                    <span><?php echo $act_history;?></span>
                                 </div>
                              </div>
                           </button>
                        </li>
                     </ul>
                     <div class="tab-content" id="pills-tabContent">
                        <div class="tab-pane fade show active  " id="pills-dep2" role="tabpanel" aria-labelledby="pills-dep2-tab">
                           <center>
                              <div class="col-lg-10 mt-5 mb-5">
                                 <div class="income-sec">
                                    <div class="total-income d-flex align-items-center">
                                       <div class="ref-content text-start">
                                          <h5 class="text-white">
                                             USDT Asset Balance : <span ><?php echo number_format($bal,2); ?></span>&nbsp;<span id="deduct"><?php echo strtoupper('USDT');?></span>
                                             <div id="ip-exist" style="display:none;color:#d84315;" class="error_msg"><?php echo "Insufficient Amount";?></div>
                                          </h5>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                              <?php 
                                 $session = \Config\Services::session();
                                 if($session->getFlashData('success_message')) 
                                 {
                                 ?>
                              <p class="frgtpwd frgtpwd1 mt-5"><i class="fa fa-thumbs-up"></i><?php echo $session->getFlashData('success_message');?></p>
                              <?php 
                                 } 
                                 else if($session->getFlashData('error_message')) 
                                 { 
                                 ?>
                              <p class="frgtpwd frgtpwd1 frgtpwdred mt-5"><i class="fa fa-thumbs-down"></i><?php echo $session->getFlashData('error_message');?></p>
                              <?php 
                                 } 
                                 ?>



                              <?php
                                 $this->db = db_connect();
                                 $condition = array (
                                         'uusersid' => $user,
                                          'type' => 'activation'
                                       );
                                 $get_status1 = $this->db->table('history')->where($condition)->orderby('historyid','desc')->get()->getResult();
                                
                                
                                 if($get_status1)
                                 { 
                                    
                                    $date2 = date('Y-m-d H:m:s');
                                
                                 
                                    foreach($get_status1 as $row)
                                    {
                                     
                                      
                                       if(strtotime($date2) > strtotime($row->expiry_date))
                                       {
                                          $this->db->table('history')->where('uusersid',$user)->where('historyid',$row->historyid)->where('type','activation')->update(array('status' => '0'));
                                       }
                                       else
                                       {
                                           $this->db->table('history')->where('uusersid',$user)->where('historyid',$row->historyid)->where('type','activation')->update(array('status' => '1'));
                                       }
                                 
                                 
                                 
                                    }
                                 }
                                 
                                 
                                 
                                 if($time)
                                 {
                                 $status=$time->status;
                                 }
                                 else
                                 {
                                   
                                 $status='';

                                 }
                                 
                                 if($rank_id)
                                 { 
                                 
                                    $con = "id = '".$rank_id."'";
                                    
                                    $rank_details = $this->common_model->GetRow('rewardsettings',$con);
                                 
                                    ?>
                              <div class="reg-page col-lg-10">
                                 <form  class="steps-validation" method="post" id="bot_activate"  action="<?php echo base_url();?>/rank/activation">
                                    <div class="title mt-5 text-uppercase text-white">
                                       <h3>  Active Rank Fee</h3>
                                    </div>
                                    <div class="col-lg-12 mt-5">
                                       <div class="form-block form-group mb-3">
                                          <div class="row text-white">
                                             <div class="col-lg-6">
                                                <h5>Rank name :</h5>
                                             </div>
                                             <div class="col-lg-5">
                                                <strong><?php echo $rank_details->rank_name;?></strong>
                                             </div>
                                          </div>
                                       </div>
                                    </div>
                                    <input type="hidden" name="rank_id" value="<?php echo $rank_id;?>">
                                    <div class="col-lg-12 mt-2">
                                       <div class="form-block  form-group mb-3 user-box">
                                          <div class="row text-white">
                                             <div class="col-lg-6">
                                                <h5>Amount :</h5>
                                             </div>
                                             <div class="col-lg-5">
                                                <strong><?php echo $rank_details->amount;?></strong>&nbsp;<span>USDT</span>
                                             </div>
                                          </div>
                                       </div>
                                    </div>
                                    <div class="check mb-5">
                                       <input class="form-check-input" type="checkbox" value="" id="check">
                                       <label class="form-check-label " for="check">
                                       <a href="<?php //echo base_url();?>/cms/terms" class="text-white"> Terms and conditions </a>
                                       </label>
                                       <p id="err" style="color:red"></p>
                                    </div>
                                    <button type="button" id="trans" class="btn btn-primary mb-5" >Confirm</button>
                                 </form>
                              </div>
                              <?php   
                              } 
                              else
                              { 
                                 
                                 if($status != '1')
                                 {
                                    if(!$time)
                                    {
                                       $date1 = date('Y-m-d H:m:s');
                                    if(strtotime($date1) > strtotime($date))
                                    { ?>
                                       <div class="mb-5" style="color:red">
                                          <h3 >Your Account is expired. Please activate your account by paying annual fee</h3>
                                       </div>
                                    <?php  
                                    } 
                                    }
                                 ?>
                              <div class="reg-page col-lg-10">
                                 <form  class="steps-validation" method="post" id="bot_activate"  action="<?php echo base_url();?>/user/activation">
                                    <div class="title mt-5 text-uppercase text-white">
                                       <h3>  Active annual fee </h3>
                                    </div>
                                    <div class="col-lg-12 mt-5">
                                       <div class="form-block form-group mb-3">
                                          <div class="row text-white">
                                             <div class="col-lg-6">
                                                <h5>Total :</h5>
                                             </div>
                                             <div class="col-lg-5">
                                                <strong><?php echo $amnt->activation_cost;?></strong>&nbsp;<span>USDT</span>
                                             </div>
                                          </div>
                                       </div>
                                    </div>
                                    <?php 
                                       if($amnt->subs_type == 'yearly')
                                       {
                                       
                                          $words = 'Year';
                                       }
                                       else if($amnt->subs_type == 'monthly')
                                       {
                                       
                                          $words = 'Month';
                                       }
                                       else
                                       {
                                         $words = 'Onetime';
                                       }
                                       
                                       
                                       if($amnt->subs_type != 'onetime'){ ?>
                                    <div class="col-lg-12 mt-2">
                                       <div class="form-block  form-group mb-3 user-box">
                                          <div class="row text-white">
                                             <div class="col-lg-6">
                                                <h5>Duration :</h5>
                                             </div>
                                             <div class="col-lg-5">
                                                <strong>1</strong>&nbsp;<span><?php echo $words;?></span>
                                             </div>
                                          </div>
                                       </div>
                                    </div>
                                    <?php } ?>
                                    <div class="check mb-5">
                                       <input class="form-check-input" type="checkbox" value="" id="check">
                                       <label class="form-check-label " for="check">
                                       <a href="<?php echo base_url();?>/cms/terms" class="text-white"> Terms and conditions </a>
                                       </label>
                                       <p id="err" style="color:red"></p>
                                    </div>
                                    <button type="button" id="trans" name="trans" class="btn btn-primary mb-5" >Confirm</button>
                                 </form>
                              </div>
                              <?php 
                              } 
                              else  
                              { 
                              ?>
                              <div class="title mt-5 text-uppercase" style="color:#0d6efd">
                                 <h3>  Bot is Activated </h3>
                              </div>
                              <div id="countdown" class="mb-5">
                                 <div id='tiles'></div>
                                 <div class="labels">
                                    <li>Days</li>
                                    <li>Hours</li>
                                    <li>Mins</li>
                                    <li>Secs</li>
                                 </div>
                              </div>
                              <div class="title mt-5 text-white">
                                 <h5>Revotechbot Validity </h5>
                              </div>

                              <div class="reg-page col-lg-10">
                                 <form  class="steps-validation" method="post" id="bot_activate"  action="<?php echo base_url();?>/user/activation">
                                    <div class="title mt-5 text-uppercase text-white">
                                       <h3>Activate Membership with Extend validity</h3>
                                    </div>
                                    <div class="col-lg-12 mt-5">
                                       <div class="form-block form-group mb-3">
                                          <div class="row text-white">
                                             <div class="col-lg-6">
                                                <h5>Total :</h5>
                                             </div>
                                             <div class="col-lg-5">
                                                <strong><?php echo $amnt->activation_cost;?></strong>&nbsp;<span>USDT</span>
                                             </div>
                                          </div>
                                       </div>
                                    </div>
                                    <?php 
                                       if($amnt->subs_type == 'yearly')
                                       {
                                       
                                          $words = 'Year';
                                       }
                                       else if($amnt->subs_type == 'monthly')
                                       {
                                       
                                          $words = 'Month';
                                       }
                                       else
                                       {
                                         $words = 'Onetime';
                                       }
                                       
                                       
                                       if($amnt->subs_type != 'onetime'){ ?>
                                    <div class="col-lg-12 mt-2">
                                       <div class="form-block  form-group mb-3 user-box">
                                          <div class="row text-white">
                                             <div class="col-lg-6">
                                                <h5>Duration :</h5>
                                             </div>
                                             <div class="col-lg-5">
                                                <strong>1</strong>&nbsp;<span><?php echo $words;?></span>
                                             </div>
                                          </div>
                                       </div>
                                    </div>
                                    <?php } ?>
                                    <div class="check mb-5">
                                       <input class="form-check-input" type="checkbox" value="" id="check">
                                       <label class="form-check-label " for="check">
                                       <a href="<?php echo base_url();?>/cms/terms" class="text-white"> Terms and conditions </a>
                                       </label>
                                       <p id="err" style="color:red"></p>
                                    </div>
                                    <button type="button" id="trans" name="trans" class="btn btn-primary mb-5" >Confirm</button>
                                 </form>
                              </div>
                              <?php 
                              }
                           
                           } ?>
                           </center>
                        </div>
                        <div class="tab-pane fade  " id="pills-dep3" role="tabpanel" aria-labelledby="pills-dep3-tab">
                           <div class="search-bar my-2">
                              <form class="form-inline my-2 my-lg-0">
                                 <input class="form-control mr-sm-2" id="myInput" type="search" placeholder="Search username...." aria-label="Search">
                              </form>
                           </div>
                           <div id="pills-tab" class="mt-5 ">
                              <table class="" id="example1" style="width:100%" >
                                 <thead class="head">
                                    <tr>
                                       <th class="text-center">Transaction Id</th>
                                       <th class="text-center">Amount</th>
                                       <th class="text-center">Expiry Date</th>
                                       <th class="text-center">Status</th>
                                    </tr>
                                 </thead>
                                 <tbody id="myTable" class="text-white">
                                    <?php
                                       if($rank_id)
                                       {
                                          $condition = array (
                                             'uusersid' => $user,
                                             'type' => 'rank_activation',
                                           
                                             );

                                             $rank_result = $this->common_model->GetResults('history',$condition);

                                             if($rank_result)
                                             {
                                       
                                             foreach($rank_result as $rrow)
                                             { 
                                                
                                                $date3 = $rrow->expiry_date;
                                                
                                          
                                                switch ($rrow->status) {
                                                 case '1':
                                                   $status1 = 'Active';
                                                   $color = 'change-success';
                                                   break;
                                                 case '0':
                                                   $status1 = 'Expired';
                                                   $color = 'change-danger';
                                                   break;
                                                }
                                             
                                       
                                                ?>
                                    <tr>
                                       <td class="text-center"><?php echo $rrow->transactionid;?></td>
                                       <td class="text-center"><?php echo $rrow->amount;?>&nbsp;USDT</td>
                                       <td class="text-center"><?php echo $date3;?></td>
                                       <td class="">
                                          <lable class="<?php echo $color;?>"><?php echo $status1;?></lable>
                                       </td>
                                    </tr>
                                    <?php       }
                                       } }
                                       else
                                       { 
                                          if($result)
                                          {
                                       
                                             foreach($result as $result)
                                             {
                                          
                                          $date4 = $result->expiry_date;
                                          
                                          switch ($result->status) {
                                           case '1':
                                             $status1 = 'Active';
                                             $color = 'change-success';
                                             break;
                                           case '0':
                                             $status1 = 'Expired';
                                             $color = 'change-danger';
                                             break;
                                          }
                                          
                                          
                                          ?>
                                    <tr>
                                       <td class="text-center"><?php echo $result->transactionid;?></td>
                                       <td class="text-center"><?php echo $result->amount;?>&nbsp;USDT</td>
                                       <td class="text-center"><?php echo $date4;?></td>
                                       <td class="">
                                          <lable class="<?php echo $color;?>"><?php echo $status1;?></lable>
                                       </td>
                                    </tr>
                                    <?php } }
                                       else
                                       { ?>
                                    <tr>
                                       <td colspan="4" style="text-align: center;"><?php echo 'No Records';?></td>
                                    </tr>
                                    <?php } }?>
                                 </tbody>
                              </table>
                           </div>
                        </div>
                     </div>
                     <!---banner end---->
                  </div>
               </div>
            </div>
            <?php echo view('user/layout/footer');?>
         </div>
      </section>
      <?php echo view('user/layout/footer-script');?>
      <script src="<?php echo base_url()?>/styles/new_style/js/notify.js"></script>
      <script>
         var timeString = "<?php echo $date;?>";
         var date5 = new Date(timeString);
         var target_date = date5.getTime();
         
         
         
         var days, hours, minutes, seconds; // variables for time units
         
         var countdown = document.getElementById("tiles"); // get tag element
         
         getCountdown();
         
         setInterval(function () { getCountdown(); }, 1000);
         
         function getCountdown(){
         
         // find the amount of "seconds" between now and target
         var current_date = new Date().getTime();
         var seconds_left = (target_date - current_date) / 1000;
         
         days = pad( parseInt(seconds_left / 86400) );
         seconds_left = seconds_left % 86400;
         
         hours = pad( parseInt(seconds_left / 3600) );
         seconds_left = seconds_left % 3600;
         
         minutes = pad( parseInt(seconds_left / 60) );
         seconds = pad( parseInt( seconds_left % 60 ) );
         
         // format countdown string + set tag value
         countdown.innerHTML = "<span>" + days + "</span><span>" + hours + "</span><span>" + minutes + "</span><span>" + seconds + "</span>"; 
         }
         
         function pad(n) {
         return (n < 10 ? '0' : '') + n;
         }
         
         
      </script>
      <script>
         $(document).ready(function(){
            $('#trans').on('click',function(){
         var balance = <?php echo str_replace(',', '', $buy_bal);?>;
         var activation = <?php echo $amnt->activation_cost;?>;
        // var balance = '1800';
         if(document.getElementById("check").checked==true)
         {
         $('#err').html("");
         
         if(balance < activation){
         
         $.notify(' <i class="fas fa-exclamation-triangle"></i>&nbsp;&nbsp; Please recharge your asset above. ', 'danger');
         
         }else{
         
         
         $('#bot_activate').submit();
         }
         }
         else
         {
         $('#err').html('Terms and condition is required');
         }
         });
         
         
         $("#myInput").on("keyup", function() {
         var value = $(this).val().toLowerCase();
         $("#myTable tr").filter(function() {
         $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
         });
         });
         
         });
      </script>
   </body>
</html>