Created
January 8, 2019 01:32
-
-
Save chilljello/754ab76576ba3b4097c4352f4c28af2c to your computer and use it in GitHub Desktop.
verifier
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); |
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
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment