FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

[closed] Simple task - up to 400Frih$

 


escritor
I could do it myself, but I want to give you an opportunity to earn a lot of Frih$. It's a very simple task... a pastime, to say the truth.

Take a look at the below JavaScript code.
Code:

foo = new Date(2008, 04, 11);
moo = new Date(2008, 04, 12);
dif = foo.getTime() - moo.getTime();
days = 1000 * 60 * 60 * 24;
daysDif = dif / days;
alert(daysDif);


It returns the number of days between foo and moo. I want you to design a form where I can select my own dates in a drop down menu. I pick up the days, press "give me the time span" and it gives me it. Of course, the script must be polite and say "1 day ago", "5 days remaining" instead of printing only "1" or "-5". Do it and earn 100Frih$.

If you put the form in a valid (x)HTML page and format it with nice colours, big fonts and so using CSS, I'll triple your award (100*3 = you get 300Frih$). If you create a name for it that makes me happy, make a logo for it with this service and add it to the HTML page, add 50$ to your account (300+50=350Frih$).

Well, if you are really needy, you can do it in PHP and follow the design specifications of the last paragraph. Do it all (JS plus PHP versions) and I'll give you a total of $400Frih.

Rules: #1 Within 3 days, I'll close this thread. #2 Just post here your own script and form. I won't accept scripts made by third parties. #3 I'll be the only judge of the quality of your work. #4 If more than a person do it using different techniques, I'll choose the better one (this applies to the design too). #5 You must agree that it'll be public domain and everyone might copy, edit etc.

What are you waiting for? The time you spent reading this thread was more than enough to do what I want. Razz


Last edited by escritor on Tue Apr 15, 2008 8:28 am; edited 1 time in total
MaxStirner
Hi Escritor:

not having written JS for some time, here is a quick-and-dirty solution (since I only had a bit more than an hour and time is now up). It doesn't really fulfill all the requirements, but seeing that you're not getting many answers, I'll speculate on picking up the Frih$ by default Surprised .

The page was tested on:

  • Firefox (Linux, Win)
  • Konqueror (Linux)
  • Opera (Linux)
  • Safari (Mac)
  • IE (Linux, Win)

... so it should work in a number of environments but it doesn't contain any error trapping, work-arounds for some older IE versions and trapping of illegal dates (i.e. 31.02.2008) ... and is flawed in other ways as well. In any case:

Link: Escritor's Beach-Time Calculator

HTML: brazil.html
CSS: brazil.css
JS: brazil.js

Take care
Max
escritor
Hehe. I must tell you.. It's great to know that I can buy stuff with Frih$. I've just tested your script and it seems that it works well. Smile

I just have to complain about the picture and theme. Razz I'm from São Paulo, the largest city in the Southern Hemisphere... it looks like this:

and this:



No beaches, no people wearing swimsuits. If nobody else post another script, you'll earn the correspondent prize. Smile
singh.gurjeet
MaxStirner wrote:
Hi Escritor:

Link: Escritor's Beach-Time Calculator

HTML: brazil.html
CSS: brazil.css
JS: brazil.js

Take care
Max


Nice work, for a one hour effort I must say....
MaxStirner
escritor wrote:
Hehe. I must tell you.. It's great to know that I can buy stuff with Frih$. I've just tested your script and it seems that it works well. Smile

I just have to complain about the picture and theme. Razz I'm from São Paulo, the largest city in the Southern Hemisphere... it looks like this:

and this:



No beaches, no people wearing swimsuits. If nobody else post another script, you'll earn the correspondent prize. Smile


São Paulo?! Rats, that's what I get for trying to impress the judges. Well, consider it the ...

  1. "Escritor's ... how may days you'll need to get rich in São Paulo ... Caclulator" or ...
  2. "Escritor's ... how many days between muggings ... Calculator" (uh oh, now I've really alienated the judge by bad-mouthing his home town.)

To make it up, I'll supply a few themes for the calculator this evening (need to go to work now, they're already rattling my chain).

Bye, Max
escritor
MaxStirner wrote:
Well, consider it the ...

  1. "Escritor's ... how may days you'll need to get rich in São Paulo ... Caclulator" or ...
  2. "Escritor's ... how many days between muggings ... Calculator" (uh oh, now I've really alienated the judge by bad-mouthing his home town.)

Haha. It seems you've done a little reasearch on my city. Very Happy

Again, I need to make it clear that Rio de Janeiro is much more violent. You know, just in case... Take a look at what happened when Santa Claus visited RJ.

Despite of misunderstandings and jokes... Congratulations! Very Happy You earned 350Frih$. No need for new themes nor further work on it. Smile
Bockman
-close- by user request ;o)
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Miscellaneous -> Marketplace

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.