remove all JS libs and use plain JS
This commit is contained in:
parent
4ff6233df6
commit
e8e5a14494
7
bootstrap/js/bootstrap.min.js
vendored
7
bootstrap/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
12
index.html
12
index.html
|
@ -5,25 +5,25 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Abstimm-ID Rechner</title>
|
<title>Abstimm-ID Rechner</title>
|
||||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z">
|
<link rel="stylesheet" href="bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z">
|
||||||
<link rel="icon" href="https://blog.netzbegruenung.de/files/2017/04/favicon_32.png" type="image/png" />
|
<link rel="icon" href="https://blog.netzbegruenung.de/files/2017/04/favicon_32.png" type="image/png" />
|
||||||
<link rel="shortcut icon" href="https://blog.netzbegruenung.de/files/2017/04/favicon_32.png" type="image/png" />
|
<link rel="shortcut icon" href="https://blog.netzbegruenung.de/files/2017/04/favicon_32.png" type="image/png" />
|
||||||
</head>
|
</head>
|
||||||
<body style="background: #fff;">
|
<body style="background: #fff;">
|
||||||
<script>
|
<script>
|
||||||
function calculate_hash() {
|
function calculate_hash() {
|
||||||
$("#hash_target").html("Berechne, bitte warten ...");
|
document.getElementById("hash_target").innerHTML = "Berechne, bitte warten ...";
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
argon2.hash({
|
argon2.hash({
|
||||||
pass: $("#input_name").val().toLowerCase(),
|
pass: document.getElementById("input_name").value.toLowerCase(),
|
||||||
salt: "Abstimmung " + String($("#vote-round").val()),
|
salt: "Abstimmung " + String(document.getElementById("vote-round").value),
|
||||||
time: 1000,
|
time: 1000,
|
||||||
mem: 4096,
|
mem: 4096,
|
||||||
hashLen: 32,
|
hashLen: 32,
|
||||||
parallelism: 1,
|
parallelism: 1,
|
||||||
type: argon2.ArgonType.Argon2id
|
type: argon2.ArgonType.Argon2id
|
||||||
}).then(function(h){
|
}).then(function(h){
|
||||||
$("#hash_target").html("<p class='font-weight-bold'>Abstimm-ID:</p><code>" + String(h.hashHex) + "</code>");
|
document.getElementById("hash_target").innerHTML = "<p class='font-weight-bold'>Abstimm-ID:</p><code>" + String(h.hashHex) + "</code>";
|
||||||
}).catch(e => console.error(e.message, e.code));
|
}).catch(e => console.error(e.message, e.code));
|
||||||
}, 5);
|
}, 5);
|
||||||
}
|
}
|
||||||
|
@ -84,8 +84,6 @@
|
||||||
<span class="text-muted"><a href="https://git.netzbegruenung.de/NB-Public/abstimm-id/">Quellcode</a> — <a href="https://blog.netzbegruenung.de/impressum/">Impressum</a></span>
|
<span class="text-muted"><a href="https://git.netzbegruenung.de/NB-Public/abstimm-id/">Quellcode</a> — <a href="https://blog.netzbegruenung.de/impressum/">Impressum</a></span>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="jquery-1.12.4.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"></script>
|
|
||||||
<script src="bootstrap/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"></script>
|
|
||||||
<script src="node_modules/argon2-browser/lib/argon2.js" integrity="sha384-Z86p2Vj2/KfDVUq4dbOvqv+BH37O7bui9MZj38/J7SBN9YBeJNoWVzmq7NdtLmAb"></script>
|
<script src="node_modules/argon2-browser/lib/argon2.js" integrity="sha384-Z86p2Vj2/KfDVUq4dbOvqv+BH37O7bui9MZj38/J7SBN9YBeJNoWVzmq7NdtLmAb"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
5
jquery-1.12.4.min.js
vendored
5
jquery-1.12.4.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue