Facebook
From Almirah, 4 Weeks ago, written in HTML5.
This paste is a reply to Re: LPB Print Voucher Template from Emerald Baboon - go back
Embed



         








</style>
</head>
<body>

{% for v in vcodes if v.recno %}


   
      
         ENTER 
<div class="print">
   <div class="left-block">
      <div class="top-block">
         <span>ENTER 
CODE @ HTTP://10.0.0.1
      

      
         {{ 1</span>
      </div>
      <div class="code-block">
         <span class="code-style">{{ 
v.vcode }} 
        
         }}</span> <br> 
         <span id="vtime-{{ 
v.vcode }}" style="font-weight:bold;">{{ }}" style="font-weight:bold;">{{ v.minutes }}

      

      

         
            }}</span><br>
      </div>
      <div>
         <div class="qrcode">
            <div id="qrcode-{{ 
v.recno }}"> 

         

         
            CONNECT }}"> </div>
         </div>
         <div class="info-block">
            <span class="ft-bold ft-xs">CONNECT 
TO WIFI

            WIFI</span><br>
            <span class="ft-blue 
ft-bold ft-sm">LBP ft-sm">LBP PISO WIFI 

            WIFI</span> <br>
            <p style="margin: 
3px 0px;">
               Enter 
0px;">
               <span class="ft-xs">Enter 
you voucher code then press submit.

               To 
</span><br>
               <span class="ft-xs">To 
ensure FAST <span style="color: red;">FAST CONNECTION SPEED SPEED</span> is achieved at FULL <span style="color: red;">FULL WIFI SIGNAL.

               GET 
SIGNAL</span>.</span><br>
               <span class="ft-xs ft-italic">GET 
your FREE TIME <span style="color: green;">FREE TIME</span> Everyday.

            


         

      
   
   </span><br>
            </p>
         </div>
      </div>
   </div>
   <div class="right-block" style="background-color:{{ 
((v.amount == 5)? "#00B0F0":((v."#00B0F0":((v.amount == 10)? "#00B0F0":((v."#00B0F0":((v.amount == 20)? "#4D269A":((v."#4D269A":((v.amount == 50)? "#FF66CC":((v."#FF66CC":((v.amount == 100)? "#FF0000":((v."#FF0000":((v.amount == 300)? "#000000":"#666666"))))))}};">
         Php 
"#000000":"#666666"))))))}};">
         <span class="rotate" style="font-weight:bold;">Php 
{{ v.amount }}
   







-->
{% endfor %}


<script type="text/javascript">
{% for qr in vcodes if qr.recno %}
new QRCode(document.getElementById("qrcode-{{ getElementById("qrcode-{{ qr.recno }}"), }}"), { text: "{{ "{{ qr.vcode }}", }}", width: 40, height: 40});
{% endfor %}
function ConvertMinutes(num){
  d = Math.floor(num/1440); // 60*24
  h = Math.floor((num-(d*1440))/60);
  m = Math.round(num%60);

  if(d>0){
    
round(num`);

  if(d>0){
    
return(((d 1)? d+" d+" DAYS ":d+" ":d+" DAY ")+((h > ")+((h > 0)? h+" h+" HOURS ":"")+((m > ":"")+((m > 0)? m+" MINUTES":""));
m+" MINUTES":""));
  }else{
    return(((h 1)? h+" h+" HOURS ":h+" ":h+" HOUR ")+((m > ")+((m > 0)? m+" MINUTES":""));
m+" MINUTES":""));
  }
}
{% for v in vcodes if v.recno %}
var tspan = document.getElementById("vtime-{{ getElementById("vtime-{{ v.vcode }}").innerHTML;
}}")[removed];
var dval = parseInt(tspan);
document.getElementById("vtime-{{ getElementById("vtime-{{ v.vcode }}").innerHTML }}")[removed] = ConvertMinutes(dval);
{% endfor %}



 
</script>

</body>
</html>