Tree countdown timer for Farming

Post Reply
Mad people
Honor Player
Posts: 52
Joined: Tue Sep 16, 2014 10:20 pm

Tree countdown timer for Farming

Post by Mad people » Sun Jun 07, 2015 6:22 pm

Hi all,

I'll share my Farming countdown timer to tell you when your tree's are done! :D its pretty helpfull to get max xp a hour. :lol: :lol:

Save it as countdown.html and open it with like Google Chrome.

Enjoy!
Spoiler: show
<!DOCTYPE html>
<html>
<head>
<title>Countdown</title>
<script src="https://ajax.googleapis.com/ajax/libs/j ... "></script>
</head>
<body>

<style type="text/css">
body {
background-color: rgb(242,242,242);
color: #333;
font-family: sans-serif;
padding: 30px;
}

h1 {
margin-bottom: 5px;
}

input[type="number"] {
padding: 7px;
border: 1px solid #eaeaea;
border-radius: 3px;
}

h2 {
color: green;
}
</style>

<h1>Lumbridge</h1>
<script type="text/javascript">
$( document ).ready(function() {
$('#countdown1submit').click(function() {
var theVal = $('#countdown1').val();
var i = theVal-1; // set your counter to 1

function myLoop () {
setTimeout(function () {
$('#theTime1').html(i)
i--;
if (i >= 0) {
myLoop();
}

}, 1000);
}

myLoop();
});
});
</script>
<input id="countdown1" type="number" min="0">
<input id="countdown1submit" type="submit">
<h2 id="theTime1"></h2>

<h1>Varrock</h1>
<script type="text/javascript">
$( document ).ready(function() {
$('#countdown2submit').click(function() {
var theVal = $('#countdown2').val();
var i = theVal-1; // set your counter to 1

function myLoop () {
setTimeout(function () {
$('#theTime2').html(i)
i--;
if (i >= 0) {
myLoop();
}

}, 1000);
}

myLoop();
});
});
</script>
<input id="countdown2" type="number" min="0">
<input id="countdown2submit" type="submit">
<h2 id="theTime2"></h2>

<h1>Falador</h1>
<script type="text/javascript">
$( document ).ready(function() {
$('#countdown3submit').click(function() {
var theVal = $('#countdown3').val();
var i = theVal-1; // set your counter to 1

function myLoop () {
setTimeout(function () {
$('#theTime3').html(i)
i--;
if (i >= 0) {
myLoop();
}

}, 1000);
}

myLoop();
});
});
</script>
<input id="countdown3" type="number" min="0">
<input id="countdown3submit" type="submit">
<h2 id="theTime3"></h2>

<h1>Taverley</h1>
<script type="text/javascript">
$( document ).ready(function() {
$('#countdown4submit').click(function() {
var theVal = $('#countdown4').val();
var i = theVal-1; // set your counter to 1

function myLoop () {
setTimeout(function () {
$('#theTime4').html(i)
i--;
if (i >= 0) {
myLoop();
}

}, 1000);
}

myLoop();
});
});
</script>
<input id="countdown4" type="number" min="0">
<input id="countdown4submit" type="submit">
<h2 id="theTime4"></h2>

</body>
</html>
Image
Last edited by Mad people on Sun Jun 07, 2015 7:25 pm, edited 2 times in total.

User avatar
K1l1l1l1l1l1
Champion
Posts: 1952
Joined: Sat May 31, 2014 11:26 am
Location: PkHonor HQ

Re: Tree countdown timer for Farming

Post by K1l1l1l1l1l1 » Sun Jun 07, 2015 6:50 pm

inb4 ebola
Image

User avatar
Jonas
Fanatic
Posts: 4921
Joined: Mon Aug 26, 2013 8:50 pm
Location: Lithuania.

Re: Tree countdown timer for Farming

Post by Jonas » Sun Jun 07, 2015 7:08 pm

Works.
Image

Post Reply