This repository has been archived on 2021-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
pyRCV2/test.html

24 lines
565 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>pyRCV2 test</title>
</head>
<body>
<input type="file" id="bltFile">
<button onclick="clickBtn();">OK</button>
<script src="http://peterolson.github.com/BigRational.js/BigInt_BigRat.min.js"></script>
<script src="bundle.js"></script>
<script>
async function clickBtn() {
let bltFile = document.getElementById('bltFile').files[0];
let text = await bltFile.text();
let election = py.pyRCV2.blt.readBLT(text);
console.log(election);
}
</script>
</body>
</html>