favorite comment 0
thumb_up0thumb_down

directions_bikeNedelna rege (mokre cesty, mokry zadek)

z oslavy, na polevku, na sorbet, na dortu

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ť
152 km
schedule Čas
05:54:31
landscape Nastúpané
992 m

bar_chartŠtatistiky

Priemer Max
Rýchlosť 25,7 km/h 50,9 km/h
Výkon 124 W -
Energetický výdaj 2 944 kcal

cloudPodmienky

Priemerná teplota 21 °C

directions_bike Posledné aktivity bikera

thumb_up0thumb_down

directions_bike Night Ride

trending_up 5,2 km
schedule 00:17:52
landscape 9 m
thumb_up0thumb_down

directions_bike Pohoda Yazda 2025

trending_up 176,6 km
schedule 06:40:08
landscape 808 m
thumb_up0thumb_down

directions_bike Night Ride

trending_up 4,6 km
schedule 00:13:23
landscape 12 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 BielyKriz","segmentDistance":"D\u013a\u017eka: 8.89 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 3.8 %<\/b>","segmentNameHref":"svatyjur-%3Ebielykriz"},"geometry":{"type":"LineString","coordinates":[["17.211445","48.254944",163.2],["17.211445","48.254944",163.2],["17.210406","48.255425",168.2],["17.209496","48.25592",171.2],["17.208532","48.256353",174.4],["17.207315","48.25694",183.8],["17.206588","48.257291",190.6],["17.205996","48.257734",199.2],["17.205383","48.258189",204.8],["17.204769","48.25857",207.4],["17.204442","48.258889",209.4],["17.203657","48.259652",212.4],["17.203291","48.259964",213],["17.202066","48.260752",215],["17.201534","48.26118",217],["17.201417","48.26151",218.6],["17.201123","48.262225",222.6],["17.200988","48.262599",224.8],["17.20077","48.262961",227.4],["17.20057","48.263818",240.8],["17.200567","48.26417",243.2],["17.20047","48.264459",245.6],["17.200407","48.264604",247],["17.200318","48.264994",250.2],["17.200146","48.265262",252.4],["17.199712","48.26563",256],["17.199326","48.265828",258.6],["17.199052","48.265923",260],["17.198554","48.266056",263.2],["17.198005","48.266254",266.8],["17.197737","48.266405",269],["17.197014","48.266661",274],["17.19642","48.267117",279.4],["17.196163","48.267301",280.6],["17.195812","48.267552",281.6],["17.195691","48.267565",282.4],["17.195262","48.267902",284.6],["17.195076","48.26815",286.6],["17.194843","48.268341",289],["17.194673","48.268517",292.6],["17.194826","48.268833",297.8],["17.195165","48.268791",299.8],["17.195952","48.268275",304.4],["17.196497","48.267978",306.4],["17.196996","48.267821",308.6],["17.197469","48.267909",310.4],["17.1978","48.268275",312.8],["17.197474","48.268759",316.4],["17.197028","48.269187",318.6],["17.196366","48.269657",323],["17.195708","48.270176",327.4],["17.195663","48.270572",330.8],["17.195934","48.271014",336.2],["17.196233","48.271492",341.4],["17.196477","48.271843",344.6],["17.196649","48.272134",347.6],["17.196746","48.272432",349.6],["17.19677","48.272701",352],["17.196707","48.272941",352.4],["17.196308","48.273473",354.8],["17.195885","48.273692",359],["17.195477","48.273894",363],["17.194997","48.274065",366.6],["17.194212","48.274041",369.6],["17.193717","48.27407",371.2],["17.193281","48.273957",372.2],["17.192725","48.273775",374],["17.192076","48.273147",379.4],["17.191742","48.272872",381.8],["17.191204","48.272527",385.8],["17.190772","48.272529",387.4],["17.190407","48.272582",389.2],["17.189702","48.272909",394.6],["17.189163","48.273063",397.8],["17.188481","48.273306",403.2],["17.188005","48.273405",405.8],["17.187438","48.273525",408.2],["17.187136","48.273575",409.2],["17.186647","48.273638",411.2],["17.18601","48.27381",413.4],["17.185306","48.274083",417.8],["17.184854","48.274223",420.4],["17.184183","48.274302",424.2],["17.183596","48.274205",427.8],["17.18272","48.274007",432.4],["17.182299","48.273893",434.6],["17.181596","48.273626",439],["17.180939","48.273454",441.8],["17.180233","48.273319",445],["17.179952","48.273236",446.2],["17.179674","48.273184",447.4],["17.17888","48.27286",452.4],["17.178592","48.27263",456.4],["17.177998","48.272304",460.2],["17.177752","48.272037",463],["17.17747","48.271832",465.8],["17.177177","48.271568",468.6],["17.17678","48.271179",472],["17.176592","48.27095",473.4],["17.176319","48.270713",475.2],["17.175923","48.270463",478.6],["17.175413","48.270249",483],["17.174491","48.270035",486.2],["17.174171","48.270134",487.8],["17.173566","48.270401",489],["17.172948","48.270953",496],["17.172264","48.271265",500.6],["17.171346","48.271444",503],["17.170602","48.271197",505.6],["17.170331","48.271116",506.6],["17.169779","48.270776",509.6],["17.169069","48.270535",512.6],["17.1686","48.270247",514.4],["17.168272","48.270083",515.4],["17.167823","48.269886",516.8],["17.167361","48.269583",519],["17.166905","48.269411",520],["17.166037","48.268998",520.6],["17.163858","48.2679",517.6],["17.16255","48.267295",516],["17.161965","48.266813",515],["17.161688","48.265968",516],["17.161574","48.265545",516.6],["17.161437","48.265165",517],["17.160976","48.264131",519.2],["17.160913","48.263796",519.8],["17.160662","48.263117",523],["17.160491","48.262759",524],["17.160316","48.262322",526.2],["17.16021","48.262045",527.8],["17.159964","48.261468",530.8],["17.159811","48.260945",532.6],["17.159512","48.260259",535.2],["17.159346","48.259286",538],["17.15929","48.258605",539],["17.159268","48.258247",539.4],["17.159209","48.257848",539.8],["17.159201","48.257494",540.2],["17.159061","48.25689",540.4],["17.159006","48.256369",540.2],["17.159303","48.255281",537.8],["17.159302","48.254745",536],["17.159039","48.254407",534.4],["17.157658","48.253867",528.8],["17.156064","48.253476",526.6],["17.154596","48.253112",525.2],["17.153547","48.252632",523.8],["17.152656","48.252425",521.6],["17.151646","48.252178",518],["17.150285","48.251739",513.6],["17.149217","48.251603",510.4],["17.147663","48.250754",506],["17.146251","48.249988",505],["17.144862","48.248917",500.8]]}},{"type":"Feature","properties":{"type":99,"segment":"103399","segmentName":"Od kruhaca za kostol","segmentDistance":"D\u013a\u017eka: 676.40 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.5 %<\/b>","segmentNameHref":"od-kruhaca-za-kostol"},"geometry":{"type":"LineString","coordinates":[["17.211445","48.254944",163.2],["17.211445","48.254944",163.2],["17.210406","48.255425",168.2],["17.209496","48.25592",171.2],["17.208532","48.256353",174.4],["17.207315","48.25694",183.8],["17.206588","48.257291",190.6],["17.205996","48.257734",199.2],["17.205383","48.258189",204.8]]}},{"type":"Feature","properties":{"type":99,"segment":"9312","segmentName":"St\u00fapa\u010dik","segmentDistance":"D\u013a\u017eka: 313.28 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 12.1 %<\/b>","segmentNameHref":"stupacik"},"geometry":{"type":"LineString","coordinates":[["17.208532","48.256353",174.4],["17.208532","48.256353",174.4],["17.207315","48.25694",183.8],["17.206588","48.257291",190.6]]}},{"type":"Feature","properties":{"type":99,"segment":"9313","segmentName":"Hradistna Sprint (Sv. Jur)","segmentDistance":"D\u013a\u017eka: 181.50 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.5 %<\/b>","segmentNameHref":"hradistna-sprint-sv-jur"},"geometry":{"type":"LineString","coordinates":[["17.201534","48.26118",217],["17.201534","48.26118",217],["17.201417","48.26151",218.6],["17.201417","48.26151",218.6],["17.201123","48.262225",222.6]]}},{"type":"Feature","properties":{"type":99,"segment":"4963","segmentName":"Od parkoviska po Tri Bresty","segmentDistance":"D\u013a\u017eka: 1.98 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 7.3 %<\/b>","segmentNameHref":"od-parkoviska-po-tri-bresty"},"geometry":{"type":"LineString","coordinates":[["17.20057","48.263818",240.8],["17.20057","48.263818",240.8],["17.200567","48.26417",243.2],["17.20047","48.264459",245.6],["17.200407","48.264604",247],["17.200318","48.264994",250.2],["17.200146","48.265262",252.4],["17.199712","48.26563",256],["17.199326","48.265828",258.6],["17.199052","48.265923",260],["17.198554","48.266056",263.2],["17.198005","48.266254",266.8],["17.197737","48.266405",269],["17.197014","48.266661",274],["17.19642","48.267117",279.4],["17.196163","48.267301",280.6],["17.195812","48.267552",281.6],["17.195691","48.267565",282.4],["17.195262","48.267902",284.6],["17.195076","48.26815",286.6],["17.194843","48.268341",289],["17.194673","48.268517",292.6],["17.194826","48.268833",297.8],["17.195165","48.268791",299.8],["17.195952","48.268275",304.4],["17.196497","48.267978",306.4],["17.196996","48.267821",308.6],["17.197469","48.267909",310.4],["17.1978","48.268275",312.8],["17.197474","48.268759",316.4],["17.197028","48.269187",318.6],["17.196366","48.269657",323],["17.195708","48.270176",327.4],["17.195663","48.270572",330.8],["17.195934","48.271014",336.2],["17.196233","48.271492",341.4],["17.196477","48.271843",344.6],["17.196649","48.272134",347.6],["17.196746","48.272432",349.6],["17.19677","48.272701",352],["17.196707","48.272941",352.4],["17.196308","48.273473",354.8],["17.195885","48.273692",359],["17.195477","48.273894",363],["17.194997","48.274065",366.6]]}},{"type":"Feature","properties":{"type":99,"segment":"122316","segmentName":"Od spomalovaka po vrchol BK","segmentDistance":"D\u013a\u017eka: 4.31 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.8 %<\/b>","segmentNameHref":"od-spomalovaka-po-vrchol-bk"},"geometry":{"type":"LineString","coordinates":[["17.20057","48.263818",240.8],["17.20057","48.263818",240.8],["17.200567","48.26417",243.2],["17.20047","48.264459",245.6],["17.200407","48.264604",247],["17.200318","48.264994",250.2],["17.200146","48.265262",252.4],["17.199712","48.26563",256],["17.199326","48.265828",258.6],["17.199052","48.265923",260],["17.198554","48.266056",263.2],["17.198005","48.266254",266.8],["17.197737","48.266405",269],["17.197014","48.266661",274],["17.19642","48.267117",279.4],["17.196163","48.267301",280.6],["17.195812","48.267552",281.6],["17.195691","48.267565",282.4],["17.195262","48.267902",284.6],["17.195076","48.26815",286.6],["17.194843","48.268341",289],["17.194673","48.268517",292.6],["17.194826","48.268833",297.8],["17.195165","48.268791",299.8],["17.195952","48.268275",304.4],["17.196497","48.267978",306.4],["17.196996","48.267821",308.6],["17.197469","48.267909",310.4],["17.1978","48.268275",312.8],["17.197474","48.268759",316.4],["17.197028","48.269187",318.6],["17.196366","48.269657",323],["17.195708","48.270176",327.4],["17.195663","48.270572",330.8],["17.195934","48.271014",336.2],["17.196233","48.271492",341.4],["17.196477","48.271843",344.6],["17.196649","48.272134",347.6],["17.196746","48.272432",349.6],["17.19677","48.272701",352],["17.196707","48.272941",352.4],["17.196308","48.273473",354.8],["17.195885","48.273692",359],["17.195477","48.273894",363],["17.194997","48.274065",366.6],["17.194212","48.274041",369.6],["17.193717","48.27407",371.2],["17.193281","48.273957",372.2],["17.192725","48.273775",374],["17.192076","48.273147",379.4],["17.191742","48.272872",381.8],["17.191204","48.272527",385.8],["17.190772","48.272529",387.4],["17.190407","48.272582",389.2],["17.189702","48.272909",394.6],["17.189163","48.273063",397.8],["17.188481","48.273306",403.2],["17.188005","48.273405",405.8],["17.187438","48.273525",408.2],["17.187136","48.273575",409.2],["17.186647","48.273638",411.2],["17.18601","48.27381",413.4],["17.185306","48.274083",417.8],["17.184854","48.274223",420.4],["17.184183","48.274302",424.2],["17.183596","48.274205",427.8],["17.18272","48.274007",432.4],["17.182299","48.273893",434.6],["17.181596","48.273626",439],["17.180939","48.273454",441.8],["17.180233","48.273319",445],["17.179952","48.273236",446.2],["17.179674","48.273184",447.4],["17.17888","48.27286",452.4],["17.178592","48.27263",456.4],["17.177998","48.272304",460.2],["17.177752","48.272037",463],["17.17747","48.271832",465.8],["17.177177","48.271568",468.6],["17.17678","48.271179",472],["17.176592","48.27095",473.4],["17.176319","48.270713",475.2],["17.175923","48.270463",478.6],["17.175413","48.270249",483],["17.174491","48.270035",486.2],["17.174171","48.270134",487.8],["17.173566","48.270401",489],["17.172948","48.270953",496],["17.172264","48.271265",500.6],["17.171346","48.271444",503],["17.170602","48.271197",505.6],["17.170331","48.271116",506.6],["17.169779","48.270776",509.6],["17.169069","48.270535",512.6],["17.1686","48.270247",514.4],["17.168272","48.270083",515.4]]}},{"type":"Feature","properties":{"type":99,"segment":"4964","segmentName":"parkovisko - odbocka","segmentDistance":"D\u013a\u017eka: 4.74 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.7 %<\/b>","segmentNameHref":"parkovisko-odbocka"},"geometry":{"type":"LineString","coordinates":[["17.20057","48.263818",240.8],["17.20057","48.263818",240.8],["17.200567","48.26417",243.2],["17.20047","48.264459",245.6],["17.200407","48.264604",247],["17.200318","48.264994",250.2],["17.200146","48.265262",252.4],["17.199712","48.26563",256],["17.199326","48.265828",258.6],["17.199052","48.265923",260],["17.198554","48.266056",263.2],["17.198005","48.266254",266.8],["17.197737","48.266405",269],["17.197014","48.266661",274],["17.19642","48.267117",279.4],["17.196163","48.267301",280.6],["17.195812","48.267552",281.6],["17.195691","48.267565",282.4],["17.195262","48.267902",284.6],["17.195076","48.26815",286.6],["17.194843","48.268341",289],["17.194673","48.268517",292.6],["17.194826","48.268833",297.8],["17.195165","48.268791",299.8],["17.195952","48.268275",304.4],["17.196497","48.267978",306.4],["17.196996","48.267821",308.6],["17.197469","48.267909",310.4],["17.1978","48.268275",312.8],["17.197474","48.268759",316.4],["17.197028","48.269187",318.6],["17.196366","48.269657",323],["17.195708","48.270176",327.4],["17.195663","48.270572",330.8],["17.195934","48.271014",336.2],["17.196233","48.271492",341.4],["17.196477","48.271843",344.6],["17.196649","48.272134",347.6],["17.196746","48.272432",349.6],["17.19677","48.272701",352],["17.196707","48.272941",352.4],["17.196308","48.273473",354.8],["17.195885","48.273692",359],["17.195477","48.273894",363],["17.194997","48.274065",366.6],["17.194212","48.274041",369.6],["17.193717","48.27407",371.2],["17.193281","48.273957",372.2],["17.192725","48.273775",374],["17.192076","48.273147",379.4],["17.191742","48.272872",381.8],["17.191204","48.272527",385.8],["17.190772","48.272529",387.4],["17.190407","48.272582",389.2],["17.189702","48.272909",394.6],["17.189163","48.273063",397.8],["17.188481","48.273306",403.2],["17.188005","48.273405",405.8],["17.187438","48.273525",408.2],["17.187136","48.273575",409.2],["17.186647","48.273638",411.2],["17.18601","48.27381",413.4],["17.185306","48.274083",417.8],["17.184854","48.274223",420.4],["17.184183","48.274302",424.2],["17.183596","48.274205",427.8],["17.18272","48.274007",432.4],["17.182299","48.273893",434.6],["17.181596","48.273626",439],["17.180939","48.273454",441.8],["17.180233","48.273319",445],["17.179952","48.273236",446.2],["17.179674","48.273184",447.4],["17.17888","48.27286",452.4],["17.178592","48.27263",456.4],["17.177998","48.272304",460.2],["17.177752","48.272037",463],["17.17747","48.271832",465.8],["17.177177","48.271568",468.6],["17.17678","48.271179",472],["17.176592","48.27095",473.4],["17.176319","48.270713",475.2],["17.175923","48.270463",478.6],["17.175413","48.270249",483],["17.174491","48.270035",486.2],["17.174171","48.270134",487.8],["17.173566","48.270401",489],["17.172948","48.270953",496],["17.172264","48.271265",500.6],["17.171346","48.271444",503],["17.170602","48.271197",505.6],["17.170331","48.271116",506.6],["17.169779","48.270776",509.6],["17.169069","48.270535",512.6],["17.1686","48.270247",514.4],["17.168272","48.270083",515.4],["17.167823","48.269886",516.8],["17.167361","48.269583",519],["17.166905","48.269411",520],["17.166037","48.268998",520.6],["17.163858","48.2679",517.6]]}},{"type":"Feature","properties":{"type":99,"segment":"106722","segmentName":"jursky svrbicak","segmentDistance":"D\u013a\u017eka: 2.21 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.8 %<\/b>","segmentNameHref":"jursky-svrbicak"},"geometry":{"type":"LineString","coordinates":[["17.197028","48.269187",318.6],["17.197028","48.269187",318.6],["17.196366","48.269657",323],["17.195708","48.270176",327.4],["17.195663","48.270572",330.8],["17.195934","48.271014",336.2],["17.196233","48.271492",341.4],["17.196477","48.271843",344.6],["17.196649","48.272134",347.6],["17.196746","48.272432",349.6],["17.19677","48.272701",352],["17.196707","48.272941",352.4],["17.196308","48.273473",354.8],["17.195885","48.273692",359],["17.195477","48.273894",363],["17.194997","48.274065",366.6],["17.194212","48.274041",369.6],["17.193717","48.27407",371.2],["17.193281","48.273957",372.2],["17.192725","48.273775",374],["17.192076","48.273147",379.4],["17.191742","48.272872",381.8],["17.191204","48.272527",385.8],["17.190772","48.272529",387.4],["17.190407","48.272582",389.2],["17.189702","48.272909",394.6],["17.189163","48.273063",397.8],["17.188481","48.273306",403.2],["17.188005","48.273405",405.8],["17.187438","48.273525",408.2],["17.187136","48.273575",409.2],["17.186647","48.273638",411.2],["17.18601","48.27381",413.4],["17.185306","48.274083",417.8],["17.184854","48.274223",420.4],["17.184183","48.274302",424.2],["17.183596","48.274205",427.8],["17.18272","48.274007",432.4],["17.182299","48.273893",434.6],["17.181596","48.273626",439],["17.180939","48.273454",441.8],["17.180233","48.273319",445],["17.179952","48.273236",446.2],["17.179674","48.273184",447.4],["17.17888","48.27286",452.4],["17.178592","48.27263",456.4],["17.177998","48.272304",460.2],["17.177752","48.272037",463],["17.17747","48.271832",465.8]]}},{"type":"Feature","properties":{"type":99,"segment":"23884","segmentName":"Jozefkovo \u00fadolie Climb","segmentDistance":"D\u013a\u017eka: 2.45 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.5 %<\/b>","segmentNameHref":"jozefkovo-udolie-climb"},"geometry":{"type":"LineString","coordinates":[["17.194212","48.274041",369.6],["17.194212","48.274041",369.6],["17.193717","48.27407",371.2],["17.193281","48.273957",372.2],["17.192725","48.273775",374],["17.192076","48.273147",379.4],["17.191742","48.272872",381.8],["17.191204","48.272527",385.8],["17.190772","48.272529",387.4],["17.190407","48.272582",389.2],["17.189702","48.272909",394.6],["17.189163","48.273063",397.8],["17.188481","48.273306",403.2],["17.188005","48.273405",405.8],["17.187438","48.273525",408.2],["17.187136","48.273575",409.2],["17.186647","48.273638",411.2],["17.18601","48.27381",413.4],["17.185306","48.274083",417.8],["17.184854","48.274223",420.4],["17.184183","48.274302",424.2],["17.183596","48.274205",427.8],["17.18272","48.274007",432.4],["17.182299","48.273893",434.6],["17.181596","48.273626",439],["17.180939","48.273454",441.8],["17.180233","48.273319",445],["17.179952","48.273236",446.2],["17.179674","48.273184",447.4],["17.17888","48.27286",452.4],["17.178592","48.27263",456.4],["17.177998","48.272304",460.2],["17.177752","48.272037",463],["17.17747","48.271832",465.8],["17.177177","48.271568",468.6],["17.17678","48.271179",472],["17.176592","48.27095",473.4],["17.176319","48.270713",475.2],["17.175923","48.270463",478.6],["17.175413","48.270249",483],["17.174491","48.270035",486.2],["17.174171","48.270134",487.8],["17.173566","48.270401",489],["17.172948","48.270953",496],["17.172264","48.271265",500.6],["17.171346","48.271444",503],["17.170602","48.271197",505.6],["17.170331","48.271116",506.6],["17.169779","48.270776",509.6],["17.169069","48.270535",512.6],["17.1686","48.270247",514.4],["17.168272","48.270083",515.4]]}},{"type":"Feature","properties":{"type":99,"segment":"4541","segmentName":"Jozefovo \u00fadolie Climb","segmentDistance":"D\u013a\u017eka: 1.68 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.8 %<\/b>","segmentNameHref":"jozefovo-udolie-climb"},"geometry":{"type":"LineString","coordinates":[["17.184183","48.274302",424.2],["17.184183","48.274302",424.2],["17.183596","48.274205",427.8],["17.183596","48.274205",427.8],["17.18272","48.274007",432.4],["17.182299","48.273893",434.6],["17.181596","48.273626",439],["17.180939","48.273454",441.8],["17.180233","48.273319",445],["17.179952","48.273236",446.2],["17.179674","48.273184",447.4],["17.17888","48.27286",452.4],["17.178592","48.27263",456.4],["17.177998","48.272304",460.2],["17.177752","48.272037",463],["17.17747","48.271832",465.8],["17.177177","48.271568",468.6],["17.17678","48.271179",472],["17.176592","48.27095",473.4],["17.176319","48.270713",475.2],["17.175923","48.270463",478.6],["17.175413","48.270249",483],["17.174491","48.270035",486.2],["17.174171","48.270134",487.8],["17.173566","48.270401",489],["17.172948","48.270953",496],["17.172264","48.271265",500.6],["17.171346","48.271444",503],["17.170602","48.271197",505.6],["17.170331","48.271116",506.6],["17.169779","48.270776",509.6],["17.169069","48.270535",512.6]]}},{"type":"Feature","properties":{"type":99,"segment":"1237","segmentName":"Stupanie k Javornikom od razc. nad Salasom","segmentDistance":"D\u013a\u017eka: 462.80 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.7 %<\/b>","segmentNameHref":"stupanie-k-javornikom-od-razc-nad-salasom"},"geometry":{"type":"LineString","coordinates":[["17.161965","48.266813",515],["17.161965","48.266813",515],["17.161688","48.265968",516],["17.161688","48.265968",516],["17.161574","48.265545",516.6],["17.161437","48.265165",517],["17.160976","48.264131",519.2],["17.160913","48.263796",519.8],["17.160662","48.263117",523],["17.160491","48.262759",524]]}},{"type":"Feature","properties":{"type":99,"segment":"4506","segmentName":"Javornik - Biely Kriz sprintik","segmentDistance":"D\u013a\u017eka: 1.54 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -2.2 %<\/b>","segmentNameHref":"javornik-biely-kriz-sprintik"},"geometry":{"type":"LineString","coordinates":[["17.15929","48.258605",539],["17.15929","48.258605",539],["17.159268","48.258247",539.4],["17.159268","48.258247",539.4],["17.159209","48.257848",539.8],["17.159201","48.257494",540.2],["17.159061","48.25689",540.4],["17.159006","48.256369",540.2],["17.159303","48.255281",537.8],["17.159302","48.254745",536],["17.159039","48.254407",534.4],["17.157658","48.253867",528.8],["17.156064","48.253476",526.6],["17.154596","48.253112",525.2],["17.153547","48.252632",523.8],["17.152656","48.252425",521.6],["17.151646","48.252178",518],["17.150285","48.251739",513.6],["17.149217","48.251603",510.4],["17.147663","48.250754",506]]}},{"type":"Feature","properties":{"type":99,"segment":"96207","segmentName":"Od alt\u00e1nku k Bielemu kr\u00ed\u017eu","segmentDistance":"D\u013a\u017eka: 1.25 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -2.3 %<\/b>","segmentNameHref":"od-altanku-k-bielemu-krizu"},"geometry":{"type":"LineString","coordinates":[["17.159039","48.254407",534.4],["17.159039","48.254407",534.4],["17.157658","48.253867",528.8],["17.156064","48.253476",526.6],["17.154596","48.253112",525.2],["17.153547","48.252632",523.8],["17.152656","48.252425",521.6],["17.151646","48.252178",518],["17.150285","48.251739",513.6],["17.149217","48.251603",510.4],["17.147663","48.250754",506],["17.146251","48.249988",505]]}},{"type":"Feature","properties":{"type":99,"segment":"1074","segmentName":"Raca - Jur D4R7","segmentDistance":"D\u013a\u017eka: 4.07 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.2 %<\/b>","segmentNameHref":"raca-jur-d4r7"},"geometry":{"type":"LineString","coordinates":[["17.168876","48.217353",146.8],["17.168876","48.217353",146.8],["17.171822","48.21822",145.8],["17.173226","48.218649",146.2],["17.17471","48.219436",147.2],["17.175619","48.220544",151.8],["17.176013","48.221187",153.4],["17.176576","48.221809",155],["17.17754","48.222073",156],["17.179251","48.222165",155.6],["17.182778","48.222821",148.6],["17.183733","48.22356",146.6],["17.185999","48.225321",142.8],["17.187253","48.225766",141.6],["17.187923","48.225895",141.2],["17.18935","48.226874",141.6],["17.190476","48.227779",144.6],["17.190904","48.228409",148.2],["17.191825","48.229488",160.6],["17.192248","48.229771",161.6],["17.193178","48.229917",161.8],["17.195784","48.231695",157.6],["17.197362","48.23295",154.4],["17.199365","48.233546",153.6],["17.200066","48.23397",152.6],["17.201589","48.235019",150.4],["17.202168","48.235423",149.2],["17.202133","48.235629",148.6],["17.200941","48.236407",147.2],["17.201334","48.236728",148],["17.202777","48.237836",149.4],["17.203346","48.238432",149],["17.203099","48.239731",146],["17.202826","48.240419",144.4]]}},{"type":"Feature","properties":{"type":99,"segment":"1075","segmentName":"Komisarky_Optymista_UP","segmentDistance":"D\u013a\u017eka: 603.10 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.5 %<\/b>","segmentNameHref":"komisarky_optymista_up"},"geometry":{"type":"LineString","coordinates":[["17.168876","48.217353",146.8],["17.168876","48.217353",146.8],["17.171822","48.21822",145.8],["17.173226","48.218649",146.2],["17.17471","48.219436",147.2]]}},{"type":"Feature","properties":{"type":99,"segment":"153933","segmentName":"novy asfalt z nadjazdu","segmentDistance":"D\u013a\u017eka: 952.50 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -1.6 %<\/b>","segmentNameHref":"novy-asfalt-z-nadjazdu"},"geometry":{"type":"LineString","coordinates":[["17.176576","48.221809",155],["17.176576","48.221809",155],["17.17754","48.222073",156],["17.179251","48.222165",155.6],["17.182778","48.222821",148.6],["17.183733","48.22356",146.6],["17.185999","48.225321",142.8]]}},{"type":"Feature","properties":{"type":99,"segment":"1076","segmentName":"Raca_Jur D4R7- new bypass","segmentDistance":"D\u013a\u017eka: 1.28 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.6 %<\/b>","segmentNameHref":"raca_jur-d4r7-new-bypass"},"geometry":{"type":"LineString","coordinates":[["17.187923","48.225895",141.2],["17.187923","48.225895",141.2],["17.18935","48.226874",141.6],["17.190476","48.227779",144.6],["17.190904","48.228409",148.2],["17.191825","48.229488",160.6],["17.192248","48.229771",161.6],["17.193178","48.229917",161.8],["17.195784","48.231695",157.6],["17.197362","48.23295",154.4]]}},{"type":"Feature","properties":{"type":99,"segment":"129726","segmentName":"Jurava brdok smer Jur","segmentDistance":"D\u013a\u017eka: 395.50 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 4.8 %<\/b>","segmentNameHref":"jurava-brdok-smer-jur"},"geometry":{"type":"LineString","coordinates":[["17.187923","48.225895",141.2],["17.187923","48.225895",141.2],["17.18935","48.226874",141.6],["17.190476","48.227779",144.6],["17.190904","48.228409",148.2]]}},{"type":"Feature","properties":{"type":99,"segment":"1077","segmentName":"Fini\u0161 k Pust\u00e9mu kostol\u00edku","segmentDistance":"D\u013a\u017eka: 374.80 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.8 %<\/b>","segmentNameHref":"finis-k-pustemu-kostoliku"},"geometry":{"type":"LineString","coordinates":[["17.202168","48.235423",149.2],["17.202168","48.235423",149.2],["17.202133","48.235629",148.6],["17.200941","48.236407",147.2],["17.201334","48.236728",148]]}},{"type":"Feature","properties":{"type":99,"segment":"1080","segmentName":"Panelka od h\u00e1jika reverse","segmentDistance":"D\u013a\u017eka: 598.20 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"panelka-od-hajika-reverse"},"geometry":{"type":"LineString","coordinates":[["17.20301","48.232535",138.8],["17.20301","48.232535",138.8],["17.202114","48.231112",138.6],["17.201483","48.229964",139.2],["17.201041","48.229127",139.6],["17.200439","48.228073",139.8]]}},{"type":"Feature","properties":{"type":99,"segment":"1484","segmentName":"Chodn\u00edk volaviek","segmentDistance":"D\u013a\u017eka: 3.88 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: 0 %<\/b>","segmentNameHref":"chodnik-volaviek"},"geometry":{"type":"LineString","coordinates":[["17.224778","48.211899",132.6],["17.224778","48.211899",132.6],["17.226186","48.210301",132.4],["17.22935","48.20672",130.8],["17.231191","48.204591",132.8],["17.232029","48.203679",133.8],["17.233032","48.202925",133.8],["17.233949","48.20229",132.4],["17.235073","48.20167",131.6],["17.237301","48.20019",133],["17.237894","48.199586",133.8],["17.238371","48.198574",134.2],["17.238316","48.197819",134],["17.238397","48.197297",133.6],["17.238316","48.196426",133.4],["17.238128","48.193508",134],["17.237963","48.192972",133.8],["17.238061","48.191115",132.4],["17.237916","48.186738",134.2],["17.237915","48.185224",133.2],["17.238228","48.184563",133],["17.238693","48.184063",133]]}},{"type":"Feature","properties":{"type":99,"segment":"131733","segmentName":"BlatinaSpeedRace2","segmentDistance":"D\u013a\u017eka: 1.19 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: 0 %<\/b>","segmentNameHref":"blatinaspeedrace2"},"geometry":{"type":"LineString","coordinates":[["17.224778","48.211899",132.6],["17.224778","48.211899",132.6],["17.226186","48.210301",132.4],["17.22935","48.20672",130.8],["17.231191","48.204591",132.8],["17.232029","48.203679",133.8]]}},{"type":"Feature","properties":{"type":99,"segment":"139215","segmentName":"Vajnory kruhac hore","segmentDistance":"D\u013a\u017eka: 674.20 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.3 %<\/b>","segmentNameHref":"vajnory-kruhac-hore"},"geometry":{"type":"LineString","coordinates":[["17.197475","48.199657",131.8],["17.197475","48.199657",131.8],["17.197834","48.198667",131],["17.198171","48.19727",132.8],["17.198472","48.196155",134.2],["17.198917","48.194501",138.2]]}},{"type":"Feature","properties":{"type":99,"segment":"1083","segmentName":"kruh\u00e1\u010d - Tuhovsk\u00e1","segmentDistance":"D\u013a\u017eka: 1.03 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.3 %<\/b>","segmentNameHref":"kruhac-tuhovska"},"geometry":{"type":"LineString","coordinates":[["17.197834","48.198667",131],["17.197834","48.198667",131],["17.198171","48.19727",132.8],["17.198472","48.196155",134.2],["17.198917","48.194501",138.2],["17.199392","48.192438",138.8],["17.199185","48.192103",138.6],["17.196815","48.191844",136.4]]}},{"type":"Feature","properties":{"type":99,"segment":"11222","segmentName":"Roznavska McDonalds part reverse","segmentDistance":"D\u013a\u017eka: 1.08 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"roznavska-mcdonalds-part-reverse"},"geometry":{"type":"LineString","coordinates":[["17.174511","48.186229",129.2],["17.174511","48.186229",129.2],["17.171743","48.182971",129.8],["17.169209","48.179979",130.8],["17.168319","48.178927",131.2]]}},{"type":"Feature","properties":{"type":99,"segment":"11223","segmentName":"finale Flex-IS","segmentDistance":"D\u013a\u017eka: 670.80 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.2 %<\/b>","segmentNameHref":"finale-flex-is"},"geometry":{"type":"LineString","coordinates":[["17.174511","48.186229",129.2],["17.174511","48.186229",129.2],["17.171743","48.182971",129.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(); } }); function showPhotoOnMap() { if (typeof L !== "undefined"){ var photos = [{"lat":"48.052700972222","lng":"17.150318972222","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-0_6486211dee9fa.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-0_6486211dee9fa.jpg"},{"lat":"48.053153972222","lng":"17.150348","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-1_648621211c157.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-1_648621211c157.jpg"},{"lat":"48.220359972222","lng":"17.229846972222","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-2_64862123c6cb1.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-2_64862123c6cb1.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-3_648621274cddd.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-3_648621274cddd.jpg"},{"lat":"48.235055","lng":"17.252967972222","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-4_6486212aa17a7.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-4_6486212aa17a7.jpg"},{"lat":"48.21808","lng":"17.212423972222","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-5_6486212d6a473.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-5_6486212d6a473.jpg"},{"lat":"48.182232972222","lng":"17.241178972222","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-6_6486213036ea3.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1397871-6_6486213036ea3.jpg"}] var photoLayer = L.photo.cluster().on("click", function(evt) { var photo = evt.layer.photo; var template = ""; evt.layer.bindPopup(L.Util.template(template, photo), { className: "leafletresize", minWidth: 100, }).openPopup(); }); var photoOnMapLayer = photoLayer.add(photos); map_leaflet.addLayer(photoOnMapLayer); controlLayers.addOverlay(photoOnMapLayer, "Fotky na mape") } } $(function() { showPhotoOnMap(); }); 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=bW9kdWw9dnlqYXpkeSZleHRlcm5hbElkPTEzOTc4NzEmaXRlbU5hbWU9ViVDMyVCRGphemQrJUM0JThELisxMzk3ODcxJmNvbW1lbnRUeXBlPWNvbW1lbnQmYXV0aG9yVXNlcklkPTE0NTk2MyZ3aWRnZXRJZD1jb21tZW50cyZhbGxvd0luc2VydD0xJmFsbG93UmVwbHk9MSZyZXR1cm5Vcmw9aHR0cHMlM0ElMkYlMkZ3d3cubXRoaWtlci5zayUyRmFrdGl2aXR5JTJGMTM5Nzg3MSUyRmJpY3lrZWwtbmVkZWxuYS1yZWdlLW1va3JlLmh0bWwlM0ZvZCUzRDElMjZyaWRlX2lkJTNEMTM5Nzg3MSZwYXJzZWRVcmwlNUJzY2hlbWUlNUQ9aHR0cHMmcGFyc2VkVXJsJTVCaG9zdCU1RD13d3cubXRoaWtlci5zayZwYXJzZWRVcmwlNUJwYXRoJTVEPSUyRmFrdGl2aXR5JTJGMTM5Nzg3MSUyRmJpY3lrZWwtbmVkZWxuYS1yZWdlLW1va3JlLmh0bWwmcGFyc2VkVXJsJTVCcXVlcnklNUQ9b2QlM0QxJTI2cmlkZV9pZCUzRDEzOTc4NzEmaW5jbHVkZUNvbW1lbnRJZD0w|" + 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"; }); }); }); -->