favorite comment 0
thumb_up0thumb_down

directions_bikePrvní letos 🧮😇

Dneska jsem pochopil, ze už by zimak po třech letech a “par” tkm nějaký menší servis i snesl…. Že mě někdo na karbonovém kole předjede do kopce s aktuální váhou a výkonností dokážu akceptovat, avšak, že mi z kopce bez šlapání ujede o tolik, že už jej dole ani nevidím… to mi vysvětlilo leccos 🙈😅Jinak po včerejších dřepech a vzhledem k minimální setrvačnosti zimáka, jak jsem psal, velká chuťovka, ne asi…🦵🦿ale specifický trenál dobrý, po dlouhé době…😊👌🧮

Bicykel lock_open

place Graf prevýšenia

comment Komentáre ku aktivite

Momentálne sa tu nenachádzajú žiadne komentáre

Formulár sa odosiela
Pridaj komentár
Formulár sa odosiela
trending_up Vzdialenosť
98,4 km
schedule Čas
04:10:45
landscape Nastúpané
1 269 m

bar_chartŠtatistiky

Priemer Max
Rýchlosť 23,5 km/h 56,2 km/h
Výkon 172 W 595 W
Kadencia 71 rpm -
Tepová frekvencia 142 bpm 181 bpm
Energetický výdaj 2 589 kcal

cloudPodmienky

Priemerná teplota 6 °C

directions_bike Posledné aktivity bikera

thumb_up0thumb_down

rowing Swim - Hlidani psa s bazenem 🦮🙏😀

trending_up 0,5 km
schedule 00:11:07
landscape 0 m
thumb_up0thumb_down

directions_bike Chvilinku v podvečer 🌞

trending_up 36,0 km
schedule 01:42:41
landscape 428 m
thumb_up0thumb_down

rowing Workout - HIIT 🥵🚀🌧️

trending_up 0,0 km
schedule 01:00:17
landscape 0 m

place Segmenty

Názov segmentuSegment ČasMôj čas Priemerná rýchlosť Priemerný výkon Priemerný tep Najlepší čas na segmenteNajlepší čas
Formulár sa odosiela
keyboard_arrow_up Luha\u010dovice DH","segmentDistance":"D\u013a\u017eka: 3.61 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -4.3 %<\/b>","segmentNameHref":"kladna-zilin-%3E-luhacovice-dh"},"geometry":{"type":"LineString","coordinates":[["17.772395","49.090623",439.4],["17.772395","49.090623",439.4],["17.773537","49.091233",447.2],["17.774351","49.091464",448.6],["17.775427","49.091773",445.4],["17.775406","49.091815",444.6],["17.775073","49.091709",444.4],["17.774383","49.091485",446.8],["17.772932","49.090931",447.4],["17.77003","49.089361",438.8],["17.768294","49.088333",433.4],["17.767713","49.08785",431],["17.766474","49.085975",425.2],["17.76536","49.084509",426.4],["17.764619","49.083591",426.8],["17.764011","49.083199",426.4],["17.762255","49.082419",423.8],["17.761357","49.082244",422.6],["17.759566","49.08243",420.2],["17.75926","49.082593",419.4],["17.758898","49.0832",419.6],["17.757866","49.084241",416],["17.756996","49.085099",411.8],["17.756239","49.086402",401.4],["17.756233","49.086689",398.4],["17.756645","49.086721",394.6],["17.758337","49.086138",385.6],["17.758642","49.086233",383.2],["17.758359","49.086639",380.8],["17.75744","49.087788",372.6],["17.754812","49.089698",352.2],["17.753152","49.090555",341.2],["17.750994","49.092405",323.6],["17.750471","49.092937",316.2],["17.750823","49.093119",312.2],["17.751732","49.092912",307.2],["17.752086","49.093027",304.4],["17.75178","49.093377",300.8],["17.750363","49.094614",290]]}},{"type":"Feature","properties":{"type":99,"segment":"14595","segmentName":"Soln\u00e9","segmentDistance":"D\u013a\u017eka: 3.91 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 4.5 %<\/b>","segmentNameHref":"solne"},"geometry":{"type":"LineString","coordinates":[["17.748441","49.096506",260.4],["17.748441","49.096506",260.4],["17.749273","49.096962",257.8],["17.751523","49.097747",256.8],["17.75339","49.097972",256.8],["17.755235","49.098725",257],["17.755963","49.098993",257.4],["17.756408","49.099059",258.2],["17.757701","49.099661",261.8],["17.758124","49.099987",262.4],["17.75878","49.100416",263.2],["17.76012","49.100983",264],["17.760613","49.101151",264.4],["17.760452","49.101446",265.8],["17.760088","49.102131",267.4],["17.759962","49.102763",269.2],["17.760028","49.103357",269.2],["17.760236","49.104034",269.6],["17.761175","49.104796",275.2],["17.762138","49.105354",280],["17.762957","49.105859",283.4],["17.763662","49.106517",284.6],["17.763953","49.107115",282.4],["17.764455","49.107827",279],["17.764625","49.108929",273],["17.764898","49.109466",269.6],["17.765539","49.109794",267],["17.766838","49.110016",264.6],["17.768548","49.110264",265.6],["17.769613","49.110693",266.4],["17.771274","49.111453",271.6],["17.77179","49.111865",275.6],["17.771983","49.112605",281.6],["17.771933","49.113129",285.4],["17.771947","49.113721",289.6],["17.771932","49.114092",292.4],["17.771961","49.114598",296],["17.772518","49.1159",303.4],["17.772943","49.116317",306.6],["17.773788","49.116853",310],["17.774295","49.117185",312],["17.774856","49.117496",314.4],["17.775538","49.117917",317.2],["17.776096","49.118212",319.8],["17.77676","49.118572",321.2],["17.777571","49.119006",324.8],["17.7783","49.119412",327.2],["17.779223","49.119899",329.2],["17.780536","49.120687",330.8],["17.782393","49.121651",329.8],["17.783235","49.122075",328.8],["17.784414","49.122396",326.2]]}},{"type":"Feature","properties":{"type":99,"segment":"17665","segmentName":"Nad p\u0159ehradou","segmentDistance":"D\u013a\u017eka: 1.96 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 3.2 %<\/b>","segmentNameHref":"nad-prehradou"},"geometry":{"type":"LineString","coordinates":[["17.766838","49.110016",264.6],["17.766838","49.110016",264.6],["17.768548","49.110264",265.6],["17.769613","49.110693",266.4],["17.771274","49.111453",271.6],["17.77179","49.111865",275.6],["17.771983","49.112605",281.6],["17.771933","49.113129",285.4],["17.771947","49.113721",289.6],["17.771932","49.114092",292.4],["17.771961","49.114598",296],["17.772518","49.1159",303.4],["17.772943","49.116317",306.6],["17.773788","49.116853",310],["17.774295","49.117185",312],["17.774856","49.117496",314.4],["17.775538","49.117917",317.2],["17.776096","49.118212",319.8],["17.77676","49.118572",321.2],["17.777571","49.119006",324.8],["17.7783","49.119412",327.2],["17.779223","49.119899",329.2],["17.780536","49.120687",330.8],["17.782393","49.121651",329.8],["17.783235","49.122075",328.8],["17.784414","49.122396",326.2],["17.785204","49.122398",325.2]]}},{"type":"Feature","properties":{"type":99,"segment":"67173","segmentName":"h\u00e1jenka","segmentDistance":"D\u013a\u017eka: 7.13 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.9 %<\/b>","segmentNameHref":"hajenka"},"geometry":{"type":"LineString","coordinates":[["17.7859","49.122594",324],["17.7859","49.122594",324],["17.787435","49.122599",320.4],["17.788714","49.122623",316.6],["17.790213","49.122607",314],["17.791548","49.122845",312],["17.793391","49.123474",309],["17.79741","49.125066",302.6],["17.799372","49.126074",300.2],["17.800398","49.126914",300],["17.801699","49.128555",300.6],["17.802759","49.129426",300.8],["17.803937","49.130309",302.6],["17.805958","49.131796",303.8],["17.807212","49.132738",304.2],["17.807595","49.133069",304.8],["17.809006","49.134365",306],["17.811808","49.136844",309.4],["17.812231","49.137473",309.6],["17.812304","49.138229",309.6],["17.81197","49.139888",310],["17.811521","49.140677",310.8],["17.810642","49.14146",312.2],["17.810133","49.141735",311.6],["17.806058","49.143738",321.6],["17.805385","49.144419",324.2],["17.803546","49.147203",332.6],["17.803161","49.148122",333.8],["17.803229","49.148929",334.8],["17.80375","49.150397",339],["17.804322","49.151451",341.2],["17.805179","49.152494",344],["17.805419","49.153232",346],["17.805282","49.154146",349],["17.804316","49.155583",354.8],["17.803235","49.157675",362.8],["17.802783","49.158962",368.2],["17.802425","49.159899",372.8],["17.802295","49.160399",377.2],["17.802269","49.160763",380],["17.802218","49.16097",381.8],["17.802383","49.16118",383.8],["17.80251","49.161349",385],["17.802668","49.161663",387.2],["17.803018","49.162665",392.8],["17.803033","49.163582",396],["17.803359","49.164599",400.8],["17.803623","49.165229",405.8],["17.803686","49.165556",407.6],["17.803813","49.165979",410.8],["17.804006","49.16655",415.6],["17.804073","49.166884",417.8],["17.804112","49.167138",420.4],["17.80393","49.167409",423],["17.8038","49.167552",423.8],["17.803633","49.167964",426.6],["17.803583","49.168554",428.8],["17.803354","49.169066",430.4],["17.803279","49.169405",431.4],["17.803282","49.169748",433],["17.803092","49.170569",437.8],["17.802963","49.171032",440.6],["17.802783","49.171571",445.8],["17.802666","49.172087",449.8],["17.802565","49.17248",453.4],["17.802475","49.173048",456.8],["17.802387","49.173595",459.4]]}},{"type":"Feature","properties":{"type":99,"segment":"17946","segmentName":"ITALKA MiSca - kostel DH sprint","segmentDistance":"D\u013a\u017eka: 2.05 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"italka-misca-kostel-dh-sprint"},"geometry":{"type":"LineString","coordinates":[["17.793391","49.123474",309],["17.793391","49.123474",309],["17.79741","49.125066",302.6],["17.799372","49.126074",300.2],["17.800398","49.126914",300],["17.801699","49.128555",300.6],["17.802759","49.129426",300.8],["17.803937","49.130309",302.6],["17.805958","49.131796",303.8],["17.807212","49.132738",304.2],["17.807595","49.133069",304.8],["17.809006","49.134365",306],["17.811808","49.136844",309.4]]}},{"type":"Feature","properties":{"type":99,"segment":"72785","segmentName":"Dolno-Horn\u00ed climbing ride","segmentDistance":"D\u013a\u017eka: 3.88 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 4 %<\/b>","segmentNameHref":"dolno-horni-climbing-ride"},"geometry":{"type":"LineString","coordinates":[["17.81197","49.139888",310],["17.81197","49.139888",310],["17.811521","49.140677",310.8],["17.810642","49.14146",312.2],["17.810133","49.141735",311.6],["17.806058","49.143738",321.6],["17.805385","49.144419",324.2],["17.803546","49.147203",332.6],["17.803161","49.148122",333.8],["17.803229","49.148929",334.8],["17.80375","49.150397",339],["17.804322","49.151451",341.2],["17.805179","49.152494",344],["17.805419","49.153232",346],["17.805282","49.154146",349],["17.804316","49.155583",354.8],["17.803235","49.157675",362.8],["17.802783","49.158962",368.2],["17.802425","49.159899",372.8],["17.802295","49.160399",377.2],["17.802269","49.160763",380],["17.802218","49.16097",381.8],["17.802383","49.16118",383.8],["17.80251","49.161349",385],["17.802668","49.161663",387.2],["17.803018","49.162665",392.8],["17.803033","49.163582",396],["17.803359","49.164599",400.8],["17.803623","49.165229",405.8],["17.803686","49.165556",407.6],["17.803813","49.165979",410.8],["17.804006","49.16655",415.6],["17.804073","49.166884",417.8],["17.804112","49.167138",420.4],["17.80393","49.167409",423],["17.8038","49.167552",423.8],["17.803633","49.167964",426.6],["17.803583","49.168554",428.8],["17.803354","49.169066",430.4],["17.803279","49.169405",431.4],["17.803282","49.169748",433],["17.803092","49.170569",437.8]]}},{"type":"Feature","properties":{"type":99,"segment":"18011","segmentName":"Dol\u016f to Horn\u00ed Tr\u00e1vn\u00edky","segmentDistance":"D\u013a\u017eka: 4.18 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -3.8 %<\/b>","segmentNameHref":"dolu-to-horni-travniky"},"geometry":{"type":"LineString","coordinates":[["17.80166","49.176007",455.6],["17.80166","49.176007",455.6],["17.80117","49.176608",451.4],["17.800531","49.177649",445.8],["17.800056","49.178567",439.2],["17.79999","49.179723",428.2],["17.800914","49.180834",418],["17.801332","49.1819",410.2],["17.802616","49.182741",398.4],["17.803067","49.183172",394],["17.803474","49.184374",384.6],["17.803939","49.185745",373.8],["17.804395","49.186526",367.6],["17.80477","49.187674",359.2],["17.804778","49.188358",354.4],["17.804595","49.188804",351],["17.804306","49.189348",349.2],["17.804044","49.190231",347],["17.804055","49.191137",344.4],["17.804265","49.191598",343],["17.804709","49.19231",340.2],["17.804883","49.192778",338.6],["17.804851","49.193066",337.2],["17.804415","49.193608",334.4],["17.803873","49.194235",331.6],["17.803509","49.195172",329.2],["17.803174","49.196531",326],["17.802911","49.197392",323.8],["17.802283","49.198304",322],["17.802093","49.198682",320.6],["17.801923","49.19895",320],["17.801629","49.199389",319.4],["17.801554","49.200021",319],["17.80187","49.200791",321.6],["17.801919","49.201496",322.4],["17.802083","49.201894",320.2],["17.802679","49.202461",316.8],["17.803026","49.203004",315],["17.803875","49.204676",308.4],["17.80516","49.205775",300.6],["17.805898","49.206341",298.4],["17.806682","49.206859",298.2],["17.807459","49.207391",295.8],["17.808883","49.208366",294],["17.80976","49.208936",292.2],["17.81068","49.209874",290.4],["17.811456","49.210638",287.8],["17.812254","49.211439",286.2],["17.81305","49.212187",285.4],["17.813345","49.212545",284.6]]}},{"type":"Feature","properties":{"type":99,"segment":"18012","segmentName":"Z\u00e1dve\u0159ice tour","segmentDistance":"D\u013a\u017eka: 2.71 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -1.2 %<\/b>","segmentNameHref":"zadverice-tour"},"geometry":{"type":"LineString","coordinates":[["17.813345","49.212545",284.6],["17.813345","49.212545",284.6],["17.813608","49.212942",283.8],["17.813703","49.213561",283.6],["17.813478","49.214153",281.8],["17.812703","49.214688",278.4],["17.811225","49.215345",273.4],["17.809089","49.216362",272.4],["17.808556","49.216762",272],["17.807564","49.216739",273.2],["17.805403","49.216595",272.2],["17.80291","49.215972",272.4],["17.801956","49.215871",273.8],["17.801015","49.216024",277.4],["17.800066","49.21595",279.6],["17.79918","49.216224",283.2],["17.798581","49.216434",285.8],["17.79755","49.216312",291.4],["17.794086","49.216282",291],["17.790833","49.21606",283.6],["17.789652","49.215844",279.6],["17.788506","49.215962",275],["17.787203","49.21643",271],["17.785616","49.216965",264.4],["17.784853","49.217617",260.8],["17.784052","49.218015",259.2]]}},{"type":"Feature","properties":{"type":99,"segment":"15511","segmentName":"Z\u00e1dve\u0159ice berg","segmentDistance":"D\u013a\u017eka: 459.90 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 2 %<\/b>","segmentNameHref":"zadverice-berg"},"geometry":{"type":"LineString","coordinates":[["17.80291","49.215972",272.4],["17.80291","49.215972",272.4],["17.801956","49.215871",273.8],["17.801015","49.216024",277.4],["17.800066","49.21595",279.6],["17.79918","49.216224",283.2],["17.798581","49.216434",285.8]]}},{"type":"Feature","properties":{"type":99,"segment":"18013","segmentName":"L\u00edpa tour","segmentDistance":"D\u013a\u017eka: 1.62 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: 0 %<\/b>","segmentNameHref":"lipa-tour"},"geometry":{"type":"LineString","coordinates":[["17.778745","49.216898",257.8],["17.778745","49.216898",257.8],["17.77698","49.216754",256.4],["17.775679","49.216423",256.2],["17.773982","49.215539",256.2],["17.773249","49.215174",256.2],["17.771367","49.214936",256.8],["17.769514","49.215155",256.4],["17.767795","49.215561",257.6],["17.766245","49.215692",258.4],["17.76365","49.21573",257.4],["17.762212","49.215679",257.8],["17.759984","49.215942",255.6],["17.75868","49.216322",255.4],["17.757299","49.216746",253],["17.757495","49.217157",252.2],["17.757825","49.217919",251.4],["17.757968","49.218871",251.2],["17.758417","49.21963",252.4],["17.758833","49.219853",253.8],["17.759619","49.219889",258.6],["17.760648","49.219809",264.6],["17.761414","49.219706",270],["17.763168","49.219682",279.6],["17.763923","49.219791",283.8],["17.76463","49.219941",287.8],["17.765894","49.220329",293.6],["17.766353","49.220513",296.6],["17.766908","49.220755",300],["17.767535","49.221058",304],["17.768178","49.221223",306.8],["17.769495","49.22161",312.8],["17.770491","49.221919",317.4],["17.771396","49.222469",321.8],["17.771948","49.223114",325],["17.772135","49.223923",327.2],["17.771861","49.225304",329.2],["17.772018","49.226212",329.8],["17.772233","49.227297",331.6],["17.772394","49.22803",337],["17.772424","49.228713",343.8],["17.772252","49.229322",348.2],["17.772142","49.229622",350.6],["17.772107","49.229859",352.6],["17.772099","49.230423",356.4]]}},{"type":"Feature","properties":{"type":99,"segment":"81827","segmentName":"Z\u00e1meck\u00e1 k ZOO","segmentDistance":"D\u013a\u017eka: 1.07 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.8 %<\/b>","segmentNameHref":"zamecka-k-zoo"},"geometry":{"type":"LineString","coordinates":[["17.72748","49.266023",272.2],["17.72748","49.266023",272.2],["17.725469","49.267359",283.4],["17.724308","49.268045",289.8],["17.72157","49.269015",287.8],["17.718194","49.269884",298.8],["17.717073","49.269997",301.4]]}},{"type":"Feature","properties":{"type":99,"segment":"17902","segmentName":"Ze ZOO","segmentDistance":"D\u013a\u017eka: 2.07 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.9 %<\/b>","segmentNameHref":"ze-zoo"},"geometry":{"type":"LineString","coordinates":[["17.713065","49.271913",299.8],["17.713065","49.271913",299.8],["17.711235","49.272735",289.8],["17.709012","49.273556",270.6],["17.706467","49.274537",263.4],["17.704735","49.275328",262],["17.703081","49.27576",266],["17.702152","49.276073",271],["17.700582","49.27712",269],["17.697755","49.278271",272.2],["17.695412","49.278906",273.8],["17.69264","49.279617",276.8],["17.689796","49.2802",277],["17.688121","49.280712",281.6]]}},{"type":"Feature","properties":{"type":99,"segment":"17903","segmentName":"Se\u0161up ze ZOO","segmentDistance":"D\u013a\u017eka: 663.20 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -5.7 %<\/b>","segmentNameHref":"sesup-ze-zoo"},"geometry":{"type":"LineString","coordinates":[["17.713065","49.271913",299.8],["17.713065","49.271913",299.8],["17.711235","49.272735",289.8],["17.709012","49.273556",270.6],["17.706467","49.274537",263.4]]}},{"type":"Feature","properties":{"type":99,"segment":"17904","segmentName":"Frystak climb","segmentDistance":"D\u013a\u017eka: 476.90 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 3 %<\/b>","segmentNameHref":"frystak-climb"},"geometry":{"type":"LineString","coordinates":[["17.680323","49.288384",275.6],["17.680323","49.288384",275.6],["17.677647","49.289855",283.6]]}},{"type":"Feature","properties":{"type":99,"segment":"40587","segmentName":"Fry\u0161t\u00e1k-Lukove\u010dek","segmentDistance":"D\u013a\u017eka: 3.22 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.2 %<\/b>","segmentNameHref":"frystak-lukovecek"},"geometry":{"type":"LineString","coordinates":[["17.675042","49.291385",292.2],["17.675042","49.291385",292.2],["17.674728","49.292179",293.2],["17.673866","49.293823",293.4],["17.673312","49.294734",293.4],["17.673263","49.295994",291.6],["17.673031","49.297021",293.6],["17.672549","49.298198",295.6],["17.672342","49.2992",297.4],["17.67142","49.299803",298],["17.670302","49.300705",299.8],["17.669865","49.301388",299.6],["17.669512","49.30228",302.4],["17.668935","49.302867",303.2],["17.668792","49.303207",303],["17.668228","49.303508",305.8],["17.66679","49.303763",309.4],["17.664417","49.304025",316.6],["17.663979","49.304434",319],["17.663547","49.305413",321.6],["17.663244","49.305717",321.6],["17.661311","49.306003",322.8],["17.660316","49.306254",323.2],["17.659141","49.306776",324.4],["17.65643","49.307444",329.2],["17.652941","49.30754",322.4],["17.65182","49.307655",322.6],["17.649804","49.308345",325.6],["17.64846","49.308822",329.8],["17.646473","49.309747",331.2],["17.644463","49.310782",325.4],["17.643369","49.311191",324.4]]}},{"type":"Feature","properties":{"type":99,"segment":"40588","segmentName":"Fry\u0161t\u00e1k-Hole\u0161ov","segmentDistance":"D\u013a\u017eka: 7.34 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.4 %<\/b>","segmentNameHref":"frystak-holesov"},"geometry":{"type":"LineString","coordinates":[["17.675042","49.291385",292.2],["17.675042","49.291385",292.2],["17.674728","49.292179",293.2],["17.673866","49.293823",293.4],["17.673312","49.294734",293.4],["17.673263","49.295994",291.6],["17.673031","49.297021",293.6],["17.672549","49.298198",295.6],["17.672342","49.2992",297.4],["17.67142","49.299803",298],["17.670302","49.300705",299.8],["17.669865","49.301388",299.6],["17.669512","49.30228",302.4],["17.668935","49.302867",303.2],["17.668792","49.303207",303],["17.668228","49.303508",305.8],["17.66679","49.303763",309.4],["17.664417","49.304025",316.6],["17.663979","49.304434",319],["17.663547","49.305413",321.6],["17.663244","49.305717",321.6],["17.661311","49.306003",322.8],["17.660316","49.306254",323.2],["17.659141","49.306776",324.4],["17.65643","49.307444",329.2],["17.652941","49.30754",322.4],["17.65182","49.307655",322.6],["17.649804","49.308345",325.6],["17.64846","49.308822",329.8],["17.646473","49.309747",331.2],["17.644463","49.310782",325.4],["17.643369","49.311191",324.4],["17.641673","49.311409",323.2],["17.6403","49.311503",320],["17.637553","49.311707",314],["17.634974","49.311921",313.6],["17.633087","49.312384",312.4],["17.631121","49.313389",307.2],["17.629129","49.314836",300.6],["17.627398","49.316127",306.4],["17.625786","49.316937",309.4],["17.623471","49.317289",307.2],["17.621566","49.317438",305.2],["17.620376","49.31767",304.4],["17.619633","49.318186",304.2],["17.617935","49.319107",301.8],["17.614726","49.320008",293.4],["17.614018","49.320382",291.2],["17.613468","49.320983",290.6],["17.611698","49.32188",287.4],["17.610166","49.32246",283.2],["17.608252","49.322906",277.8],["17.60745","49.323584",276.8],["17.606694","49.323886",276.2],["17.605655","49.323773",274.2],["17.603448","49.323855",269.8],["17.601846","49.324186",267.8],["17.599661","49.324334",263.8],["17.597826","49.324815",260.2],["17.596934","49.325058",256.6],["17.596903","49.3254",256.4],["17.596704","49.325627",256.6],["17.593834","49.326692",253.6],["17.591661","49.327628",249],["17.590983","49.328016",246]]}},{"type":"Feature","properties":{"type":99,"segment":"40589","segmentName":"Lukove\u010dek - P\u0159\u00edlepy","segmentDistance":"D\u013a\u017eka: 3.76 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.5 %<\/b>","segmentNameHref":"lukovecek-prilepy"},"geometry":{"type":"LineString","coordinates":[["17.661311","49.306003",322.8],["17.661311","49.306003",322.8],["17.660316","49.306254",323.2],["17.659141","49.306776",324.4],["17.65643","49.307444",329.2],["17.652941","49.30754",322.4],["17.65182","49.307655",322.6],["17.649804","49.308345",325.6],["17.64846","49.308822",329.8],["17.646473","49.309747",331.2],["17.644463","49.310782",325.4],["17.643369","49.311191",324.4],["17.641673","49.311409",323.2],["17.6403","49.311503",320],["17.637553","49.311707",314],["17.634974","49.311921",313.6],["17.633087","49.312384",312.4],["17.631121","49.313389",307.2],["17.629129","49.314836",300.6],["17.627398","49.316127",306.4],["17.625786","49.316937",309.4],["17.623471","49.317289",307.2],["17.621566","49.317438",305.2],["17.620376","49.31767",304.4],["17.619633","49.318186",304.2],["17.617935","49.319107",301.8],["17.614726","49.320008",293.4]]}},{"type":"Feature","properties":{"type":99,"segment":"11970","segmentName":"PZ Hol sprint 2","segmentDistance":"D\u013a\u017eka: 3.03 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.7 %<\/b>","segmentNameHref":"pz-hol-sprint-2"},"geometry":{"type":"LineString","coordinates":[["17.589559","49.314835",240.8],["17.589559","49.314835",240.8],["17.584769","49.314823",237.2],["17.575271","49.314935",230.2],["17.574977","49.314946",229.6],["17.574885","49.314488",230],["17.574824","49.31308",230],["17.574702","49.311275",230.6],["17.574597","49.310441",229.6],["17.574298","49.310282",229.2],["17.572698","49.31026",227.8],["17.570705","49.310754",227.2],["17.56621","49.31239",225.6],["17.562454","49.313659",223.8],["17.558537","49.314535",221.2],["17.554477","49.315062",218.8],["17.553185","49.315221",219.4],["17.553117","49.315546",219.4],["17.553389","49.317084",219.2],["17.553311","49.317383",219],["17.551179","49.317858",219.8]]}},{"type":"Feature","properties":{"type":99,"segment":"89390","segmentName":"Zahna\u0161ovice h\u0159bitov - k\u0159i\u017eovatka","segmentDistance":"D\u013a\u017eka: 1.16 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 2.9 %<\/b>","segmentNameHref":"zahnasovice-hrbitov-krizovatka"},"geometry":{"type":"LineString","coordinates":[["17.557711","49.300384",220.6],["17.557711","49.300384",220.6],["17.557082","49.298765",222.8],["17.557075","49.297726",224],["17.557343","49.29622",226.6],["17.557818","49.295133",230.4],["17.557765","49.293976",236.6],["17.557443","49.292944",243.8],["17.557308","49.29174",251.4]]}},{"type":"Feature","properties":{"type":99,"segment":"89391","segmentName":"Kov\u00e1rna sprint","segmentDistance":"D\u013a\u017eka: 569.20 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.6 %<\/b>","segmentNameHref":"kovarna-sprint"},"geometry":{"type":"LineString","coordinates":[["17.54815","49.277407",232.2],["17.54815","49.277407",232.2],["17.548223","49.277074",231.6],["17.548636","49.276331",229.6],["17.548793","49.275547",230.6],["17.549223","49.274799",237.8],["17.549231","49.274531",239],["17.549504","49.273587",242]]}},{"type":"Feature","properties":{"type":99,"segment":"44764","segmentName":"Myslo\u010dovice \u2192 Sazovice, koupali\u0161t\u011b","segmentDistance":"D\u013a\u017eka: 1.61 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.3 %<\/b>","segmentNameHref":"myslocovice-sazovice-koupaliste"},"geometry":{"type":"LineString","coordinates":[["17.570522","49.253921",210.8],["17.570522","49.253921",210.8],["17.570551","49.253501",212.6],["17.571443","49.251751",214.4],["17.571918","49.250673",213.2],["17.571799","49.250377",212.8],["17.570681","49.249398",211.6],["17.56898","49.248076",212.2],["17.5685","49.247613",214.6],["17.567514","49.245599",209.8],["17.567414","49.24504",209],["17.568398","49.243513",208.6],["17.568612","49.242944",208.2],["17.568249","49.242406",207.6],["17.568073","49.241883",207.8]]}},{"type":"Feature","properties":{"type":99,"segment":"44765","segmentName":"Segment","segmentDistance":"D\u013a\u017eka: 1.73 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 4.8 %<\/b>","segmentNameHref":"segment"},"geometry":{"type":"LineString","coordinates":[["17.56822","49.241362",207.6],["17.56822","49.241362",207.6],["17.569603","49.239523",209.2],["17.569782","49.238899",210.6],["17.569609","49.238016",210.8],["17.570088","49.237171",207.6],["17.570929","49.236373",206],["17.571679","49.235514",205.4],["17.573803","49.233384",211.4],["17.574974","49.232426",218],["17.576236","49.231395",222],["17.576812","49.231045",225.8],["17.577643","49.230787",231.4],["17.578159","49.230315",233.8],["17.579095","49.229718",238.8]]}},{"type":"Feature","properties":{"type":99,"segment":"44766","segmentName":"Sazovice konec ke kapli\u010dce","segmentDistance":"D\u013a\u017eka: 761.30 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 4.3 %<\/b>","segmentNameHref":"sazovice-konec-ke-kaplicce"},"geometry":{"type":"LineString","coordinates":[["17.573803","49.233384",211.4],["17.573803","49.233384",211.4],["17.574974","49.232426",218],["17.576236","49.231395",222],["17.576812","49.231045",225.8],["17.577643","49.230787",231.4],["17.578159","49.230315",233.8],["17.579095","49.229718",238.8],["17.580628","49.229411",242.6],["17.580942","49.229217",243.4]]}},{"type":"Feature","properties":{"type":99,"segment":"113787","segmentName":"te\u010dovice downhill short","segmentDistance":"D\u013a\u017eka: 1.17 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -2.6 %<\/b>","segmentNameHref":"tecovice-downhill-short"},"geometry":{"type":"LineString","coordinates":[["17.581839","49.22639",240.8],["17.581839","49.22639",240.8],["17.582022","49.224805",237],["17.582784","49.224061",233],["17.58415","49.223157",225],["17.585431","49.222389",216.4],["17.58611","49.221748",212.6],["17.587219","49.221082",212.6],["17.587604","49.219983",211.8],["17.587556","49.21953",211.4],["17.587283","49.218671",209.8],["17.587425","49.217803",207.2]]}},{"type":"Feature","properties":{"type":99,"segment":"62363","segmentName":"Malenovice - Bohuslavice","segmentDistance":"D\u013a\u017eka: 842.90 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 10 %<\/b>","segmentNameHref":"malenovice-bohuslavice"},"geometry":{"type":"LineString","coordinates":[["17.606564","49.192847",245.2],["17.606564","49.192847",245.2],["17.60754","49.192341",245.2],["17.608557","49.191712",249.2],["17.609065","49.191358",252.8],["17.609197","49.190804",258.4],["17.608905","49.190197",266.4],["17.608712","49.189819",271.8],["17.608492","49.189432",277],["17.608076","49.188655",285.8],["17.607866","49.188181",291.6],["17.607614","49.187798",296.6],["17.607344","49.18735",301.6],["17.607054","49.186808",309.8],["17.606919","49.186463",314.2]]}},{"type":"Feature","properties":{"type":99,"segment":"36918","segmentName":"Prohled climb","segmentDistance":"D\u013a\u017eka: 1.08 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 8.9 %<\/b>","segmentNameHref":"prohled-climb"},"geometry":{"type":"LineString","coordinates":[["17.608557","49.191712",249.2],["17.608557","49.191712",249.2],["17.609065","49.191358",252.8],["17.609197","49.190804",258.4],["17.608905","49.190197",266.4],["17.608712","49.189819",271.8],["17.608492","49.189432",277],["17.608076","49.188655",285.8],["17.607866","49.188181",291.6],["17.607614","49.187798",296.6],["17.607344","49.18735",301.6],["17.607054","49.186808",309.8],["17.606919","49.186463",314.2],["17.606966","49.186085",320.6],["17.606878","49.185453",326.2],["17.606843","49.184904",330.2],["17.60682","49.183948",336.6],["17.606822","49.18348",339],["17.606824","49.183026",342.8],["17.606877","49.182919",343.6]]}},{"type":"Feature","properties":{"type":99,"segment":"5478","segmentName":"Prohled-Lhota climb","segmentDistance":"D\u013a\u017eka: 1.18 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.7 %<\/b>","segmentNameHref":"prohled-lhota-climb"},"geometry":{"type":"LineString","coordinates":[["17.60793","49.18159",348.8],["17.60793","49.18159",348.8],["17.607107","49.180198",359.4],["17.606665","49.17941",363.6],["17.606461","49.178862",365.4],["17.605556","49.177212",368],["17.604948","49.176202",367],["17.604836","49.175361",365.8],["17.604975","49.173728",365.8],["17.604874","49.17263",367.8]]}}] var layerGroup = L.layerGroup().addTo(map_leaflet); var layerGroupAllSegments = L.layerGroup(); if (gpx_segments != undefined) { gpx_segments_layer = L.geoJson(gpx_segments, { style: function(feature, layer) { return { 'weight': 10, 'color': '#bb6300', 'opacity': 1, }; }, onEachFeature:onEachFeature, }); function onEachFeature(feature, layer) { sn++; var prop = layer.feature.properties; var desc = getDescription(prop.type, prop.trailName, prop.trailId, prop.trailStatus, prop.segmentName, prop.segment, prop.segmentDistance, prop.segmentGrade, prop.segmentNameHref); var sl = feature.geometry.coordinates[0][1]; var sr = feature.geometry.coordinates[0][0]; var el = feature.geometry.coordinates[feature.geometry.coordinates.length - 1][1]; var er = feature.geometry.coordinates[feature.geometry.coordinates.length - 1][0]; if (sl != '' && sr != '' && el != '' && er != '') { var sm = new L.marker(L.latLng(sl, sr), {icon: startIcon}); var em = new L.marker(L.latLng(el, er), {icon: endIcon}); } var layerGroup = L.featureGroup(); layerGroup.addLayer(sm); layerGroup.addLayer(em); sm.bindPopup(desc); em.bindPopup(desc); var popupLayer = L.popup().setLatLng(L.latLng(sl, sr)).setContent(desc); layerGroup.bindPopup(popupLayer).openPopup(); layerGroup.addLayer(layer); segments.push(layerGroup); layer.on("click", function(e) { var desc = getDescription(prop.type, prop.trailName, prop.trailId, prop.trailStatus, prop.segmentName, prop.segment, prop.segmentDistance, prop.segmentGrade, prop.segmentNameHref); if (desc) { var popup = L.popup() .setLatLng(e.latlng) .setContent(desc) .openOn(map_leaflet); } }); //controlLayers.addOverlay(layerGroup, 'Segmenty na trase - ' + feature.properties.segmentName); } var displaySeg = 0; function showSegment(seg) { segments[displaySeg].remove(map_leaflet); segments[displaySeg]._popup.remove(map_leaflet); segments[seg].addTo(map_leaflet); segments[seg]._popup.addTo(map_leaflet); displaySeg = seg; var bounds = segments[seg].getBounds(); map_leaflet.fitBounds(bounds, {padding: [30, 30]}); $.scrollTo( '#map_leaflet', 800, {offset: -120} ); } } // geo location through leaflet plugin var lc = L.control.locate({ drawCircle: false, follow: true, markerStyle: {color: '#000000',fillColor: '#ee7711',fillOpacity: 0.7,weight: 4,opacity: 0.7,radius: 7}, strings: { title: "Ukáž mi, kde sa nachádzam", // title of the locate control popup: "Si v okolí {distance} {unit} od tohto bodu", // text to appear if user clicks on circle outsideMapBoundsMsg: "Nachádzaš sa mimo oblasti tejto mapy" // default message for onLocationOutsideMapBounds } }).addTo(map_leaflet); map_leaflet.on('startfollowing', function() { map_leaflet.on('dragstart', lc.stopFollowing); }).on('stopfollowing', function() { map_leaflet.off('dragstart', lc.stopFollowing); }); $(document).ready(function() { map_leaflet.on('baselayerchange', function(){ var id = event.currentTarget.layerId; var layer = this._layers[id]; $.ajax({ type: "POST", url: "/ajax.php?u=Cyklotrasy&f=saveDefaultMap&a=" + layer.options.name, }); }) }); $('#elevationDiv').html(''); $('.elevation').appendTo('#elevationDiv'); //gallery carousel multiple items - hack $(function(){ // init arrows $('.gallery-carousel').each(function(){ var itemsPerSlide = 3; if ($(this).data('items-per-slide')) itemsPerSlide = $(this).data('items-per-slide'); if ($('.carousel-item', this).length <= itemsPerSlide){ $('.carousel-control-next', this).addClass('disabled'); } }); $('.gallery-carousel').on('slide.bs.carousel', function (e) { if (!window.matchMedia("(min-width: 768px)").matches) return; // default behaviour on mobile /* CC 2.0 License Iatek LLC 2018 - Attribution required */ var $e = $(e.relatedTarget); var idx = $e.index(); var itemsPerSlide = 3; if ($(this).data('items-per-slide')) itemsPerSlide = $(this).data('items-per-slide'); var totalItems = $('.carousel-item', this).length; if ($(this).data('ended')==true && e.direction=='left'){ return false; } if (e.to===0){ $('.carousel-control-prev', this).addClass('disabled'); }else{ $('.carousel-control-prev', this).removeClass('disabled'); } if (e.to>=totalItems - itemsPerSlide){ $('.carousel-control-next', this).addClass('disabled'); $(this).data('ended', true); }else{ $('.carousel-control-next', this).removeClass('disabled'); $(this).data('ended', false); } }); }); function initEkkoLightbox(){ $('[data-toggle="lightbox"]:not(.lightbox-ready)').on('click', function(event) { event.preventDefault(); event.stopImmediatePropagation(); //$(this).removeAttr('href').attr('role', 'button'); var $this = $(this); $this.ekkoLightbox({ alwaysShowClose: true, wrapping: false, //Whether the gallery should loop or not leftArrow: '', rightArrow: '', onNavigate: function(){ $('.ekko-lightbox').removeClass('zoomed'); }, onShow: function(){ if (!$this.hasClass('no-zoom')) { $('.ekko-lightbox .modal-header').prepend('zoom_inzoom_out'); } $('.ekko-lightbox .ekko-lightbox-item').bind('touchstart touchend touchup swipeLeft swipeRight', function(event) { if ($('.ekko-lightbox').hasClass('zoomed') || (window.visualViewport && window.visualViewport.scale > 1.02)){ event.stopPropagation(); } }); $('.ekko-lightbox .ekko-lightbox-nav-overlay').bind('touchstart touchend touchup swipeLeft swipeRight', function(event) { if ($('.ekko-lightbox').hasClass('pinch-zoomed') || (window.visualViewport && window.visualViewport.scale > 1.02)){ $('.ekko-lightbox').addClass('pinch-zoomed'); event.stopPropagation(); } if (window.visualViewport && window.visualViewport.scale <= 1.02){ setTimeout(function(){ if (window.visualViewport && window.visualViewport.scale <= 1.02){ //check again after timeout $('.ekko-lightbox').removeClass('pinch-zoomed'); } },100); } }); if (window.matchMedia("(min-width: 768px)").matches) { $('body').addClass('ekko-modal-open'); } onPopupOpened('ekko-lightbox'); }, onShown: function(){ }, onHidden: function(){ $('body').removeClass('ekko-modal-open'); onPopupClosed(); } }); return false; }); $('[data-toggle="lightbox"]').addClass('lightbox-ready'); } $(function(){ $('.show-alt-in-lightbox[data-toggle="lightbox"]').each(function(){ $(this).data('footer', $(this).find('img').attr('title')); }); $('body').on('click', '.ekko-lightbox-zoom', function(){ $('.ekko-lightbox').toggleClass('zoomed'); }); $('body').on('click', '.ekko-lightbox.zoomed .ekko-lightbox-item.show ', function(){ $('.ekko-lightbox').removeClass('zoomed'); }) initEkkoLightbox(); $(document).ajaxComplete(function(event, xhr, settings) { //if (xhr.responseText.indexOf('lightbox') >= 0){ initEkkoLightbox(); //} }); }); function favoriteRide(ride) { $.ajax({ type: "POST", data: {id : ride, ride : 1}, dataType: "json", url: "/ajax.php?u=cyklotrasy&f=toggleFavourite", success: function(data) { if (data.added === 1) { $('.btn-wishlist.show-add-to-wishlist').hide(); $('.btn-wishlist.show-remove-from-wishlist').show(); //potrebuje dllllho zobrazit showMessageBar('#favoriteSuccess', 60*1000); } else { $('.btn-wishlist.show-remove-from-wishlist').hide(); $('.btn-wishlist.show-add-to-wishlist').show(); showMessageBar('#favoriteSuccessRemove'); } } }); } $(document).ready(function(){ //mobile map popup $('.close-map-widget').click(function(){ $('#map-widget').removeClass('show'); return false; }); $('.show-map-widget').click(function(){ $('#map-widget').addClass('show'); return false; }); $('a[href="#comments"]').on('click', function(e){ e.preventDefault(); commentsScroll('#comments'); return false; }); if ($('#segmenty').length){ if (location.hash.indexOf('#segmenty')>=0){ if (window.innerWidth>=768){ $.scrollTo( '#segmenty', 800, {offset: -100} ); } $('#segmenty-expander').prop('checked', true); } var $pagination = $('#segmentyList table .pagination-wrap'); $pagination.appendTo('#segmentyList'); $('#segmentyList .row-pagination').remove(); } }); var loadedComments_comments = false; function loadComments_comments(){ } // Comments $(function(){ $('.comment-form, .review-form', '#comments').on('submit', function(){ $(this).attr('autocomplete',"off"); // prevent prepopulating fields on backbtn click if (history.state && history.state.popupOpened === 'mobile-expander'){ $('.mobile-expander-content', '#comments').addClass('opened'); history.back(); } }); $('select[name=sort], select[name=filter]', '#comments').on('change', function() { let inputName = $(this).attr('name'); let sort = $('select[name=sort]', '#comments').val(); let filter = $('select[name=filter]', '#comments').length ? $('select[name=filter]', '#comments ').val() : ''; var url = "/ajax.php?m=komentare&f=loadCommentsWidget&a=bW9kdWw9dnlqYXpkeSZleHRlcm5hbElkPTE2NjAyNjkmaXRlbU5hbWU9ViVDMyVCRGphemQrJUM0JThELisxNjYwMjY5JmNvbW1lbnRUeXBlPWNvbW1lbnQmYXV0aG9yVXNlcklkPTE1NjUxMCZ3aWRnZXRJZD1jb21tZW50cyZhbGxvd0luc2VydD0xJmFsbG93UmVwbHk9MSZyZXR1cm5Vcmw9aHR0cHMlM0ElMkYlMkZ3d3cubXRoaWtlci5zayUyRmFrdGl2aXR5JTJGMTY2MDI2OSUyRmJpY3lrZWwtcHJ2bmktbGV0b3MuaHRtbCUzRm9kJTNEMiUyNnJpZGVfaWQlM0QxNjYwMjY5JnBhcnNlZFVybCU1QnNjaGVtZSU1RD1odHRwcyZwYXJzZWRVcmwlNUJob3N0JTVEPXd3dy5tdGhpa2VyLnNrJnBhcnNlZFVybCU1QnBhdGglNUQ9JTJGYWt0aXZpdHklMkYxNjYwMjY5JTJGYmljeWtlbC1wcnZuaS1sZXRvcy5odG1sJnBhcnNlZFVybCU1QnF1ZXJ5JTVEPW9kJTNEMiUyNnJpZGVfaWQlM0QxNjYwMjY5JmluY2x1ZGVDb21tZW50SWQ9MA|" + sort + "|" + filter; if (inputName === 'filter') { if (parseInt(filter) === 3 && !customScoreDone) { loadScoreSettingsModal(); return false; } } $('#comments .comments-body-content').addClass('show-loading'); $.ajax({ url: url, success: function(data) { $('#comments .comments-body-content').html(data).removeClass('show-loading'); } }); }); }); // Comments function toggleHiddenComment(comment_id) { $("#commentBox" + comment_id + " .comment-hidden").remove(); $("#commentBox" + comment_id + " .comment-content").show(); } function closeScoreFilterBanner() { $('#commentsScoreFilterBanner').fadeOut(150); $.post('/ajax.php?m=komentare&f=closeScoreFilterBanner'); } function commentsScroll(toElement, offset, noAnimation){ // edit/reply from feed link if ((typeof toElement === 'string' || toElement instanceof String) && toElement.indexOf('#commentBox') >= 0) { let commentId = parseInt(toElement.replace('#commentBox', '')); if (!isNaN(commentId) && commentId) { if (parseInt(localStorage.getItem('replyToCommentId')) === commentId) { localStorage.removeItem('replyToCommentId'); if ($('.comment-reply-btn', toElement).length) { history.replaceState(null, null, ' '); setTimeout(function(){ $('.comment-reply-btn', toElement).first().click(); }, 0); return; } } else if(parseInt(localStorage.getItem('editCommentId')) === commentId) { localStorage.removeItem('editCommentId'); if ( $('.comment-edit-btn', toElement).length) { history.replaceState(null, null, ' '); $('.comment-edit-btn', toElement).first().click(); return; } } } } if (!offset) offset = 0; if (!window.matchMedia("(min-width: 768px)").matches && true) { if ($(toElement).length) { $(toElement).closest('.comments-body-content').scrollTo( toElement, 800, {offset: -10 + offset} ); } } else { if ($(toElement).length){ var headerhHeight = 120 + ($('#shop-info-bar').length ? $('#shop-info-bar').outerHeight() : 0); if (!window.matchMedia("(min-width: 768px)").matches){ headerhHeight = $('#header').outerHeight() + $('#shop-detail-nav').outerHeight() + 20; } if (noAnimation){ setTimeout(function(){ $(window).scrollTop($(toElement).offset().top - headerhHeight + offset); }, 100); var dontScrollAgain = false; setTimeout(function(){ dontScrollAgain = true; }, 3000); $(window).on('load', function(){ if (!dontScrollAgain) $(window).scrollTop($(toElement).offset().top - headerhHeight + offset); }); } else { $.scrollTo( toElement, 800, {offset: -headerhHeight + offset} ); } } } } var customScoreDone = false; function loadMoreComments(btn) { let $btn = $(btn); if ($btn.find('.spinner-border:visible').length) { return false; } let nextPage = parseInt($btn.data('page')) + 1; let perPage = parseInt($btn.data('per-page')); $btn.find('.spinner-border').css("display", "inline-block"); $btnWrap = $btn.closest('.comment-load-more-wrap'); $.get("/ajax.php?m=komentare&f=loadMoreComments&a=" + $btn.data('params') + "|" + $btn.data('sort') + '|' + $btn.data('score') + '|' + nextPage, "", function (data) { $data = $('
' + data + '
'); $btnWrap.before($data.html()); $btn.find('.spinner-border').css("display", "none"); $btn.data('page', nextPage); if ($data.find('.comment:not(.comment-reply)').length < perPage) { $btnWrap.hide(); } }); } function scrollAndHighlightComment(commentBoxId, noAnimation){ if ($(commentBoxId).length){ let commentEl = $(commentBoxId); $('.comments .highlighted-animated').removeClass('highlighted-animated'); setTimeout(function(){ commentEl.addClass('highlighted-animated'); commentsScroll( commentBoxId, null, noAnimation); }, 10); } } function resetCommentForm($parent) { $('.comment-form-title-insert', $parent).show(); $('.comment-form-title-reply', $parent).hide(); $("[name=parent]", $parent).val(''); $("textarea", $parent).val(''); let widgetId = $parent.attr('id'); let $legend = $(".comment-form legend", $parent); if ($legend.data('text-original')) { $legend.html($legend.data('text-original')); } let $btn = $(".comment-form button.btn-comment-submit", $parent); if ($btn.data('text-original')) { $btn.html($btn.data('text-original')); } if (typeof window['commentFileUploader' + widgetId] !== 'undefined') { window['commentFileUploader' + widgetId].resetFiles(); } } $(function(){ var scrollToComment = false; function handleCommentBoxHash() { if (location.hash.indexOf('commentBox')>=0 || location.hash.indexOf('#comments-')>=0){ var hash = location.hash; var widgetId = '#comments'; hashParts = hash.split('/'); if (hashParts.length > 1) { widgetId = hashParts[0]; hash = '#' + hashParts[1]; // location.hash = #reviews/commentBox224814 } if (!window.matchMedia("(min-width: 768px)").matches){ var commentId = hash.replace('#commentBox', '').replace('#comments-',''); $('#commentBox' + commentId).parents('.mobile-expander').find('.mobile-expander-check').prop('checked', 'checked').trigger('change'); } if (hash.indexOf('#comments-')>=0 || hash.indexOf('#commentBox')>=0){ // from foreign url - highlight comment hash = hash.replace('#comments-','#commentBox'); scrollAndHighlightComment(hash, true); history.replaceState(null, null, widgetId); scrollToComment = true; } else { commentsScroll( hash, null, true ); //remove hash history.replaceState(null, null, ' '); scrollToComment = false; } } else { scrollToComment = false; } } handleCommentBoxHash(); $(window).on('hashchange', function() { handleCommentBoxHash(); }); if (location.hash.indexOf('#form-')>=0){ var hash = location.hash; commentsScroll( hash, null, true ); //remove hash history.replaceState(null, null, ' '); } if (location.hash == '#questions' || location.hash == '#reviews' || location.hash == '#comments'){ var widgetId = location.hash; if (!$(widgetId).length) widgetId = '#questions'; if ($(widgetId).length && !scrollToComment){ if (!window.matchMedia("(min-width: 768px)").matches){ $(widgetId + '-expander').prop('checked', 'checked').trigger('change'); } if ($('.comment-unread', widgetId).length){ commentsScroll('#'+$('.comment-unread', widgetId).first().attr('id'), null, true); } else { commentsScroll(widgetId, null, true); } } } $('.comments').on('click', '.btn-comment-show-insert-popup', function(){ var $parent = $(this).closest('.comments'); resetCommentForm($parent); }); }); $(function(){ $('textarea', '.comments').on('input', function(){ if ($(this).val().length){ $('.comment-form .btn').addClass('mobile-active'); }else{ $('.comment-form .btn').removeClass('mobile-active'); } $(this).removeClass('is-invalid'); }); function setCommentTextareaPlaceholder(){ if (window.matchMedia("(min-width: 768px)").matches){ $('textarea', '.comments').attr('placeholder', $('textarea', '.comments').data('placeholder-desktop')); }else{ $('textarea', '.comments').attr('placeholder', $('textarea', '.comments').data('placeholder-mobile')); } } setCommentTextareaPlaceholder(); $(window).resize(function(){ setCommentTextareaPlaceholder(); }); }); $(function(){ $('.comment-form button[type=submit]').attr('disabled', 'disabled'); $('.comment-form textarea').click(function(){ $('#loginModal').modal('show'); }); }); // #TODO function hideForumPosts() { $('.forum_post_hidden').each(function(){ target = $(this).data('target'); forum_post = $(this).parent('.post_tools').siblings('.post_message'); $(this).show().insertAfter(forum_post); forum_post.hide(); forum_post.parent('.post_right').parent('.post_container').addClass('hiddenForumPost'); }); } $(function(){ hideForumPosts(); }); // #TODO function hideForumPost(postId) { el = $('#' + postId); message = el.siblings('.post_message'); el.remove(); message.show(); message.parent('.post_right').parent('.post_container').removeClass('hiddenForumPost'); } function close_what_we_can_do(id) { $('#we_can_do_better_' + id).hide(); return false; } function send_what_we_can_do(id, id_user) { var $el = $('#we_can_do_better_' + id); $el.addClass('show-loading'); var selectedOption = $('input:radio[name=input_we_can_do_input_' + id + ']:checked').val() var text = $('#input_we_can_do_textarea_' + id).val(); $.get('/ajax.php?u=misc&f=userVoteDownComment&a=' + selectedOption + '|' + id_user + '|' + text + '|' + id , function(data){ close_what_we_can_do(id); $el.removeClass('show-loading'); showMessage('Tvoja spätná väzba bola úspešne odoslaná.'); } ); } $(function() { $('body').on('click', '.user_votes a.user_votes_link', function(e){ if ($(this).hasClass('inactive')) return false; var fn = $(this).data('rel'); var hash = $(this).attr('hash'); var contentId = $(this).parent().attr('contentid'); var contentType = $(this).parent().attr('contenttype'); var contentUserId = $(this).parent().attr('contentuserid'); var parent = $(this).parent().parent(); var voteTop = 0; if($(this).closest(".metadata-line").length>0) { voteTop = 1; } $(this).tooltip('hide'); $.get('/ajax.php?u=misc&f=userContentVotesAjax&a=' + contentId + '|' + contentType + '|' + contentUserId + '|' + fn + '|' + hash + '|0|1', function(data){ if (data.startsWith('ok')) { data = data.substr(2); } $('.user_votes' + contentType + contentId).replaceWith(data); if (contentType === 'article') { if (fn === 'voteDown') { var position = parent.offset(); var topclick = position.top + 15 - parent.closest('.container.position-relative').offset().top; var leftclick = position.left + 20 - parent.closest('.container.position-relative').offset().left; $('#we_can_do_better_' + contentId).css({top: topclick, left: leftclick}); $('#we_can_do_better_' + contentId).show(); } else { $('#we_can_do_better_' + contentId).hide(); } } } ); return false; }); }); if (!showRideFormModal) { function showRideFormModal(id, asTemplate){ var $rideFormModal = $('#rideFormModal'); if (typeof id === 'undefined') id = ''; asTemplate = asTemplate ? 1 : 0; $.ajax({ url: '/ajax.php?m=Vyjazdy&f=ajaxFormModal&a=' + id + '|0' + '|' + asTemplate, success: function(data){ $rideFormModal.find('.modal-body').html(data); if (asTemplate){ $rideFormModal.find('.ride-form-edit, .ride-form-new').hide(); $rideFormModal.find('.ride-form-duplicate').show(); } else { $rideFormModal.find('.ride-form-duplicate').hide(); $rideFormModal.find('.ride-form-'+(id ? 'new' : 'edit')).hide(); $rideFormModal.find('.ride-form-'+(id ? 'edit' : 'new')).show(); } $rideFormModal.modal({ backdrop: 'static' }); }, error: function(data){ showMessage(data.responseText, 'error', data.responseText.indexOf('= 0 ? 10000 : 3500); } }); return false; } } var emailConsentModalActiveEl; var emailConsentModalActiveSection = false; var emailConsentModalAgreed = false; function emailConsentModal(el, section){ var $el = $(el); if ($el.is(':checked') || !$el.is("input")){ // checked checkbox, or button/link emailConsentModalActiveEl = $(el); var $modal = $('#modalEmailConsent'); emailConsentModalActiveSection = section; if (section){ $('[data-section="general"]', $modal).hide(); $('[data-section="newsletter"]', $modal).hide(); $('[data-section="shop"]', $modal).hide(); $('[data-section="sale"]', $modal).hide(); $('[data-section="' + section + '"]', $modal).show(); } else { $('.mec-title').hide(); $('[data-section="general"]', $modal).show(); } emailConsentModalSubOptions(); emailConsentModalAgreed = false; $('#modalEmailConsent').modal('show'); } } function emailConsentModalSubOptions(){ $('.sub-options-emails').each(function() { var $subOptions = $(this); if ($subOptions.parent().find('.custom-switch input:checked, .custom-checkbox input:checked').length){ $subOptions.show(); if (!$subOptions.find('input:checked').length){ $subOptions.find('input').first().prop('checked', true); } } else { $subOptions.hide(); $subOptions.find('input').prop('checked', false); } }); } function emailConsentModalOnAgreed(){ var $modal = $('#modalEmailConsent'); emailConsentModalAgreed = true; var sectionWrap = emailConsentModalActiveSection ? '[data-section="' + emailConsentModalActiveSection + '"] ' : ''; var inputs = ''; $(sectionWrap + 'input[type=hidden], input:checked', $modal).each(function(){ var $this = $(this); inputs = inputs + ''; }); emailConsentModalActiveEl.prev('.mec-inputs').remove(); $('' + inputs + '').insertBefore(emailConsentModalActiveEl); $('#modalEmailConsent').modal('hide'); } $(function() { $('input[name="agreed_emails"]').on('change', function(){ emailConsentModal(this); }); emailConsentModalSubOptions(); $('#mec_user_newsletter_agreed, #user_newsletter_agreed').on('change', emailConsentModalSubOptions ); $('input:radio, input:checkbox','#modalEmailConsent').on('change', function(){ $modal = $('#modalEmailConsent'); $('.modal-footer .btn', $modal).prop('disabled', !$('input:checked:visible', $modal).length); }); $('#modalEmailConsent').on('hidden.bs.modal', function (e) { $modal = $(this); if (!emailConsentModalAgreed){ if (emailConsentModalActiveEl.val() === 'weekly'){ $('input[value=monthly]', $modal).prop('checked', false); } else if (emailConsentModalActiveEl.val() === 'monthly'){ $('input[value=weekly]', $modal).prop('checked', false); } else { emailConsentModalActiveEl.prop('checked', false); } emailConsentModalActiveEl.prev('.mec-inputs').remove(); } emailConsentModalActiveSection = false; emailConsentModalSubOptions(); if ($('#registrationModal.modal').hasClass('show')) { setTimeout(function(){ $('body').addClass('modal-open'); // registration modal is still opened }, 20); } }); }); $(function(){ $(".js-reject-cookies").attr("role", "button"); $(".js-reject-cookies").click(function(e){ e.preventDefault(); $.ajax({type: "POST",url: "/account/cookie-consent",data: {functional:0,analytical:0,commercial:0} }); $("#biscuitModal").fadeOut(250); return false; }); $(".biscuit-close").click(function(){ $.ajax({type: "POST",url: "/account/cookie-consent",data: {necessary:1,functional:1,analytical:1,commercial:1} }); $("#biscuitModal").fadeOut(250); $(".biscuit-checkboxes .custom-control-input").attr("checked", true); updateGoogleAnalyticsConsent(); updateBingConsent(); sendGoogleAnalyticsPageview(); return false; }); $(".biscuit-settings").click(function(){ $(this).addClass("loading-simple"); $.ajax({type: "POST",url: "/account/cookie-consent",data: {functional:0,analytical:0,commercial:0} }).always(function(){ window.location = "https://www.mthiker.sk/cookies"; }); }); }); -->