I need to correct the code.
You should also add to the exception Saturday and Sunday, i.e. if a person orders on Friday after 15:30, should show that he will come on Tuesday, if he orders until 15:30, then on Monday.
The code to be corrected:
Theme.shippingTime = (function(){
is $shippingTime = $('.js-shipping-time'),
shippingTime = $shippingTime.data('time')
now = new date(),
restHour = 15 - now.getHours(),
restMinute = 30 - now.getMinutes();
if (shippingTime !== ''){
is nextTime = new Date(now.getTime() + shippingTime * 86400000),
formatTime = $.format.date(nextTime, “dd/MM/yyyy”),
htmlShipping = 'Ordina nelle prossime '+restHour+' ore '+restMinute+' minute per riceverlo entro '+formatTime+'. ‘;
$shippingTime.html (htmlShipping)
The
) )
Documentation: https://github.com/phstc/jquery-dateFormat
Applications 1
Work results
Client's review of cooperation with Vasil Zabolotny
I need to correct the code.Everything was done quickly and efficiently!
Freelancer's review of cooperation with Dmitro Zarivny
I need to correct the code.Interesting tasks, always on the link, for additional work paid
Thank you for your collaboration, I recommend it!
-
Good Morning, Dmitry
I will do it quickly and well.
I am happy to cooperate.
-
205 2 0 Hello to you. I am a JavaScript developer. Ready to take your task. Write and discuss.
-
95799 1272 1 10 Hello to you. I have a lot of experience with J.S. ready to help. turn to
-
953 11 0 I have a lot of experience in such tasks. I will do it now, call me!
-
80 Good time of time.
The task is not difficult. I know JS and JQuery. I will be glad to help.
-
862 33 2 Experienced web developer is ready to start right now. I do it quickly and quality.
I propose to discuss details, write.
The Last Works:
HTTPS://secureadvice.ru
HTTPS://avtosalyut.ru/
Current freelance projects in the category Javascript and Typescript
I am looking for an experienced Full Stack developer to create a SaaS service for online stores.Service idea: The client uploads a link to their product feed (XML or CSV). The service automatically retrieves the products, takes their photos, and creates new advertising images based on ready-made templates: price, discount, logo, promotional tags, etc. There should also be… Javascript and Typescript, Web Programming ∙ 8 hours 27 minutes back ∙ 62 proposals |
Development of a WebGL/Three.js scene with generation and export of 3D (snapshot) from an animated shaderObject Description:The project is a designer table shaped like a realistic, deep whirlpool (a central vortex that smoothly transitions from a wide horizontal tabletop to a thin elegant leg). Task Essence:A WebGL / Creative Coding developer is required to create an interactive 3D… Javascript and Typescript, Web Programming ∙ 1 day 5 hours back ∙ 27 proposals |
Support and development of the cleaning company's website
20 USD
I'm looking for a web developer/webmaster for long-term support and development of a cleaning company's website. Website: https://donely.ca About the project DoneLy Home Services is a cleaning service company in Canada that is actively growing and expanding its geographical… Javascript and Typescript, Web Programming ∙ 3 days 6 hours back ∙ 62 proposals |
Development of a website according to the specifications on FramerYou need to create a website based on the parameters in the technical specification. https://docs.google.com/document/d/1ODO2C9Krb4AaMiJz9wfbNzWlAyA2FwCCHL8r0biajUY/edit?usp=sharing Please provide your actual rate based on this design. HTML & CSS, Javascript and Typescript ∙ 4 days 7 hours back ∙ 27 proposals |
Development of an interactive Palworld map for the websiteWe need to develop an interactive map for Palworld based on the example: https://palworld.gg/map We need not just a static image, but a full-fledged interactive map where users can view locations, toggle object categories on/off, search for specific points, and interact with… HTML & CSS, Javascript and Typescript ∙ 5 days 22 hours back ∙ 35 proposals |