Skip to content

Commit

Permalink
Tidy the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnRivs committed Dec 3, 2015
1 parent bc3c728 commit 25f1897
Show file tree
Hide file tree
Showing 6 changed files with 274 additions and 215 deletions.
44 changes: 23 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
BitcoinGrind
============

This is a bitcoin faucet rotator.
More info on Bitcoin:
http://bitcoin.org/en/you-need-to-know

This rotator completely runs off of javascript and includes several features such as jumping, linking, reloading, and auto-fill-in's, in addition to previous and next page buttons.

You can easily add/remove faucets by modifying the URL's within the array. Follow the same syntax, and make sure to strip the URL of all query strings.

Just embed the javascript file into your html webpage and add the buttons to utilize it. Use the attribute:
onClick="function()"
Replace function() with either next(), prev(), jumpTo(), or link(). Reload is done with changeSrc().

All the javascript does is change the src attribute of an iFrame element with an id of "fm".

To test it out:
http://bitcoingrind.netne.net

Donations:1McYLx1YbnUZ5fRPw5Y24PBBQVutf89U6m
**NOTE: this is just a tidy version of the repo**

BitcoinGrind
============

This is a bitcoin faucet rotator.
More info on Bitcoin:
http://bitcoin.org/en/you-need-to-know

This rotator completely runs off of javascript and includes several features such as jumping, linking, reloading, and auto-fill-in's, in addition to previous and next page buttons.

You can easily add/remove faucets by modifying the URL's within the array. Follow the same syntax, and make sure to strip the URL of all query strings.

Just embed the javascript file into your html webpage and add the buttons to utilize it. Use the attribute:
onClick="function()"
Replace function() with either next(), prev(), jumpTo(), or link(). Reload is done with changeSrc().

All the javascript does is change the src attribute of an iFrame element with an id of "fm".

To test it out:
http://bitcoingrind.netne.net

Donations:1McYLx1YbnUZ5fRPw5Y24PBBQVutf89U6m
116 changes: 58 additions & 58 deletions gin.htm → default.html
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<title>Origin</title>
<link rel="icon" type="image/png" href="favicon.png" />
<style>
div {background-color:#122f45;margin-left:100px;margin-right:100px;border-top-left-radius:20px;border-bottom-right-radius:20px}
p {font-family:Arial;font-size:20px;margin-left:10px}
a {color:#cccc99}
li {font-family:Arial;font-size:20px;margin-left:10px;color:#FACC2E}
</style>
</head>
<body bgcolor="#191919">

<div style="cursor:pointer" onclick="toggle_visibility('list2');">
<p style="color:#cccc99">What is bitcoin?</p>
<p style="color:#FACC2E">
Bitcoin is a form of currency widely used on the internet. It relies on modern cryptography and has no central authority; all payments are processed by the users. It has a level of anonymity not seen in conventional forms of banking. It also requires almost no setup. Click to learn more.
</p>
</div>
<div id="list2" class="alist" style="display:none;cursor:pointer" onclick="toggle_visibility('list1');">
<center><iframe src="http://player.vimeo.com/video/63502573" width="500" height="281" style="border-width:10px;border-style:solid;border-color:#122f45;"></iframe></center>
</div>


<div>
<p style="color:#cccc99">How do I get started?</p>
<p style="color:#FACC2E">
To set up a bitcoin wallet, simply go to <a href="https://coinbase.com/?r=52baf40412873a5222000044&utm_campaign=user-referral&src=referral-link">CoinBase</a> and sign up.<br />
There are more alternatives <a href="http://explorebtc.netne.net/2.htm">here</a>.
</p>
</div>

<div>
<p style="color:#cccc99">How do I use this site?</p>
<p style="color:#FACC2E">
Bitcoin faucets are the easiest ways to get started with bitcoin. A faucet is a website that can give you up to a couple of cents worth of bitcoin. This site simply binds them together to make them easy to access.<br />
Just enter your bitcoin address, and complete the captcha, and they will be added to a temporary account waiting to be withdrawn. Once you are done, click the <span style="border:solid;border-width:1px;border-color:#cccc99;color:#cccc99">NEXT SITE</span> at the top bar to go to the next faucet.
</p>
</div>

<div style="background-color:#25313c">
<p style="color:#cccc99">Observe that:</p>
<ul>
<li>You can click bitcoin symbol to enter your bitcoin address for automatic fill-ins on supported sites.</li>
<li>The vertical bar next to <span style="border:solid;border-width:1px;border-color:#cccc99;color:#cccc99">NEXT SITE</span> sends you to the previous page.</li>
<li>The <span style="border:solid;border-width:1px;border-color:#cccc99;color:#cccc99">JUMP</span> button can be used for skipping a large number of faucets.</li>
<li>Broken faucets are removed within two weeks.</li>
</ul>
</div>

<div style="background-color:#862200">
<p style="color:#FACC2E;font-size:10px">We aim to provide a unique faucet rotator, flexible, open source, and with minimal advertisements. If you have any questions, suggestions, concerns, criticism, faucets, or if you just want to thank us, pop us an email at <a style="color:#cccc99" href="mailto:explorebtc@gmail.com?Subject=Feedback." target="_top">explorebtc@gmail.com</a>.</p>
</div>
<script>
function toggle_visibility(id) { var list = document.getElementsByClassName("alist"); for (var i = 0; i < list.length; i++) { list[i].style.display = 'none'; } var e = document.getElementById(id); if(e.style.display == 'block') { e.style.display = 'none'; } else { e.style.display = 'block'; }}
</script>
</body>
<!DOCTYPE html>
<html>
<head>
<title>Origin</title>
<link rel="icon" type="image/png" href="favicon.png" />
<style>
div {background-color:#122f45;margin-left:100px;margin-right:100px;border-top-left-radius:20px;border-bottom-right-radius:20px}
p {font-family:Arial;font-size:20px;margin-left:10px}
a {color:#cccc99}
li {font-family:Arial;font-size:20px;margin-left:10px;color:#FACC2E}
</style>
</head>
<body bgcolor="#191919">

<div style="cursor:pointer" onclick="toggle_visibility('list2');">
<p style="color:#cccc99">What is bitcoin?</p>
<p style="color:#FACC2E">
Bitcoin is a form of currency widely used on the internet. It relies on modern cryptography and has no central authority; all payments are processed by the users. It has a level of anonymity not seen in conventional forms of banking. It also requires almost no setup. Click to learn more.
</p>
</div>
<div id="list2" class="alist" style="display:none;cursor:pointer" onclick="toggle_visibility('list1');">
<center><iframe src="http://player.vimeo.com/video/63502573" width="500" height="281" style="border-width:10px;border-style:solid;border-color:#122f45;"></iframe></center>
</div>


<div>
<p style="color:#cccc99">How do I get started?</p>
<p style="color:#FACC2E">
To set up a bitcoin wallet, simply go to <a href="https://coinbase.com/?r=52baf40412873a5222000044&utm_campaign=user-referral&src=referral-link">CoinBase</a> and sign up.<br />
There are more alternatives <a href="http://explorebtc.netne.net/2.htm">here</a>.
</p>
</div>

<div>
<p style="color:#cccc99">How do I use this site?</p>
<p style="color:#FACC2E">
Bitcoin faucets are the easiest ways to get started with bitcoin. A faucet is a website that can give you up to a couple of cents worth of bitcoin. This site simply binds them together to make them easy to access.<br />
Just enter your bitcoin address, and complete the captcha, and they will be added to a temporary account waiting to be withdrawn. Once you are done, click the <span style="border:solid;border-width:1px;border-color:#cccc99;color:#cccc99">NEXT SITE</span> at the top bar to go to the next faucet.
</p>
</div>

<div style="background-color:#25313c">
<p style="color:#cccc99">Observe that:</p>
<ul>
<li>You can click bitcoin symbol to enter your bitcoin address for automatic fill-ins on supported sites.</li>
<li>The vertical bar next to <span style="border:solid;border-width:1px;border-color:#cccc99;color:#cccc99">NEXT SITE</span> sends you to the previous page.</li>
<li>The <span style="border:solid;border-width:1px;border-color:#cccc99;color:#cccc99">JUMP</span> button can be used for skipping a large number of faucets.</li>
<li>Broken faucets are removed within two weeks.</li>
</ul>
</div>

<div style="background-color:#862200">
<p style="color:#FACC2E;font-size:10px">We aim to provide a unique faucet rotator, flexible, open source, and with minimal advertisements. If you have any questions, suggestions, concerns, criticism, faucets, or if you just want to thank us, pop us an email at <a style="color:#cccc99" href="mailto:explorebtc@gmail.com?Subject=Feedback." target="_top">explorebtc@gmail.com</a>.</p>
</div>
<script>
function toggle_visibility(id) { var list = document.getElementsByClassName("alist"); for (var i = 0; i < list.length; i++) { list[i].style.display = 'none'; } var e = document.getElementById(id); if(e.style.display == 'block') { e.style.display = 'none'; } else { e.style.display = 'block'; }}
</script>
</body>
</html>
99 changes: 0 additions & 99 deletions g.js

This file was deleted.

67 changes: 30 additions & 37 deletions index.htm
Original file line number Diff line number Diff line change
@@ -1,37 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<style>
@-webkit-keyframes ch {
from {background-color:#FACC2E;margin-right:600px;}
to {background-color:#25313c;margin-right:0px;}
}
@keyframes ch {
from {background-color:#FACC2E;margin-right:600;}
to {background-color:#25313c;margin-right:0px;}
}

input {float:right;cursor:pointer;color:#25313c;background-color:#cccc99;border-color:#cccc99;border-style:solid;font-family:Impact;color:#25313c;transition: 1s}

input:hover {
background-color:#db8658
}
</style>

<title>Bitcoins - A Grinder</title>
<link rel="icon" type="image/png" href="favicon.png" />
<script src="g.js" type="text/javascript"></script>
<div style="-webkit-animation:ch 2s;animation:ch 2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:0.5s;animation-delay:0.5s">
<img src="coin.png" height="40px" style="margin-left:5px;margin-top:5px;margin-bottom:7px;cursor:pointer" onclick="address()"/>
<p style="font-family:Impact;font-size:40px;color:#cccc99;margin-left:55px;margin-top:-55px">Faucet grinder.</p>
<input type="button" value="JUMP" name="submit" onclick="jumpTo()" style="margin-top:-86px;margin-right:429px;font-size:30px"/>
<input type="button" value="LINK" name="submit" onclick="newTab()" style="margin-top:-86px;margin-right:357px;font-size:30px" />
<input type="button" value="RELOAD" name="submit" onclick="changeSrc()" style="margin-top:-86px;margin-right:250px;font-size:30px" />
<input type="button" name="submit" onclick="prev()" style="margin-top:-95px;margin-right:205px;font-size:45px" />
<input type="button" value="NEXT SITE" name="submit" onclick="next()" style="margin-top:-95px;margin-right:15px;font-size:45px" />
</div>
</head>
<body bgcolor="#191919">
<iframe id="fm" style="position:fixed;margin-top:-31px;width:99%;height:91%" frameborder="0" src="gin.htm"></iframe>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Bitcoins - A Grinder</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" href="favicon.png">
</head>

<body>
<!-- Controls -->
<div class="controls">
<img class="logo" src="coin.png" onclick="address()">
<p class="title">Faucet grinder.</p>

<input class="controls-jump" type="button" value="JUMP">
<input class="controls-link" type="button" value="LINK">
<input class="controls-reload" type="button" value="RELOAD">
<input class="controls-previous" type="button">
<input class="controls-next" type="button" value="NEXT SITE">
</div>

<!-- Faucet -->
<iframe class="faucet-frame" frameborder="0" src="default.html"></iframe>

<!-- Scripts -->
<script src="script.js"></script>
</body>
</html>
Loading

0 comments on commit 25f1897

Please sign in to comment.