Add Cookies to a webpage and change HTML / CSS based on existence of cookie.

Completed Posted 2 years ago Paid on delivery
Completed Paid on delivery

I have a form on [login to view URL], once user submits the form they land on a [login to view URL] page.

I would like the [login to view URL] page to set a (true/false) uniquely named cookie (with something like 30 day expiration).

Then if the same user on the same browser goes back to [login to view URL] within the 30 days the submit button needs to be hidden (type="hidden") and a small snippet of html needs to needs to be revealed in place of where the button would be, something like "you have already submitted this form."

So if user has no cookie (false or nothing) the code on [login to view URL] would be this:

<input value="Submit" onclick="emailform()" type="button" class="primary">

If user has visited the [login to view URL] and the cookie exists when user comes back to [login to view URL], this would replace (hidden/revealed, whatever) of the above code:

<input type="hidden" value="Submit" onclick="emailform()" type="button" class="primary"><h3 class="alt" style="color: red">You have already submitted this form.</h3>

Notice the type="hidden" and the extra h3.

Obviously, needs to work in all modern browsers.

I would like something simple to be used like JS-Cookie:

[login to view URL]

tutorial: [login to view URL]

And something simple like these to hide/reveal html/css:

[login to view URL]

[login to view URL]

or basically anything you know that is very simple.

You can create the standalone pages ([login to view URL], [login to view URL], and possible js files) and send those to me along with whatever libraries need uploading if any. I will implement in the actual pages with simple step by step instructions from you.

This should be a very easy and fast project for anyone with a little cookie knowledge. Thanks.

JavaScript CSS HTML HTML5

Project ID: #31892695

About the project

15 proposals Remote project Active 2 years ago

Awarded to:

CalGargin

Hi! I should be about to get this done for you in a few days at most. Send me the files and we can get started.

$15 USD in 2 days
(2 Reviews)
1.5

15 freelancers are bidding on average $27 for this job

Syedhammadhafeez

Hey, It can be done just according to your requirements. kindly have a chat session for better understanding. Regards, Syed Hammad Hafeez I

$25 USD in 7 days
(22 Reviews)
5.3
mahidevran

Hi. No problem, As a qualified programmer, I can implement this right away. Shouldn't take more than an hour. If interested, just hit me up!

$50 USD in 1 day
(26 Reviews)
4.4
poojamaurya1421

Hello, Sir/Madam i am website designer html bootstrap word press,. I am looking for experienced of all types of websites designers that they will work completing quality projects on time , with professional altitude More

$20 USD in 1 day
(44 Reviews)
4.6
pranotosh

I'm a Web Developer having experience in PHP, MySQL, Wordpres, HTML, Javascript, jQuery, Ajax etc. I can do this for you. Ready to start right now. Looking forward to hearing from you. Kind Regards Pranotosh

$30 USD in 1 day
(19 Reviews)
4.2
Alikgadji

Hello, sir! Thanks for your job posting. As a Javascript expert, I have good experience in this field. And I have added cookie in webpage. So I am sure I ensure in your project. Thanks again.

$20 USD in 1 day
(3 Reviews)
4.0
delahoussayec

Hi There, Do you need to implement it using pure front-end solutions? I am a seasoned front-end developer with background knowledge of HTML, JavaScript frameworks, and CSS libraries. Looking forward to hearing from you More

$35 USD in 1 day
(13 Reviews)
3.8
ann1702

hope everything goes well with you. I just read your job description and very intesting on your project. If you want quality and quick web work you are in the right place. I pride myself on doing quality work and maint More

$25 USD in 1 day
(4 Reviews)
2.4
frontEndDev2020

Hello, I can confidently say that I can get this task done the way you specified it. I would appreciate if I get rewarded this task, thanks.

$15 USD in 1 day
(2 Reviews)
2.4
ripplestar

Hi, i have read the job description and fully understand what you require the cookies to make u achieve. I am available to complete this task for you as soon as we discuss the extra details. Regards, Mark

$18 USD in 1 day
(0 Reviews)
0.0
mhmmdkamilov50

Let’s start by looking at what exactly is a bid in Freelancer. The bid meaning in Freelancer is similar to responding to a job posting anywhere else. A potential employer publishes an ad when they want to hire a new More

$25 USD in 7 days
(0 Reviews)
0.0