Open dev-kasibhatla opened 3 years ago
@msvamp Please check book-new.js to see format in which u have to send slots or else I will have to change my codeπ₯Ί
Example: Date in DD/MM/YYYY format as key for slots of that date st---> start time 24hr format pramane et---> end time -----------""----------- av---> available: 1, queued:0, unavailable: -1 size ---> number of slots you are sending
{ "17/01/2021": [ {"st":5,"et":6,"av":1}, {"st":6,"et":7,"av":0}, {"st":7,"et":8,"av":1}, {"st":8,"et":9,"av":1}, {"st":9,"et":10,"av":0}, {"st":10,"et":11,"av":1}, {"st":11,"et":12,"av":0}, {"st":12,"et":13,"av":1}, {"st":13,"et":14,"av":1}, {"st":14,"et":15,"av":0}, {"st":16,"et":17,"av":-1}, {"st":17,"et":18,"av":0}, {"st":19,"et":20,"av":1}, {"st":20,"et":21,"av":-1} ], "18/01/2021": [ {"st":5,"et":6,"av":1}, {"st":6,"et":7,"av":0}, {"st":7,"et":8,"av":1}, {"st":8,"et":9,"av":1}, {"st":9,"et":10,"av":0}, {"st":10,"et":11,"av":1}, {"st":11,"et":12,"av":0}, {"st":12,"et":13,"av":1}, {"st":13,"et":14,"av":1}, {"st":14,"et":15,"av":0}, {"st":16,"et":17,"av":-1}, {"st":17,"et":18,"av":0}, {"st":19,"et":20,"av":1}, {"st":20,"et":21,"av":-1} ], "19/01/2021": [ {"st":5,"et":6,"av":1}, {"st":6,"et":7,"av":0}, {"st":7,"et":8,"av":1}, {"st":8,"et":9,"av":1}, {"st":9,"et":10,"av":0}, {"st":10,"et":11,"av":1}, {"st":11,"et":12,"av":0}, {"st":12,"et":13,"av":1}, {"st":13,"et":14,"av":1}, {"st":14,"et":15,"av":0}, {"st":16,"et":17,"av":-1}, {"st":17,"et":18,"av":0}, {"st":19,"et":20,"av":1}, {"st":20,"et":21,"av":-1} ], "size":1 };
@msvamp reg-club should also send all the different schools ki te tu veglya file madhun send karat ahe? #fa2bb9d
veglya file madhun send karat ahe
Yes, I haven't uploaded this file yet, though. For now, just send the index of selected element (it will be ignored by baackend until I add the code for that Also, representative details are not yet being accepted, I confused mentor for representative π€¦π½
check telegram tikde ek error pan yete ahe for sent data:
0: {name: "email", value: "bananaracoon0@gmail.com"} 1: {name: "phone", value: "23232323232"} 2: {name: "name", value: "water23232"} 3: {name: "rname", value: "dasasaad"} 4: {name: "inputSchool", value: "17"} 5: {name: "password", value: "qwert123"} 6: {name: "inputPassword2", value: "qwerty123"} 7: {name: "inputMentorName", value: "fdfdfsfdssfsdfs"} 8: {name: "inputMentorEmail", value: "fsdfsdfsdf@ewewee.erere"} 9: {name: "inputMentorDept", value: "ddddddddd"}
bcc pass matching nahi tari kasa send zhala π₯
Yes, I know I have found and fixed it offline Will upload online directly, and push here in next commit.
Btw, there is no need to send so many inputs, check all the if
lines in the script
Btw, there is no need to send so many inputs, check all the
if
lines in the script
abe tevdhech ahet input in the registration form
We have a total of 16 slots of 1-hour each, for each day. Please keep the following slot-id table in mind while designing JS for book.html
and index.html
and wherever there is anything related to slots.
0 -> 7am - 8am
1 -> 8am - 9am
2 -> 9am - 10am
3 -> 10am - 11am
4 -> 11am - 12pm
5 -> 12pm - 1pm
6 -> 1pm - 2pm
7 -> 2pm - 3pm
8 -> 3pm - 4pm
9 -> 4pm - 5pm
10 -> 5pm - 6pm
11 -> 6pm - 7pm
12 -> 7pm - 8pm
13 -> 8pm - 9pm
14 -> 9pm - 10pm
15 -> 10pm - 11pm
The server will always accept and provide time slots in this slot-id format, make sure you have some JS functions ready to decode slot-id
s to hours and vice-versa.
are already dila tar hota format slots cha kashala code badalayla lavat ahe ππππ
Example: Date in DD/MM/YYYY format as key for slots of that date st---> start time 24hr format pramane et---> end time -----------""----------- av---> available: 1, queued:0, unavailable: -1 size ---> number of slots you are sending
{ "17/01/2021": [ {"st":5,"et":6,"av":1}, {"st":6,"et":7,"av":0}, {"st":7,"et":8,"av":1}, {"st":8,"et":9,"av":1}, {"st":9,"et":10,"av":0}, {"st":10,"et":11,"av":1}, {"st":11,"et":12,"av":0}, {"st":12,"et":13,"av":1}, {"st":13,"et":14,"av":1}, {"st":14,"et":15,"av":0}, {"st":16,"et":17,"av":-1}, {"st":17,"et":18,"av":0}, {"st":19,"et":20,"av":1}, {"st":20,"et":21,"av":-1} ], "18/01/2021": [ {"st":5,"et":6,"av":1}, {"st":6,"et":7,"av":0}, {"st":7,"et":8,"av":1}, {"st":8,"et":9,"av":1}, {"st":9,"et":10,"av":0}, {"st":10,"et":11,"av":1}, {"st":11,"et":12,"av":0}, {"st":12,"et":13,"av":1}, {"st":13,"et":14,"av":1}, {"st":14,"et":15,"av":0}, {"st":16,"et":17,"av":-1}, {"st":17,"et":18,"av":0}, {"st":19,"et":20,"av":1}, {"st":20,"et":21,"av":-1} ], "19/01/2021": [ {"st":5,"et":6,"av":1}, {"st":6,"et":7,"av":0}, {"st":7,"et":8,"av":1}, {"st":8,"et":9,"av":1}, {"st":9,"et":10,"av":0}, {"st":10,"et":11,"av":1}, {"st":11,"et":12,"av":0}, {"st":12,"et":13,"av":1}, {"st":13,"et":14,"av":1}, {"st":14,"et":15,"av":0}, {"st":16,"et":17,"av":-1}, {"st":17,"et":18,"av":0}, {"st":19,"et":20,"av":1}, {"st":20,"et":21,"av":-1} ], "size":1 };
hein bagh mandu @msvamp
What to do in book.html
?
You can easily wrap this existing code into the new format by writing a convert function to change 0, 1, 2
into "st":7,"et":8
, "st":8,"et":9
, "st":9,"et":10
respectively, and so on....
When timeslot is a single digit, the amount of data exchanged also reduces a lot, since I can send the availability of each day as an array of 16 elements with 1s or 0s
0 -> 7am - 8am
hein string asnar ahe ka? json format madhech dete ahe na mala? ohh ok u mean 0 is this slot and json array pathavtana u will send booleans asa?
taripan ek kam kar "18/01/2021": [ {0:1}, {1:0}, {2:-1}, {3:1}, ] , "19/01/2021": [ {0:1}, {1:0}, {2:-1}, {3:1}, ] asa pathav
u will send booleans asa?
Yes
For example, if there are 3 slots available in the night and one in the morning, for some date, then it will look like -
{
"11/11/1954": [1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1]
}
{ "11/11/1954": [1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1] }
han best
{0:1}, {1:0}, {2:-1}, {3:1},
What is -1?
What is -1?
unavailable
available, queued , unavai... ashe aple slots ahe
han best
Can you send me request in the same format for book.html
?
Selected date will be the key, and chosen slots will be the indices of 1-values in the array for that date
han best
Can you send me request in the same format for
book.html
? Selected date will be the key, and chosen slots will be the indices of 1-values in the array for that date
ok thike
{ "11/11/1954": [1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1] }
hyacha meaning 1 : available 0 : booked but can queued -1: cannot be booked asach ahe na
{ "11/11/1954": [1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1] }
while sending my data for selected slots same will be 1: selected 0: not selected
correct?
Will it be possible to change the date format to YYYY/MM/DD
, please? π
For example, 2008/11/26
hmmmm khupach problem ahe ka? mala mostly problem nahi vhayla pahije with my code ekda test karto and sangto
ok new development.... I need date in "YYYY/MM/DD" format
azun ek development.... Instead of sending timeslots in the array format i will send unix timestamp of timeslot which has to booked simple ekdam
azun ek development.... Instead of sending timeslots in the array format i will send unix timestamp of timeslot which has to booked simple ekdam
ignore
Profile
Create Over multiple days
Events
Change password via link redirect to a HTML form
Help shows admin notifications and allows club to send messages to admin
About - static
Admin panel pending
Calendar