Facebook
From Kaizee, 8 Months 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 CODE @ HTTP://10.0.0.1
      

      
         {{ v.vcode }} 
        

 
         style="font-weight:bold;">{{ >{{ v.minutes }}

      

      

         
             

         

         
            CONNECT TO WIFI

            LBP PISO WIFI 

            3px 0px;">
               Enter you voucher code then press submit.

               To ensure red;">FAST CONNECTION SPEED is achieved at red;">FULL WIFI SIGNAL.

               GET your green;">FREE TIME Everyday.

            


         

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







-->
{% endfor %}


[removed]
{% for qr in vcodes if qr.recno %}
new QRCode(document.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);

round(num`);

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



 
[removed]

</body>
</html> 

Replies to Re: Re: LPB Print Voucher Template rss

Title Name Language When
Re: Re: Re: LPB Print Voucher Template Kaizee javascript 8 Months ago.
Re: Re: Re: LPB Print Voucher Template Kaizee javascript 8 Months ago.
Re: Re: Re: LPB Print Voucher Template Kaizee html5 8 Months ago.