Chhwe (chhwe) wrote,
Chhwe
chhwe

Category:

объединить Моцарта съ Вивальди – это смѣлый ходъ!

может нужно кому (референс для финских банков)

<!-- testing whether we can use JS here 				-->
<p id="viitenumero"></p>

<!-- please commence making reference number 			-->
<!-- our numbers contain a single '-' after the year number 	-->
<!-- so 2021-1234 for the client number and 2021-2009 		-->
<!-- for the invoice number 					-->
<!-- 972406 (h) 2021.143						-->
<script>
<!-- please prepare yourself for the real world 			-->
var invoiceNumber=String(%NUMBER%);
var customerNumber=String(%CLIENTNUMBER%);
<!-- stop preparing for the real world 				-->

var bareClient=customerNumber.replace("-","");
var bareNumber=invoiceNumber.replace("-","");

<!-- chopping the sequence from right to left and  		-->
<!-- multiplying by 7, 3, 1, 7, 3, 1 etc 				-->
var bareTrunk=bareClient+bareNumber;

var tarkisteN=0;
var i;
var bareLen=bareTrunk.length;
for (i = bareLen; ; ) {
  i = i - 1;
  if (i < 0) {break;}
  tarkisteN += parseInt(bareTrunk.substr(i,1))*7;
  if (i > 0) {
  	i = i - 1;
  	tarkisteN += parseInt(bareTrunk.substr(i,1))*3;
  	if (i > 0) {
  		i = i - 1;
  		tarkisteN += parseInt(bareTrunk.substr(i,1))*1;
  		} else {break;}
  	} else {break;}
  	
};
<!-- abstain from chopping				-->
var upTown=Math.ceil(tarkisteN/10)*10;
tarkisteN=upTown-tarkisteN;
<!-- chopping into series of 5 numbers from left to right 	-->
var coolVIITE=bareTrunk+tarkisteN;
var coolLen=coolVIITE.length;
var hotVIITE="";

for (i = 0 ; i < 12 ; i++) {
	hotVIITE+=coolVIITE.substr(i,1);
	if ((Math.trunc((i+1)/5)-(i+1)/5)==0)
		{hotVIITE+=" ";} 
	};

<!-- abstain from chopping				-->
document.getElementById("viitenumero").innerHTML = hotVIITE;
document.getElementById("viitenumero").style.color = "red";
</script> 
<!-- please abstain from making reference numbers 		-->
Tags: engelskan, intercal, mad skillz, prograsm, ryskan
Subscribe

Recent Posts from This Journal

  • Post a new comment

    Error

    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments