I am developing a calender which is for menstrual cycle calculator ,I have to highlight the days for the following phase,they are
- Bleeding Days
- Fertile Phase
- Ovulation Day
Bleeding Date Calculation
Assume that user selected date as "a" Assume the default period cycle as "X"
bleeding days=x + 3 days
Fertile Phase Calcultaion
Fertile Phase I
the formula provides the end date of the phase 1
phase I ranges from date selected and the end date of phase 1
Formula
b =[{a +(x-1)-19}]
Fertile Phase II
c=[{a+(x-1)-10}]
Fertile Phase
Range from (b+1) till (c-1) is fertile phase range
Ovulation Day
Particular Date=[(b-1) +{(c-b)/2}]
Data for the process
The user will choose the date when period starts
The menstrual range by default of 28 days
Process by the data
With the date of period started and the cycle range,the above mentioned formulas will be applied
for calculating three different range of dates
Using the range of dates,the highlighting of dates will be applied for the year and upcoming years
i am using jqm calendar
Problem is: I can't figure out how to replicate the highlighting of days
to all dates based on the calculation for all months
Aucun commentaire:
Enregistrer un commentaire