diff --git a/README.md b/README.md index 40584a5..ba91fa6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/gin.htm b/default.html similarity index 98% rename from gin.htm rename to default.html index a9f208c..9b17dec 100644 --- a/gin.htm +++ b/default.html @@ -1,59 +1,59 @@ - - - -Origin - - - - - -
-

What is bitcoin?

-

-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. -

-
- - - -
-

How do I get started?

-

-To set up a bitcoin wallet, simply go to CoinBase and sign up.
-There are more alternatives here. -

-
- -
-

How do I use this site?

-

-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.
-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 NEXT SITE at the top bar to go to the next faucet. -

-
- -
-

Observe that:

- -
- -
-

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 explorebtc@gmail.com.

-
- - + + + +Origin + + + + + +
+

What is bitcoin?

+

+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. +

+
+ + + +
+

How do I get started?

+

+To set up a bitcoin wallet, simply go to CoinBase and sign up.
+There are more alternatives here. +

+
+ +
+

How do I use this site?

+

+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.
+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 NEXT SITE at the top bar to go to the next faucet. +

+
+ +
+

Observe that:

+ +
+ +
+

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 explorebtc@gmail.com.

+
+ + \ No newline at end of file diff --git a/g.js b/g.js deleted file mode 100644 index 58e3e33..0000000 --- a/g.js +++ /dev/null @@ -1,99 +0,0 @@ -var s=[ -"gin.htm", -"http://freebitco.in/?r=135139", -"http://dailybitcoins.org/index.php?aff=9fb5ef25df8f3dc11cbf6a7c967d235d", -"http://hotswap.co/?id=369693", -"http://www.minifrij.pw?ref=1McYLx1YbnUZ5fRPw5Y24PBBQVutf89U6m", -"http://www.8coin.me/?r=7T8dOw&a=", -"http://www.getbitcoinsquick.com/?r=7T8dOw&a=", -"http://www.bbitcoin.me/?r=7T8dOw&a=", -"http://www.bitcoinfaucet.me/?r=7T8dOw&a=", -"http://www.bitcurl.me/?r=7T8dOw&a=", -"http://www.btcalot.com/?r=7T8dOw&a=", -"http://www.btcrew.com/?r=7T8dOw&a=", -"http://www.coinpearl.me/?r=7T8dOw&a=", -"http://www.earnbtc.me/?r=7T8dOw&a=", -"http://www.earn-free-bitcoins.com/?r=7T8dOw&a=", -"http://www.freebitcoinsfast.com/?r=7T8dOw&a=", -"http://www.freebitcoin.mobi/?r=7T8dOw&a=", -"http://www.freebitcoin.ws/?r=7T8dOw&a=", -"http://www.freecoinbit.com/?r=7T8dOw&a=", -"http://www.raincoins.net/?r=7T8dOw&a=", -"http://www.smurfcoin.com/?r=7T8dOw&a=", -"http://www.bitcoins4.me/", -"http://bitcoiner.net/", -"http://www.btcflow.net/", -"http://www.freebitcoins.me/?a=", -"http://www.thefreebitcoins.com/?a=", -"http://www.srbitcoin.com/?a=", -"http://www.bitcats.net/?a=", -"http://www.canhasbitcoin.com/?a=", -"http://www.elbitcoingratis.es/?a=", -"http://www.rawbitcoins.com/?a=", -"http://www.fr33bitcoins.com/?a=", -"http://www.bitcoins4free.me/?a=", -"http://www.freebtc4all.com/?a=", -"http://www.virtualfaucet.com/?a=", -"http://www.faucetbtc.com/?a=", -"http://www.btc4you.com/?a=", -"http://www.nioctib.net/get-free-bitcoins/?a=", -"http://www.btcmine.net/?a=", -"http://www.thebitcoin.me/?a=", -"http://www.greencoins.org/?a=", -"http://www.bitcoinspain.net/?a=", -"http://www.freebitcoins4u.com/?a=", -"http://www.freebitcoinlottery.com/?a=", -"http://multifauceted.com", -"http://www.cleverpuffin.com/faucet/?id=19158", -"http://www.rabbitcoin.tk", -"http://www.freakfaucet.com", -"http://superfaucet.com", -"http://www.megafaucet.com", -"http://grifobitcoin.com", -"http://funnyfaucet.com", -"http://bitcoinhahn.de", -"http://faucet.galat.org", -"http://bitcoinflood.com/faucet/", -"http://www.bitcrate.net/index.php?ref=3665" -]; -var adr,i,x=0,c=s.length; -function address() { -adr=prompt('Enter your bitcoin address:'); -s=s.map(function(x){ - return x.indexOf("a=") != -1 ? x + adr : x; -}); -} -function next(){ -x+=1; -if (x>c-1) - { - x=0; - } -changeSrc(); -} -function prev(){ -x-=1; -if (x<=0) - { - x=c-1; - } -changeSrc(); -} -function jumpTo() { -i=prompt("Enter a number to skip to that faucet."); -x=0; -while (i!=x) { - if (x>c-2) { - break; - } - x+=1; -} -changeSrc(); -} -function newTab() { -var win=window.open(document.getElementById("fm").src, '_blank'); -win.focus(); -} -function changeSrc() { -document.getElementById("fm").src=s[x]; -} diff --git a/index.htm b/index.htm index e457da8..b74c3b5 100644 --- a/index.htm +++ b/index.htm @@ -1,37 +1,30 @@ - - - - - -Bitcoins - A Grinder - - -
- -

Faucet grinder.

- - - - - -
- - - - - \ No newline at end of file + + + + + + Bitcoins - A Grinder + + + + + + +
+ +

Faucet grinder.

+ + + + + + +
+ + + + + + + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..c0cdae0 --- /dev/null +++ b/script.js @@ -0,0 +1,72 @@ +/** + * Here's where you store the faucets (the URLs). + */ +var faucets = [ + 'default.html', + 'http://fieldbitcoins.com/', + 'http://memebase.cheezburger.com/', + 'http://geek.cheezburger.com/', + 'http://icanhas.cheezburger.com/gifs', +]; + +var address, + currentFaucet = 0; + +function address() { + var address = prompt('Enter your bitcoin address:'); + + faucets = faucets.map(function(faucet) { + return faucet.indexOf("a=") != -1 ? + faucet + address : + faucet; + }); +} + +function setFaucet() { + document.querySelector('.faucet-frame').src = faucets[currentFaucet]; +} + +/** + * Jump to button. + */ +document.querySelector(".controls-jump").addEventListener('click', function() { + currentFaucet = prompt('Enter a number to skip to that faucet:') - 1; + + if (currentFaucet < 0 || currentFaucet >= faucets.length) return alert('The number has to be between 1 and ' + faucets.length + '.'); + + setFaucet(); +}); + +/** + * Link button (open in new tab). + */ +document.querySelector(".controls-link").addEventListener('click', function() { + window.open(document.querySelector('.faucet-frame').src, '_blank').focus(); +}); + +/** + * Reload button. + */ +document.querySelector(".controls-reload").addEventListener('click', setFaucet); + +/** + * Previous button. + */ +document.querySelector(".controls-previous").addEventListener('click', function() { + currentFaucet--; + + if (currentFaucet === -1) currentFaucet = faucets.length - 1; + + setFaucet(); +}); + +/** + * Next button. + */ +document.querySelector(".controls-next").addEventListener('click', function() { + currentFaucet++; + + if (currentFaucet === faucets.length) currentFaucet = 0; + + setFaucet(); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..8217a93 --- /dev/null +++ b/style.css @@ -0,0 +1,91 @@ +/** + * General + */ +body { + background-color: #191919; +} + +/** + * Controls + */ +@keyframes ch { + from { + background-color: #FACC2E; + margin-right: 600; + } + to { + background-color: #25313c; + margin-right: 0px; + } +} + +.controls { + animation: ch 2s; + animation-fill-mode: forwards; + animation-delay: 0.5s; +} + +.logo { + margin: 5px 0 7px 5px; + cursor: pointer; + height: 40px; +} + +.title { + font-family: Impact; + font-size: 40px; + color: #cccc99; + margin-left: 55px; + margin-top: -55px; +} + +.controls input { + float: right; + cursor: pointer; + color: #25313c; + background-color: #cccc99; + border-color: #cccc99; + border-style: solid; + font-family: Impact; + color: #25313c; + transition: 1s; +} + +.controls input:hover { + background-color: #db8658; +} + +.controls-jump { + margin: -86px 429px 0 0; + font-size: 30px; +} + +.controls-link { + margin: -86px 357px 0 0; + font-size: 30px; +} + +.controls-reload { + margin: -86px 250px 0 0; + font-size: 30px; +} + +.controls-previous { + margin: -95px 205px 0 0; + font-size: 45px; +} + +.controls-next { + margin: -95px 15px 0 0; + font-size: 45px; +} + +/** + * Faucet + */ +.faucet-frame { + position: fixed; + margin-top: -31px; + width: 99%; + height: 91%; +}