Make Jquery calculates difference in % between 2 dates
$30-250 CAD
Anulowano
Opublikowano ponad 11 lat temu
$30-250 CAD
Płatne przy odbiorze
This project was left over by a previous Freelancer.
Here it goes:
2 dates are given for a work completion Percentage bar (bootstrap UI): Start Date, End Date
By taking into consideration Todays date a percentage of Completion is rendered which modifies the Width of the class .BAR element and writes into InnerHTML of the element the Percentage Value.
Problem is: The math needs some critical adjustments.
BUG 1:
2011-07-02
2012-09-02
Result = 126% (Wrong the percentage cannot go over 100% maximum)
BUG 2:
2012-07-02
2012-09-02
Result = Nothing (It's suppose to output 100%)
BUG 3: I'm not quite sure the math is accurate here.
Please test and debug with the help of the given source code: [login to view URL]
Present a LIVE demo on jsfiddle, or on your server if you can fix this, . [! NO SCREENSHOTS PLEASE]
i have completed the code with proper testing and hope that you accept it, please check your PMB for the screenshot of the results... if you add date
in comparison with current date
2011-07-02,2011-09-02 - result 100%
2011-07-02,2012-09-02 - result 100%
2011-07-02,2013-09-02 - result 69%