Created
January 8, 2019 01:31
-
-
Save jjhesk/781679694dd3f249b535440ffa8e8ab6 to your computer and use it in GitHub Desktop.
// source https://jsbin.com/zuzadol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style id="jsbin-css"> | |
/* Now with ugly css! */ | |
textarea { | |
width: 90%; | |
} | |
input {} button { | |
font-size: 2em; | |
padding: 1%; | |
margin: 2%; | |
} | |
.cont { | |
margin-left: 3%; | |
} | |
</style> | |
<h1>BBGC Verifier</h1> | |
<div class="cont"> | |
<textarea id="randomize" placeholder="Paste from hash textbox"></textarea> | |
<br /> | |
<button id="verify">Verify</button> | |
</div> | |
<h2>Results:</h2> | |
<div class="cont"> | |
<p id="results"></p> | |
</div> | |
<script id="jsbin-javascript"> | |
function check(event) { | |
var randomize = document.getElementById('randomize').value; | |
// var pattern = /"(.+?)" "(.+?)" "(.+?)" "(.+?)"/; | |
var ss, ssh, cs, nb, sn; | |
//console.log(event); | |
//console.log(randomize); | |
clear(); | |
if (randomize.length > 64) { | |
ss = randomize.substr(-8); | |
ssh = converDec(ss); | |
cs = ssh / 100000; | |
console.log(ss, ssh, cs); | |
println(cs); | |
} | |
} | |
function converDec(s) { | |
var n = parseInt(s, 16).toString(10); | |
return parseFloat(n); | |
} | |
function clear() { | |
results.innerHTML = ''; | |
} | |
function println(s) { | |
results.innerHTML = s; | |
} | |
var results = document.getElementById('results'); | |
document.getElementById('verify').addEventListener('click', check); | |
</script> | |
<script id="jsbin-source-css" type="text/css">/* Now with ugly css! */ | |
textarea { | |
width: 90%; | |
} | |
input {} button { | |
font-size: 2em; | |
padding: 1%; | |
margin: 2%; | |
} | |
.cont { | |
margin-left: 3%; | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript"> function check(event) { | |
var randomize = document.getElementById('randomize').value; | |
// var pattern = /"(.+?)" "(.+?)" "(.+?)" "(.+?)"/; | |
var ss, ssh, cs, nb, sn; | |
//console.log(event); | |
//console.log(randomize); | |
clear(); | |
if (randomize.length > 64) { | |
ss = randomize.substr(-8); | |
ssh = converDec(ss); | |
cs = ssh / 100000; | |
console.log(ss, ssh, cs); | |
println(cs); | |
} | |
} | |
function converDec(s) { | |
var n = parseInt(s, 16).toString(10); | |
return parseFloat(n); | |
} | |
function clear() { | |
results.innerHTML = ''; | |
} | |
function println(s) { | |
results.innerHTML = s; | |
} | |
var results = document.getElementById('results'); | |
document.getElementById('verify').addEventListener('click', check);</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Now with ugly css! */ | |
textarea { | |
width: 90%; | |
} | |
input {} button { | |
font-size: 2em; | |
padding: 1%; | |
margin: 2%; | |
} | |
.cont { | |
margin-left: 3%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function check(event) { | |
var randomize = document.getElementById('randomize').value; | |
// var pattern = /"(.+?)" "(.+?)" "(.+?)" "(.+?)"/; | |
var ss, ssh, cs, nb, sn; | |
//console.log(event); | |
//console.log(randomize); | |
clear(); | |
if (randomize.length > 64) { | |
ss = randomize.substr(-8); | |
ssh = converDec(ss); | |
cs = ssh / 100000; | |
console.log(ss, ssh, cs); | |
println(cs); | |
} | |
} | |
function converDec(s) { | |
var n = parseInt(s, 16).toString(10); | |
return parseFloat(n); | |
} | |
function clear() { | |
results.innerHTML = ''; | |
} | |
function println(s) { | |
results.innerHTML = s; | |
} | |
var results = document.getElementById('results'); | |
document.getElementById('verify').addEventListener('click', check); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment