Create index.html

This commit is contained in:
tsrman 2025-01-14 18:07:38 +07:00 committed by GitHub
parent 260beca206
commit 8479a0d0ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

43
alpha/index.html Normal file
View file

@ -0,0 +1,43 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Альфа РБ перевод по кор счету</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="qrcode.js"></script>
</head>
<body>
<label for="fname">Полное ФИО</label>
<input id="textFIO" type="text" value="" style="width:50%" /><br />
<label for="fname">Номер счета</label>
<input id="textACC" type="text" value="" style="width:50%" /><br />
<input id="text" type="button" value="Сгенерировать" /><br />
<div id="qrcode" style="width:100px; height:100px; margin-top:15px;"></div>
<script type="text/javascript">
text1 = "ST00012|Name=ЗАО \"Альфа-Банк\"|PersonalAcc=30111810900000000504|BankName=ПАО \"СБЕРБАНК\"|BIC=044525225|CorrespAcc=30101810400000000225|Sum=10000|Purpose=Получатель ";
text2 = " Счет ";
text3 = " Перевод собственных средств|PayeeINN=7707083893|KPP=540602001";
var qrcode = new QRCode(document.getElementById("qrcode"), {
width : 512,
height : 512
});
function makeCode () {
// var elText = document.getElementById("text");
var elText = text1 + document.getElementById("textFIO").value + text2 + document.getElementById("textACC").value + text3;
qrcode.makeCode(elText);
}
$(document).ready(function() {
$("#text").click(function(){
makeCode();
});
});
</script>
</body>