favorite comment 0
thumb_up0thumb_down

directions_bikePoľsko - Wisla

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ť
75,5 km
schedule Čas
04:17:10
landscape Nastúpané
1 464 m

bar_chartŠtatistiky

Priemer Max
Rýchlosť 17,6 km/h 63,3 km/h
Výkon 177 W -
Tepová frekvencia 113 bpm 165 bpm
Energetický výdaj 1 792 kcal

cloudPodmienky

Priemerná teplota 29 °C
directions_bike Bicykel: Exceed

directions_bike Posledné aktivity bikera

thumb_up0thumb_down

directions_bike Trojak

trending_up 54,5 km
schedule 02:51:27
landscape 953 m
thumb_up0thumb_down

directions_bike Pod Javorskym

trending_up 37,2 km
schedule 02:09:11
landscape 832 m
thumb_up0thumb_down

directions_bike Šance

trending_up 27,4 km
schedule 01:14:12
landscape 399 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 24%","segmentDistance":"D\u013a\u017eka: 2.66 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 9.2 %<\/b>","segmentNameHref":"kozince-uphill-%3E-24"},"geometry":{"type":"LineString","coordinates":[["18.774174","49.437204",415.8],["18.774174","49.437204",415.8],["18.775271","49.43729",415.6],["18.775821","49.437529",415],["18.776441","49.437507",414.2],["18.777579","49.437419",413.4],["18.778833","49.437383",414],["18.7793","49.437531",413.6],["18.77955","49.437869",413.4],["18.780151","49.437927",414.6],["18.780169","49.438117",414.6],["18.779855","49.438275",413.4],["18.779789","49.438463",413.4],["18.779775","49.438717",413.8],["18.779918","49.439055",412.8],["18.780569","49.439418",411.8],["18.781461","49.439788",411.4],["18.782229","49.440492",411.8],["18.782705","49.440716",412.6],["18.783539","49.440831",412],["18.784361","49.441261",411.6],["18.785082","49.441762",411.6],["18.786089","49.441893",411.8],["18.786445","49.441875",412.4],["18.786835","49.442215",412.2],["18.786598","49.442467",412.6],["18.785874","49.443266",412.6],["18.784902","49.444105",413.2],["18.78403","49.444965",413.2],["18.783092","49.445859",413.8],["18.781901","49.446968",414.4],["18.780637","49.448203",415.8],["18.780112","49.449134",415.8],["18.779921","49.449368",416],["18.778959","49.450145",414],["18.778896","49.450366",413.6],["18.779426","49.450695",413.6],["18.778935","49.451167",414.4],["18.778855","49.451443",414.8],["18.778954","49.451956",414.2],["18.779289","49.452171",414.4],["18.780158","49.452276",416],["18.780544","49.452538",416.4],["18.78072","49.452979",417.2],["18.78103","49.45332",419],["18.781272","49.454212",418.2],["18.781362","49.454567",418],["18.781339","49.454864",419.2],["18.779619","49.455759",418],["18.778652","49.456311",418.2],["18.778546","49.456906",417.8],["18.778257","49.457358",419.4],["18.778618","49.457489",419.8],["18.779019","49.457666",418.8],["18.779249","49.458339",420],["18.779536","49.458951",420.4],["18.77939","49.459362",420],["18.779482","49.459569",420],["18.780174","49.460008",420]]}},{"type":"Feature","properties":{"type":99,"segment":"201867","segmentName":"Kopyd\u0142o 79 Climb","segmentDistance":"D\u013a\u017eka: 1.78 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 7 %<\/b>","segmentNameHref":"kopydlo-79-climb"},"geometry":{"type":"LineString","coordinates":[["18.774174","49.437204",415.8],["18.774174","49.437204",415.8],["18.775271","49.43729",415.6],["18.775821","49.437529",415],["18.776441","49.437507",414.2],["18.777579","49.437419",413.4],["18.778833","49.437383",414],["18.7793","49.437531",413.6],["18.77955","49.437869",413.4],["18.780151","49.437927",414.6],["18.780169","49.438117",414.6],["18.779855","49.438275",413.4],["18.779789","49.438463",413.4],["18.779775","49.438717",413.8],["18.779918","49.439055",412.8],["18.780569","49.439418",411.8],["18.781461","49.439788",411.4],["18.782229","49.440492",411.8],["18.782705","49.440716",412.6],["18.783539","49.440831",412],["18.784361","49.441261",411.6],["18.785082","49.441762",411.6],["18.786089","49.441893",411.8],["18.786445","49.441875",412.4],["18.786835","49.442215",412.2],["18.786598","49.442467",412.6],["18.785874","49.443266",412.6],["18.784902","49.444105",413.2],["18.78403","49.444965",413.2],["18.783092","49.445859",413.8],["18.781901","49.446968",414.4],["18.780637","49.448203",415.8],["18.780112","49.449134",415.8],["18.779921","49.449368",416],["18.778959","49.450145",414],["18.778896","49.450366",413.6],["18.779426","49.450695",413.6],["18.778935","49.451167",414.4],["18.778855","49.451443",414.8],["18.778954","49.451956",414.2],["18.779289","49.452171",414.4],["18.780158","49.452276",416],["18.780544","49.452538",416.4]]}},{"type":"Feature","properties":{"type":99,"segment":"201868","segmentName":"Kto nie spadnie, ten na koksie !","segmentDistance":"D\u013a\u017eka: 499.10 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 20 %<\/b>","segmentNameHref":"kto-nie-spadnie-ten-na-koksie"},"geometry":{"type":"LineString","coordinates":[["18.774174","49.437204",415.8],["18.774174","49.437204",415.8],["18.775271","49.43729",415.6],["18.775821","49.437529",415],["18.776441","49.437507",414.2],["18.777579","49.437419",413.4],["18.778833","49.437383",414],["18.7793","49.437531",413.6],["18.77955","49.437869",413.4],["18.780151","49.437927",414.6],["18.780169","49.438117",414.6],["18.779855","49.438275",413.4],["18.779789","49.438463",413.4],["18.779775","49.438717",413.8],["18.779918","49.439055",412.8]]}},{"type":"Feature","properties":{"type":99,"segment":"165883","segmentName":"Zjazd do Istebnej","segmentDistance":"D\u013a\u017eka: 4.15 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -5 %<\/b>","segmentNameHref":"zjazd-do-istebnej"},"geometry":{"type":"LineString","coordinates":[["18.774174","49.437204",415.8],["18.774174","49.437204",415.8],["18.775271","49.43729",415.6],["18.775821","49.437529",415],["18.776441","49.437507",414.2],["18.777579","49.437419",413.4],["18.778833","49.437383",414],["18.7793","49.437531",413.6],["18.77955","49.437869",413.4],["18.780151","49.437927",414.6],["18.780169","49.438117",414.6],["18.779855","49.438275",413.4],["18.779789","49.438463",413.4],["18.779775","49.438717",413.8],["18.779918","49.439055",412.8],["18.780569","49.439418",411.8],["18.781461","49.439788",411.4],["18.782229","49.440492",411.8],["18.782705","49.440716",412.6],["18.783539","49.440831",412],["18.784361","49.441261",411.6],["18.785082","49.441762",411.6],["18.786089","49.441893",411.8],["18.786445","49.441875",412.4],["18.786835","49.442215",412.2],["18.786598","49.442467",412.6],["18.785874","49.443266",412.6],["18.784902","49.444105",413.2],["18.78403","49.444965",413.2],["18.783092","49.445859",413.8],["18.781901","49.446968",414.4],["18.780637","49.448203",415.8],["18.780112","49.449134",415.8],["18.779921","49.449368",416],["18.778959","49.450145",414],["18.778896","49.450366",413.6],["18.779426","49.450695",413.6],["18.778935","49.451167",414.4],["18.778855","49.451443",414.8],["18.778954","49.451956",414.2],["18.779289","49.452171",414.4],["18.780158","49.452276",416],["18.780544","49.452538",416.4],["18.78072","49.452979",417.2],["18.78103","49.45332",419],["18.781272","49.454212",418.2],["18.781362","49.454567",418],["18.781339","49.454864",419.2],["18.779619","49.455759",418],["18.778652","49.456311",418.2],["18.778546","49.456906",417.8],["18.778257","49.457358",419.4],["18.778618","49.457489",419.8],["18.779019","49.457666",418.8],["18.779249","49.458339",420],["18.779536","49.458951",420.4],["18.77939","49.459362",420],["18.779482","49.459569",420],["18.780174","49.460008",420],["18.782314","49.460699",420.6],["18.782431","49.461246",421.6],["18.782413","49.461656",421.6],["18.782622","49.461968",422.2],["18.782829","49.46283",421.8],["18.782941","49.463409",422.8],["18.783228","49.464879",423.6],["18.783385","49.466062",423.4],["18.783285","49.466521",423.4],["18.783146","49.466829",423.2],["18.783468","49.468055",425],["18.783535","49.468735",426],["18.783101","49.468899",430.2],["18.782074","49.468899",442.2],["18.781683","49.469043",447.6],["18.781503","49.469346",452.6],["18.781438","49.469773",458.6],["18.781351","49.470242",464],["18.78123","49.470466",466.6],["18.781094","49.470661",470],["18.781229","49.471102",473.4],["18.781399","49.471824",473.2],["18.781612","49.471986",470],["18.781635","49.472287",466],["18.781775","49.472721",459.8],["18.781956","49.47308",460.8],["18.782867","49.473537",457.6]]}},{"type":"Feature","properties":{"type":99,"segment":"165884","segmentName":"Full gas do Istebnej","segmentDistance":"D\u013a\u017eka: 505.80 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -6.6 %<\/b>","segmentNameHref":"full-gas-do-istebnej"},"geometry":{"type":"LineString","coordinates":[["18.774174","49.437204",415.8],["18.774174","49.437204",415.8],["18.775271","49.43729",415.6],["18.775821","49.437529",415],["18.776441","49.437507",414.2],["18.777579","49.437419",413.4],["18.778833","49.437383",414],["18.7793","49.437531",413.6],["18.77955","49.437869",413.4],["18.780151","49.437927",414.6],["18.780169","49.438117",414.6],["18.779855","49.438275",413.4],["18.779789","49.438463",413.4],["18.779775","49.438717",413.8],["18.779918","49.439055",412.8]]}},{"type":"Feature","properties":{"type":99,"segment":"165885","segmentName":"podjazd w Istebnej do szko\u0142y","segmentDistance":"D\u013a\u017eka: 815.90 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 4.2 %<\/b>","segmentNameHref":"podjazd-w-istebnej-do-szkoly"},"geometry":{"type":"LineString","coordinates":[["18.774174","49.437204",415.8],["18.774174","49.437204",415.8],["18.775271","49.43729",415.6],["18.775821","49.437529",415],["18.776441","49.437507",414.2],["18.777579","49.437419",413.4],["18.778833","49.437383",414],["18.7793","49.437531",413.6],["18.77955","49.437869",413.4],["18.780151","49.437927",414.6],["18.780169","49.438117",414.6],["18.779855","49.438275",413.4],["18.779789","49.438463",413.4],["18.779775","49.438717",413.8],["18.779918","49.439055",412.8],["18.780569","49.439418",411.8],["18.781461","49.439788",411.4],["18.782229","49.440492",411.8],["18.782705","49.440716",412.6],["18.783539","49.440831",412]]}},{"type":"Feature","properties":{"type":99,"segment":"165886","segmentName":"Kr\u00f3tki, sztywny podjazd w Istebnej (sklep euro)","segmentDistance":"D\u013a\u017eka: 230.50 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 10.9 %<\/b>","segmentNameHref":"krotki-sztywny-podjazd-w-istebnej-sklep-euro"},"geometry":{"type":"LineString","coordinates":[["18.774174","49.437204",415.8],["18.774174","49.437204",415.8],["18.775271","49.43729",415.6],["18.775821","49.437529",415],["18.776441","49.437507",414.2]]}},{"type":"Feature","properties":{"type":99,"segment":"331388","segmentName":"Radiska last part","segmentDistance":"D\u013a\u017eka: 740.50 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 10.1 %<\/b>","segmentNameHref":"radiska-last-part"},"geometry":{"type":"LineString","coordinates":[["18.774174","49.437204",415.8],["18.774174","49.437204",415.8],["18.775271","49.43729",415.6],["18.775821","49.437529",415],["18.776441","49.437507",414.2],["18.777579","49.437419",413.4],["18.778833","49.437383",414],["18.7793","49.437531",413.6],["18.77955","49.437869",413.4],["18.780151","49.437927",414.6],["18.780169","49.438117",414.6],["18.779855","49.438275",413.4],["18.779789","49.438463",413.4],["18.779775","49.438717",413.8],["18.779918","49.439055",412.8],["18.780569","49.439418",411.8],["18.781461","49.439788",411.4],["18.782229","49.440492",411.8],["18.782705","49.440716",412.6]]}},{"type":"Feature","properties":{"type":99,"segment":"260997","segmentName":"Redi\u0161ka > \u010cadca ","segmentDistance":"D\u013a\u017eka: 6.39 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -3.6 %<\/b>","segmentNameHref":"rediska-%3E-cadca"},"geometry":{"type":"LineString","coordinates":[["18.774174","49.437204",415.8],["18.774174","49.437204",415.8],["18.775271","49.43729",415.6],["18.775821","49.437529",415],["18.776441","49.437507",414.2],["18.777579","49.437419",413.4],["18.778833","49.437383",414],["18.7793","49.437531",413.6],["18.77955","49.437869",413.4],["18.780151","49.437927",414.6],["18.780169","49.438117",414.6],["18.779855","49.438275",413.4],["18.779789","49.438463",413.4],["18.779775","49.438717",413.8],["18.779918","49.439055",412.8],["18.780569","49.439418",411.8],["18.781461","49.439788",411.4],["18.782229","49.440492",411.8],["18.782705","49.440716",412.6],["18.783539","49.440831",412],["18.784361","49.441261",411.6],["18.785082","49.441762",411.6],["18.786089","49.441893",411.8],["18.786445","49.441875",412.4],["18.786835","49.442215",412.2],["18.786598","49.442467",412.6],["18.785874","49.443266",412.6],["18.784902","49.444105",413.2],["18.78403","49.444965",413.2],["18.783092","49.445859",413.8],["18.781901","49.446968",414.4],["18.780637","49.448203",415.8],["18.780112","49.449134",415.8],["18.779921","49.449368",416],["18.778959","49.450145",414],["18.778896","49.450366",413.6],["18.779426","49.450695",413.6],["18.778935","49.451167",414.4],["18.778855","49.451443",414.8],["18.778954","49.451956",414.2],["18.779289","49.452171",414.4],["18.780158","49.452276",416],["18.780544","49.452538",416.4],["18.78072","49.452979",417.2],["18.78103","49.45332",419],["18.781272","49.454212",418.2],["18.781362","49.454567",418],["18.781339","49.454864",419.2],["18.779619","49.455759",418],["18.778652","49.456311",418.2],["18.778546","49.456906",417.8],["18.778257","49.457358",419.4],["18.778618","49.457489",419.8],["18.779019","49.457666",418.8],["18.779249","49.458339",420],["18.779536","49.458951",420.4],["18.77939","49.459362",420],["18.779482","49.459569",420],["18.780174","49.460008",420],["18.782314","49.460699",420.6],["18.782431","49.461246",421.6],["18.782413","49.461656",421.6],["18.782622","49.461968",422.2],["18.782829","49.46283",421.8],["18.782941","49.463409",422.8],["18.783228","49.464879",423.6],["18.783385","49.466062",423.4],["18.783285","49.466521",423.4],["18.783146","49.466829",423.2],["18.783468","49.468055",425],["18.783535","49.468735",426],["18.783101","49.468899",430.2],["18.782074","49.468899",442.2],["18.781683","49.469043",447.6],["18.781503","49.469346",452.6],["18.781438","49.469773",458.6],["18.781351","49.470242",464],["18.78123","49.470466",466.6],["18.781094","49.470661",470],["18.781229","49.471102",473.4],["18.781399","49.471824",473.2],["18.781612","49.471986",470],["18.781635","49.472287",466],["18.781775","49.472721",459.8],["18.781956","49.47308",460.8],["18.782867","49.473537",457.6],["18.783279","49.474142",454.6],["18.783727","49.474197",451.6],["18.784615","49.473982",443],["18.784852","49.474133",438.4],["18.784963","49.474676",435.4],["18.785057","49.475092",444],["18.785384","49.475942",447.4],["18.78568","49.476545",447.6],["18.786175","49.4768",444.2],["18.786407","49.476778",443.2],["18.786959","49.477213",439.2],["18.787822","49.477676",432.6],["18.788985","49.478357",431.4],["18.790482","49.479213",431],["18.793052","49.480364",432],["18.793256","49.480496",433.6],["18.793208","49.480475",434.4],["18.794074","49.480866",433.2],["18.795322","49.481746",433.6],["18.796582","49.483105",435.6],["18.79812","49.48464",437.4],["18.799485","49.48546",438.8],["18.803332","49.486752",441.2],["18.805357","49.487429",441.8],["18.808554","49.488613",442.8]]}},{"type":"Feature","properties":{"type":99,"segment":"95478","segmentName":"Jaworzynka strome z fajn\u0105 serpentynk\u0105","segmentDistance":"D\u013a\u017eka: 826.10 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 9.1 %<\/b>","segmentNameHref":"jaworzynka-strome-z-fajna-serpentynka"},"geometry":{"type":"LineString","coordinates":[["18.885769","49.541594",518.8],["18.885769","49.541594",518.8],["18.885258","49.54232",524.4],["18.885326","49.542535",527.4],["18.885751","49.542713",530.4],["18.88591","49.542884",533],["18.885003","49.543166",540],["18.883881","49.543569",550.4],["18.883717","49.543832",554.4],["18.883931","49.543997",557.4],["18.884386","49.544141",562.6],["18.884446","49.544253",565.2],["18.884199","49.544478",569.8],["18.883892","49.544726",573.4],["18.883226","49.545158",579.4],["18.882839","49.5456",581.8],["18.882903","49.546006",584.2],["18.882653","49.546331",587.4],["18.881844","49.546513",591.2]]}},{"type":"Feature","properties":{"type":99,"segment":"95492","segmentName":"Jaworzynka Climb","segmentDistance":"D\u013a\u017eka: 3.48 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.1 %<\/b>","segmentNameHref":"jaworzynka-climb"},"geometry":{"type":"LineString","coordinates":[["18.882961","49.549467",573.8],["18.882961","49.549467",573.8],["18.883561","49.54971",570.2],["18.88332","49.549811",570.8],["18.883277","49.54995",569.8],["18.883355","49.550989",561],["18.883499","49.553237",544.6],["18.883753","49.553682",539.6],["18.88419","49.554047",534.8],["18.885779","49.554881",527.2],["18.888223","49.556267",519.2],["18.889394","49.556917",521.2],["18.889949","49.557317",520.8],["18.890666","49.558311",522.8],["18.89058","49.558355",523.8],["18.890811","49.558733",526.6],["18.891179","49.559472",534],["18.891703","49.560486",546],["18.892103","49.561259",554.6],["18.892294","49.561596",559.2],["18.892687","49.562408",570],["18.892949","49.562903",577.6],["18.893244","49.563444",585],["18.893337","49.563753",587.4],["18.893133","49.563847",588.4],["18.892514","49.563796",590],["18.892755","49.563666",589.6],["18.89313","49.563681",589],["18.893155","49.563802",589.2],["18.893308","49.563856",588.6],["18.893646","49.56392",588.2],["18.894383","49.563914",588.4],["18.895818","49.563831",592],["18.896428","49.563619",595.4],["18.89728","49.563188",599.4],["18.898525","49.562913",603.4],["18.900906","49.562651",604.2],["18.902353","49.562908",608.2],["18.905292","49.563037",606.4],["18.906551","49.563032",604.8],["18.908687","49.562648",602],["18.910054","49.562378",607],["18.91127","49.56213",612.8],["18.913879","49.561478",618.6],["18.915513","49.560507",622],["18.915773","49.560386",622.6],["18.915149","49.560796",621.8],["18.915325","49.560931",622.4],["18.915729","49.561339",627.6],["18.916243","49.561704",633.6],["18.916545","49.561949",636.6],["18.91705","49.562308",637.4],["18.917721","49.562486",633.8],["18.917827","49.562658",629.4],["18.917739","49.563151",622.8],["18.918131","49.56348",617.8],["18.918707","49.563646",612.6],["18.92046","49.564782",602],["18.922304","49.565747",587],["18.923259","49.566328",575.8]]}},{"type":"Feature","properties":{"type":99,"segment":"4370","segmentName":"Istebna climb on the road 941","segmentDistance":"D\u013a\u017eka: 575.54 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 11.2 %<\/b>","segmentNameHref":"istebna-climb-on-the-road-941"},"geometry":{"type":"LineString","coordinates":[["18.890811","49.558733",526.6],["18.890811","49.558733",526.6],["18.891179","49.559472",534],["18.891703","49.560486",546],["18.892103","49.561259",554.6],["18.892294","49.561596",559.2],["18.892687","49.562408",570],["18.892949","49.562903",577.6]]}},{"type":"Feature","properties":{"type":99,"segment":"95490","segmentName":"na \u0142eb na szyje","segmentDistance":"D\u013a\u017eka: 654.60 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -9.7 %<\/b>","segmentNameHref":"na-leb-na-szyje"},"geometry":{"type":"LineString","coordinates":[["18.893244","49.563444",585],["18.893244","49.563444",585],["18.893337","49.563753",587.4],["18.893133","49.563847",588.4],["18.892514","49.563796",590],["18.892755","49.563666",589.6],["18.89313","49.563681",589],["18.893155","49.563802",589.2],["18.893308","49.563856",588.6],["18.893646","49.56392",588.2],["18.894383","49.563914",588.4],["18.895818","49.563831",592],["18.896428","49.563619",595.4],["18.89728","49.563188",599.4],["18.898525","49.562913",603.4],["18.900906","49.562651",604.2]]}},{"type":"Feature","properties":{"type":99,"segment":"95480","segmentName":"Ku Stec\u00f3wce","segmentDistance":"D\u013a\u017eka: 2.53 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.3 %<\/b>","segmentNameHref":"ku-stecowce"},"geometry":{"type":"LineString","coordinates":[["18.934978","49.569863",573.6],["18.934978","49.569863",573.6],["18.934943","49.569809",573.6],["18.934943","49.569809",573.6],["18.934986","49.569853",573.8],["18.934986","49.569853",573.8],["18.93532","49.570382",579.4],["18.935537","49.570673",584.6],["18.935656","49.570883",587.8],["18.936169","49.571315",593.2],["18.936588","49.571692",598.2],["18.936862","49.571941",602],["18.937012","49.572092",604.6],["18.937196","49.572264",607.2],["18.937594","49.572625",612.2],["18.937888","49.572894",614.8],["18.93882","49.57309",618.8],["18.940314","49.573191",623.6],["18.941237","49.573419",627.4],["18.942718","49.573866",632],["18.943424","49.574456",635.2],["18.944337","49.575494",637.2],["18.944846","49.576021",641.6],["18.945291","49.576474",648],["18.945748","49.5769",652.4],["18.94611","49.577358",653.8],["18.946923","49.577733",655.4],["18.946965","49.578262",658.8],["18.947087","49.578751",663.8],["18.948704","49.579475",666.6],["18.949123","49.579622",668.8],["18.949442","49.579927",671],["18.950108","49.580411",672.8],["18.950076","49.580839",673.8],["18.949984","49.580861",675.6],["18.950102","49.581362",679.6],["18.949805","49.581876",686],["18.949167","49.582269",690.2],["18.948275","49.582605",697.6],["18.947513","49.582608",703.8],["18.946914","49.582894",707.6],["18.946296","49.583335",712],["18.945915","49.58371",716.6],["18.945693","49.584159",719],["18.945845","49.584575",719],["18.945647","49.585044",721.2],["18.945265","49.585439",725.4],["18.945097","49.585895",729.4]]}},{"type":"Feature","properties":{"type":99,"segment":"95481","segmentName":"Z Zaolzia do skrzy\u017cowania","segmentDistance":"D\u013a\u017eka: 1.63 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.7 %<\/b>","segmentNameHref":"z-zaolzia-do-skrzyzowania"},"geometry":{"type":"LineString","coordinates":[["18.934978","49.569863",573.6],["18.934978","49.569863",573.6],["18.934943","49.569809",573.6],["18.934943","49.569809",573.6],["18.934986","49.569853",573.8],["18.934986","49.569853",573.8],["18.93532","49.570382",579.4],["18.93532","49.570382",579.4],["18.935537","49.570673",584.6],["18.935656","49.570883",587.8],["18.936169","49.571315",593.2],["18.936588","49.571692",598.2],["18.936862","49.571941",602],["18.937012","49.572092",604.6],["18.937196","49.572264",607.2],["18.937594","49.572625",612.2],["18.937888","49.572894",614.8],["18.93882","49.57309",618.8],["18.940314","49.573191",623.6],["18.941237","49.573419",627.4],["18.942718","49.573866",632],["18.943424","49.574456",635.2],["18.944337","49.575494",637.2],["18.944846","49.576021",641.6],["18.945291","49.576474",648],["18.945748","49.5769",652.4],["18.94611","49.577358",653.8],["18.946923","49.577733",655.4],["18.946965","49.578262",658.8],["18.947087","49.578751",663.8],["18.948704","49.579475",666.6],["18.949123","49.579622",668.8],["18.949442","49.579927",671]]}},{"type":"Feature","properties":{"type":99,"segment":"95482","segmentName":"Stec\u00f3wka od Pietraszonki","segmentDistance":"D\u013a\u017eka: 841.60 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 7.1 %<\/b>","segmentNameHref":"stecowka-od-pietraszonki"},"geometry":{"type":"LineString","coordinates":[["18.950108","49.580411",672.8],["18.950108","49.580411",672.8],["18.950076","49.580839",673.8],["18.949984","49.580861",675.6],["18.950102","49.581362",679.6],["18.949805","49.581876",686],["18.949167","49.582269",690.2],["18.948275","49.582605",697.6],["18.947513","49.582608",703.8],["18.946914","49.582894",707.6],["18.946296","49.583335",712],["18.945915","49.58371",716.6],["18.945693","49.584159",719],["18.945845","49.584575",719],["18.945647","49.585044",721.2],["18.945265","49.585439",725.4],["18.945097","49.585895",729.4]]}},{"type":"Feature","properties":{"type":99,"segment":"95491","segmentName":"Segment","segmentDistance":"D\u013a\u017eka: 1.96 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.3 %<\/b>","segmentNameHref":"segment"},"geometry":{"type":"LineString","coordinates":[["18.886397","49.555382",526.8],["18.886397","49.555382",526.8],["18.885503","49.554887",532.2],["18.884911","49.554485",535.2],["18.883874","49.553921",539],["18.883388","49.553397",546.4],["18.883346","49.553118",548.2],["18.883349","49.552918",549.6],["18.883254","49.552017",557.2],["18.883203","49.551527",561.2],["18.883201","49.551088",564],["18.883119","49.550057",570.6],["18.882797","49.54985",574.2],["18.882829","49.54973",573.8],["18.882826","49.549554",576.4],["18.882298","49.549234",579.4],["18.881395","49.548662",586],["18.880706","49.548077",591.6],["18.879674","49.547085",601.4],["18.879023","49.54636",606.8],["18.878577","49.545413",608],["18.878147","49.544616",609.4],["18.877434","49.54399",613.8],["18.876294","49.543401",620.4],["18.875027","49.54323",625.4],["18.874141","49.54274",627.2],["18.872672","49.541739",627.4]]}},{"type":"Feature","properties":{"type":99,"segment":"34638","segmentName":"Redi\u0161ka 6% Climb","segmentDistance":"D\u013a\u017eka: 3.17 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.1 %<\/b>","segmentNameHref":"rediska-6-climb"},"geometry":{"type":"LineString","coordinates":[["18.849506","49.50807",483.6],["18.849506","49.50807",483.6],["18.849727","49.507661",484.8],["18.849727","49.507661",484.8],["18.849755","49.506931",487.8],["18.849984","49.506193",489.4],["18.85021","49.505295",491.6],["18.85052","49.504808",493.8],["18.85082","49.50412",494.8],["18.851308","49.503556",496.8],["18.851653","49.502975",498.4],["18.851831","49.502631",499.6],["18.852054","49.502151",501.4],["18.852123","49.501865",502.6],["18.852327","49.501368",504.6],["18.852484","49.50094",505.8],["18.852622","49.500367",507.8],["18.852972","49.49995",509.8],["18.853069","49.499605",512.4],["18.853125","49.49888",517.6],["18.85307","49.49813",520.6],["18.853255","49.497111",524.2],["18.853157","49.496713",526.6],["18.852955","49.496439",528.8],["18.852978","49.496095",529],["18.853432","49.49561",532],["18.853819","49.495212",535],["18.854055","49.494954",538],["18.8543","49.494652",541],["18.854591","49.494245",543.4],["18.854816","49.493703",546.2],["18.854955","49.493254",547.2],["18.855028","49.492992",549.6],["18.855059","49.492843",551],["18.855243","49.492508",554.8],["18.855493","49.492209",559.6],["18.855511","49.492036",562.4],["18.855325","49.49195",564.6],["18.854838","49.492075",567.4],["18.854221","49.491969",570],["18.853389","49.491616",569.8],["18.853089","49.491289",571.4],["18.85285","49.49089",573.2],["18.852644","49.490402",576.6],["18.852615","49.490109",580],["18.852582","49.489931",582.6],["18.852386","49.489497",587.4],["18.85181","49.489342",592.6],["18.851394","49.489287",596.6],["18.850784","49.48938",601.8],["18.850206","49.489521",607.2],["18.849642","49.489687",612],["18.848775","49.489996",618],["18.848384","49.490147",621.4],["18.847645","49.490482",626.4],["18.846834","49.490479",632.6],["18.846244","49.490357",638.4],["18.845682","49.490173",642.6],["18.845108","49.489966",646.8],["18.844637","49.489811",650.2],["18.844069","49.489627",654.8],["18.843294","49.489508",660.6],["18.842769","49.489527",664],["18.842412","49.489543",668.2],["18.84185","49.489464",673.4]]}}] 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":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-0_667ae1a80542f.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-0_667ae1a80542f.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-1_667ae1ab79a5d.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-1_667ae1ab79a5d.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-10_667ae1ca5889f.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-10_667ae1ca5889f.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-11_667ae1cde6850.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-11_667ae1cde6850.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-2_667ae1af14aa5.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-2_667ae1af14aa5.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-3_667ae1b212ecd.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-3_667ae1b212ecd.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-4_667ae1b58823e.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-4_667ae1b58823e.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-5_667ae1b943aa9.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-5_667ae1b943aa9.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-6_667ae1bc8bb16.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-6_667ae1bc8bb16.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-7_667ae1bfd6ed1.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-7_667ae1bfd6ed1.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-8_667ae1c38312e.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-8_667ae1c38312e.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-9_667ae1c700528.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1893965-9_667ae1c700528.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=bW9kdWw9dnlqYXpkeSZleHRlcm5hbElkPTE4OTM5NjUmaXRlbU5hbWU9ViVDMyVCRGphemQrJUM0JThELisxODkzOTY1JmNvbW1lbnRUeXBlPWNvbW1lbnQmYXV0aG9yVXNlcklkPTY5NzcxJndpZGdldElkPWNvbW1lbnRzJmFsbG93SW5zZXJ0PTEmYWxsb3dSZXBseT0xJnJldHVyblVybD1odHRwcyUzQSUyRiUyRnd3dy5tdGhpa2VyLnNrJTJGYWt0aXZpdHklMkYxODkzOTY1JTJGYmljeWtlbC1wb2xza28td2lzbGEuaHRtbCZwYXJzZWRVcmwlNUJzY2hlbWUlNUQ9aHR0cHMmcGFyc2VkVXJsJTVCaG9zdCU1RD13d3cubXRoaWtlci5zayZwYXJzZWRVcmwlNUJwYXRoJTVEPSUyRmFrdGl2aXR5JTJGMTg5Mzk2NSUyRmJpY3lrZWwtcG9sc2tvLXdpc2xhLmh0bWwmaW5jbHVkZUNvbW1lbnRJZD0w|" + 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(); }); }); $(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"; }); }); }); -->