Find Jobs
Hire Freelancers

Need Experienced JavaScript Developer for Counter

$30-100 USD

Cancelled
Posted about 17 years ago

$30-100 USD

Paid on delivery
I need an experienced javascript developer to developing a random dynamic counter for me that will function in the following way. 1. At the beginning of each day, your code should randomly pick a number between 2455 and 2500 and store this number within a file that's located on the server. Of course all of these business rules apply to a particular website and I'll be using this counter on a particular webpage. 2. For every hour between 12:00AM and 4:00AM your code should randomly pick a number no less than 12 but that adds up no more than 125 for all 4 hours and store these random number for each hour on the file that's located on the server. For example - the master file could look like this: MasterNumber = 2475 12:00AM = 23 01:00AM = 32 02:00AM = 37 03:00AM = 33 Please notice that all four of these numbers add up 125 as required. 3. Now, your code should for each hour take 60 and divide the random number by it so as to determine how fast the counter will count within each hour... for example: 12:00AM = 23 = 2.6 minutes 01:00AM = 32 = 1.9 minutes 02:00AM = 37 = 1.6 minutes 03:00AM = 33 = 1.8 minutes Now, some rounding up or down will have to occur - and that's okay - but let's take the first number which is 2.6 minutes - which means that every 2.6 minutes your counter will increase by 1 until it reaches the total number of 23 for the hour. For example, when the server's time is 12:45 your counter should display the number 17 and when the servers time is 3:30 then your counter should display the number 108. 4. Now do the same thing for every hour between 4:00AM and 2:00PM - have your code randomly pick a number no less than 60 but that adds up to 1000 for all 10 hours and store these random numbers for each hour within the same file that's located on the server. For example, your file could now look like this: MasterNumber = 2475 12:00AM = 23 = 2.6 minutes 01:00AM = 32 = 1.9 minutes 02:00AM = 37 = 1.6 minutes 03:00AM = 33 = 1.8 minutes 04:00AM = 68 = 0.9 minutes 05:00AM = 80 = 0.8 minutes 06:00AM = 95 = 0.6 minutes 07:00AM = 165 = 0.4 minutes 08:00AM = 78 = 0.8 minutes 09:00AM = 85 = 0.7 minutes 10:00AM = 147 = 0.4 minutes 11:00AM = 75 = 0.8 minutes 12:00PM = 99 = 0.6 minutes 01:00PM = 108 = 0.6 minutes Once again - rounding may be necessary here - but please notice that if you add all the numbers from 4:00AM to 2:00PM that it adds up to 1000 exactly. In addition, let's take the number for 4:00AM which is 0.9 minutes - which means that every 0.9 minutes your counter will increase by 1 until it reaches the total number of 68 for the hour. For example, at 4:30AM the counter should display 159 and at 1:30PM your counter should display 1,071. NOTE: To be more specific your code should probably work in terms of seconds and not minutes - I'm working in terms of minutes here so as to explain what I require. Please keep that in mind while you're programming all of this. 5. Now once again let's do the same thing for every hour between 2:00PM and 10:00PM - have your code randomly pick a number no less than 60 but that adds up to 1200 for all 8 hours and store these random numbers for each hour within the same file that's located on the server. For example, your file could now look like this: MasterNumber = 2475 12:00AM = 23 = 2.6 minutes 01:00AM = 32 = 1.9 minutes 02:00AM = 37 = 1.6 minutes 03:00AM = 33 = 1.8 minutes 04:00AM = 68 = 0.9 minutes 05:00AM = 80 = 0.8 minutes 06:00AM = 95 = 0.6 minutes 07:00AM = 165 = 0.4 minutes 08:00AM = 78 = 0.8 minutes 09:00AM = 85 = 0.7 minutes 10:00AM = 147 = 0.4 minutes 11:00AM = 75 = 0.8 minutes 12:00PM = 99 = 0.6 minutes 01:00PM = 108 = 0.6 minutes 02:00PM = 123 = 0.5 minutes 03:00PM = 154 = 0.4 minutes 04:00PM = 168 = 0.4 minutes 05:00PM = 127 = 0.5 minutes 06:00PM = 133 = 0.5 minutes 07:00PM = 195 = 0.3 minutes 08:00PM = 138 = 0.4 minutes 09:00PM = 162 = 0.4 minutes Please notice that all numbers from 2:00PM to 10:00PM adds up to 1200 exactly. So, with these numbers within the master file, at 2:30PM your counter should display 1,187 and at 9:30PM your counter should display 2,244. Now, you'll notice that 2,244 is now getting closer to the 2,475 MasterNumber that we randomly selected earlier - actually, it's only 231 away... 6. So, by the time we get to 10:00PM the counter should be at 2325 and we only have 2 more hours to go. So that this point I want your code to randomly pick a number no less than 60 but that adds up to: (2,475 MasterNumber - 2,325 Current Number) which would give us 150. So, our file could now look like this: MasterNumber = 2475 12:00AM = 23 = 2.6 minutes 01:00AM = 32 = 1.9 minutes 02:00AM = 37 = 1.6 minutes 03:00AM = 33 = 1.8 minutes 04:00AM = 68 = 0.9 minutes 05:00AM = 80 = 0.8 minutes 06:00AM = 95 = 0.6 minutes 07:00AM = 165 = 0.4 minutes 08:00AM = 78 = 0.8 minutes 09:00AM = 85 = 0.7 minutes 10:00AM = 147 = 0.4 minutes 11:00AM = 75 = 0.8 minutes 12:00PM = 99 = 0.6 minutes 01:00PM = 108 = 0.6 minutes 02:00PM = 123 = 0.5 minutes 03:00PM = 154 = 0.4 minutes 04:00PM = 168 = 0.4 minutes 05:00PM = 127 = 0.5 minutes 06:00PM = 133 = 0.5 minutes 07:00PM = 195 = 0.3 minutes 08:00PM = 138 = 0.4 minutes 09:00PM = 162 = 0.4 minutes 10:00PM = 69 = 0.9 minutes 11:00PM = 81 = 0.7 minutes Please notice that our last two numbers do in fact add up to 150 - in addition, please notice that all of our numbers total add up to 2,475 which is our master number that we randomly choose in the beginning of this example. Of course your code should use these randomly generated number to count from 1 to 2,475 during the course of a 24 hour period. Of course after 12:00AM this file and all of these settings should be deleted and a new one created with new random numbers. Yes - every day there should be a new file with new numbers created. 7. Now, I need you to write some javascript code that will use this "master file" that's on the server with all of these randomly generated numbers that will dynamically display a counter that gradually increases as it goes through the day without the user having to refresh his webpage. I of course should be able to insert this javascript code into a webpage and it should display this number for me. In addition, I also need some javascript code that will also count down backwards from 2500 to 0 - that's right - we're not counting down from 2,475 (the randomly generated number) but we're counting down from 2,500 instead. Of course I should be able to format this number in any particular way that I so choose. In addition, of course the same exact counter number should be displayed on all computers that may be visiting the website at any point in time during the day. PLEASE NOTE: When bidding on this project, please let me know how many years of experience you have with JavaScript and if you understand the requirements and if you feel that you would be able to do this project or not. In addition, I would also like to know if you have the experience to create a file on the web server that your code can use to randomly generate all of these numbers.
Project ID: 142317

About the project

4 proposals
Remote project
Active 17 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $100 USD for this job
User Avatar
I would be delighted to provide you with the satisfactory project completion you require and deserve. Please see PM for credentials.
$100 USD in 5 days
4.9 (24 reviews)
4.4
4.4
User Avatar
We can do it
$100 USD in 5 days
4.9 (11 reviews)
4.5
4.5
User Avatar
Hello, I have 5 years experience using JS and more than 10 years in development. I can do your job upto your requirement. Thanks
$100 USD in 5 days
5.0 (2 reviews)
3.4
3.4
User Avatar
The price in the bid is initial because I understand what you want to do. Please look at the PMB for more details.
$100 USD in 6 days
5.0 (4 reviews)
3.0
3.0

About the client

Flag of UNITED STATES
Folsom, United States
5.0
92
Payment method verified
Member since Jan 28, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.