 u8d985u8d8b1u8d8adu8d984u8d987 1u800 u8d8a7u8d986u8d8aau8d8aeu8d8a7u8d8a8 u8d8a7u8d982u8d984u8d8a7u8d985 u8d8a7u8d986u8d8aau8d8aeu8d8a7u8d8a8 u8d8a7u8d982u8d984u8d8a7u8d985 u8f09f92ba u8d985u8db8cu8d8b2 u8f09faa91 u8d8b5u8d986u8d8afu8d984u8db8c u8d985u8d8b1u8d8adu8d984u8d987 u8d8a8u8d8b9u8d8af u8d985u8d8b1u8d8adu8d984u8d987 2u800 u8d8a7u8d986u8d8aau8d8aeu8d8a7u8d8a8 u8d8aau8d8a7u8d8b1u8db8cu8d8ae u8d8a7u8d986u8d8aau8d8aeu8d8a7u8d8a8 u8d8b1u8d988u8d8b2 u8d8b1u8d8b2u8d8b1u8d988 u8d8aau8d8a7u8d8b1u8db8cu8d8ae u8d8a8u8d8a7u8d8b2u8daafu8d8b4u8d8aa u8d985u8d8b1u8d8adu8d984u8d987 u8d8a8u8d8b9u8d8af u8d985u8d8b1u8d8adu8d984u8d987 3u800 u8d8a7u8d8b7u8d984u8d8a7u8d8b9u8d8a7u8d8aa u8d988 u8d8a7u8d8b1u8d8b3u8d8a7u8d984 u8d8a7u8d8b7u8d984u8d8a7u8d8b9u8d8a7u8d8aa u8d8b4u8d985u8d8a7 u8d8a8u8d8a7u8d8b2u8daafu8d8b4u8d8aa u8d8a7u8d8b1u8d8b3u8d8a7u8d984 u8d8a8u8d987 u8d988u8d8a7u8d8aau8d8b3u8e2808cu8d8a7u8d9be .step animation fadein .4su800; keyframes fadein from opacity 0u800; tou800 opacity 1u800; .item hover transform scale 1u800u82e05u800 ;border color #e91e63; .itemu82eselected border color #e91e63;background #ffe0f0; #calendar display flex;flex wrap wrap;border 1pxu800 solid #cccu800;border radius 12px;padding 10px; .calendar dayu800 width 70px;height 70px;margin 5pxu800;border radius 12px;line height 16px;text align center;display flex;flex direction column;justify content center;cursor pointer; .calendar dayu800u82edisabled background #eeeu800;color #aaau800;cursor notu800 allowed; .calendar dayu800u82eselected border 3pxu800 solid #e91e63; .dayu800 title font weight bold;margin bottom 3pxu800;font size 14px; .dayu800 capacity font size 12px;color #555u800;text align center; varu800 itemsdata "u8d985u8db8cu8d8b2" 10u800 "u8d8b5u8d986u8d8afu8d984u8db8c" 10u800 ; varu800 selecteditems ; varu800 booked ; varu800 selecteddate ""; u8d8a7u8d986u8d8aau8d8aeu8d8a7u8d8a8 u8d8a7u8d982u8d984u8d8a7u8d985 documentu82equeryselectorall ".item" .foreach iu800 iu800u82eonclick function varu800 valu800 thisu82edatasetu82evalue; ifu800 selecteditemsu82eincludes valu800 selecteditems selecteditemsu82efilter xu800 xu800 valu800 ; thisu82eclasslistu82eremove "selected" ; else selecteditemsu82epush valu800 ; thisu82eclasslistu82eaddu800 "selected" ; updatecalendar ; ; ; function showstep nu800 documentu82equeryselectorall ".step" .foreach su800 su800u82estyleu82edisplay "none" ; documentu82egetelementbyid "step" nu800 .styleu82edisplay "block"; u8d985u8d8b1u8d8adu8d984u8d987 1u800 documentu82egetelementbyid "next1" .onclick function ifu800 selecteditemsu82elength 0u800 alert "u8d984u8d8b7u8d981u8d8a7u8d98b u8d8adu8d8afu8d8a7u8d982u8d984 u8db8cu8daa9 u8d8a2u8db8cu8d8aau8d985 u8d8a7u8d986u8d8aau8d8aeu8d8a7u8d8a8 u8daa9u8d986u8db8cu8d8af" ;return; showstep 2u800 ; updatecalendar ; u8d8aau8d982u8d988u8db8cu8d985 u8d8a8u8d8a7 u8d8b1u8d986u8daaf u8d988 u8d8b8u8d8b1u8d981u8db8cu8d8aa u8d8b5u8d8adu8db8cu8d8ad function updatecalendar varu800 calu800 documentu82egetelementbyid "calendar" ; calu800u82einnerhtml ""; varu800 today newu800 date ; foru800 varu800 iu800 0u800;iu800 30u800;iu800 varu800 du800 newu800 date todayu82egettime iu800*24u800*60u800*60u800*1000 ; varu800 daystr du800u82etoisostring .split "tu800" 0u800 ; booked daystr booked daystr ; varu800 captexts ; varu800 full false; selecteditemsu82eforeach itu800 booked daystr itu800 booked daystr itu800 0u800; varu800 remaining itemsdata itu800 booked daystr itu800 ; captextsu82epush itu800 remaining u8d8a8u8d8a7u8d982u8db8c u8d985u8d8a7u8d986u8d8afu8d987 ; ifu800 remaining 0u800 full true; ; varu800 daydiv documentu82ecreateelement "divu800" ; daydivu82eclassname "calendar dayu800"; daydivu82edatasetu82edate daystr; daydivu82einnerhtml du800u82egetdate du800u82egetmonth 1u800 captextsu82ejoin " " ; u8d8aau8d8b9u8db8cu8db8cu8d986 u8d8b1u8d986u8daaf u8d8a8u8d8b1 u8d8a7u8d8b3u8d8a7u8d8b3 u8d8afu8d8b1u8d8b5u8d8af u8d9beu8d8b1 u8d8b4u8d8afu8d986 varu800 minperc 1u800; selecteditemsu82eforeach itu800 varu800 perc itemsdata itu800 booked daystr itu800 itemsdata itu800 ; ifu800 perc booked daystr itu800 itemsdata itu800 daydivu82eclasslistu82eaddu800 "disabled" ; daydivu82eonclick function ifu800 thisu82eclasslistu82econtains "disabled" return; documentu82equeryselectorall ".calendar dayu800" .foreach cu800 cu800u82eclasslistu82eremove "selected" ; thisu82eclasslistu82eaddu800 "selected" ; selecteddate thisu82edatasetu82edate; ; calu800u82eappendchild daydiv ; u8d985u8d8b1u8d8adu8d984u8d987 2u800 documentu82egetelementbyid "back2" .onclick function showstep 1u800 ; documentu82egetelementbyid "next2" .onclick function ifu800 selecteddate alert "u8d984u8d8b7u8d981u8d8a7u8d98b u8d8aau8d8a7u8d8b1u8db8cu8d8ae u8d8b1u8d8a7 u8d8a7u8d986u8d8aau8d8aeu8d8a7u8d8a8 u8daa9u8d986u8db8cu8d8af" ;return; showstep 3u800 ; updatesummary ; ; u8d985u8d8b1u8d8adu8d984u8d987 3u800 documentu82egetelementbyid "back3" .onclick function showstep 2u800 ; function updatesummary varu800 sumdiv documentu82egetelementbyid "summary" ; varu800 itemstxt selecteditemsu82ejoin "u8d88c " ; sumdivu82einnerhtml u8d8a7u8d982u8d984u8d8a7u8d985 itemstxt u8d8aau8d8a7u8d8b1u8db8cu8d8ae u8d8b1u8d8b2u8d8b1u8d988 selecteddate ; u8d8a7u8d8b1u8d8b3u8d8a7u8d984 u8d988u8d8a7u8d8aau8d8b3u8e2808cu8d8a7u8d9be documentu82egetelementbyid "send" .onclick function varu800 name documentu82egetelementbyid "name" .valueu82etrim ; varu800 phone documentu82egetelementbyid "phone" .valueu82etrim ; ifu800 name phone alert "u8d986u8d8a7u8d985 u8d988 u8d8b4u8d985u8d8a7u8d8b1u8d987 u8d8aau8d985u8d8a7u8d8b3 u8d8b1u8d8a7 u8d988u8d8a7u8d8b1u8d8af u8daa9u8d986u8db8cu8d8af" ;return; booked selecteddate booked selecteddate ; selecteditemsu82eforeach itu800 booked selecteddate itu800 booked selecteddate itu800 0u800 1u800; ; varu800 msgu800 u8d8b1u8d8b2u8d8b1u8d988 u8d8acu8d8afu8db8cu8d8af 0au800 0au8d8a7u8d982u8d984u8d8a7u8d985 selecteditemsu82ejoin "u8d88c " 0au8d8aau8d8a7u8d8b1u8db8cu8d8ae selecteddate 0au8d986u8d8a7u8d985 name 0au8d985u8d988u8d8a8u8d8a7u8db8cu8d984 phone 0au8d8aau8d988u8d8b6u8db8cu8d8adu8d8a7u8d8aa documentu82egetelementbyid "note" .value " " ; varu800 adminnumber "989056820426"; windowu82eopen " " adminnumber " text " msgu800 "_blank" ; ; 