favorite comment 0
thumb_up0thumb_down

directions_bikepomaly dalej zajdes 🫠

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ť
55,5 km
schedule Čas
01:48:05
landscape Nastúpané
135 m

bar_chartŠtatistiky

Priemer Max
Rýchlosť 30,8 km/h 53,4 km/h
Výkon 206 W 1 036 W
Kadencia 92 rpm -
Tepová frekvencia 125 bpm 161 bpm
Energetický výdaj 1 523 kcal

cloudPodmienky

Priemerná teplota 25 °C

directions_bike Posledné aktivity bikera

thumb_up0thumb_down

directions_bike 'Výklusík"

trending_up 90,3 km
schedule 02:36:51
landscape 142 m
thumb_up0thumb_down

pedal_bike kým nepriateľ spí

trending_up 33,7 km
schedule 01:00:00
landscape 0 m
thumb_up0thumb_down

directions_bike Quality time

trending_up 12,7 km
schedule 00:43:16
landscape 23 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 Mojzesovo","segmentDistance":"D\u013a\u017eka: 5.13 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: 0 %<\/b>","segmentNameHref":"ondochov-%3Emojzesovo"},"geometry":{"type":"LineString","coordinates":[["18.180579","48.122186",126.2],["18.180579","48.122186",126.2],["18.181321","48.122328",126.2],["18.181474","48.122717",126.2],["18.18173","48.124189",125.2],["18.181868","48.125158",126.6],["18.182104","48.125319",126.6],["18.184338","48.12543",126.4],["18.18739","48.126689",126.8],["18.189305","48.12746",127.2],["18.190886","48.127892",127],["18.192319","48.12782",126.2],["18.193057","48.127548",126],["18.194138","48.126495",126],["18.194711","48.126086",126],["18.1958","48.125841",126.2],["18.19758","48.126102",126.2],["18.202764","48.127067",125.8],["18.205543","48.127735",125.6],["18.206722","48.127843",125.4],["18.207874","48.127788",125.2],["18.209721","48.127758",125.4],["18.210728","48.127715",125.2],["18.212437","48.127713",125.6],["18.213646","48.12769",125.6],["18.21467","48.127711",125.4],["18.215807","48.127697",125.6],["18.216298","48.127884",125.4],["18.21813","48.128431",125.6],["18.220322","48.129159",125.8],["18.222446","48.129853",125.8],["18.224831","48.130604",125.8],["18.227164","48.131368",125.8],["18.228919","48.132021",125.8],["18.229863","48.132809",126.4],["18.230545","48.133046",128.4],["18.231461","48.132967",129.2],["18.232068","48.133046",129.2],["18.233747","48.134123",127.6],["18.234884","48.134776",126.4]]}},{"type":"Feature","properties":{"type":99,"segment":"38680","segmentName":"Mana sprint","segmentDistance":"D\u013a\u017eka: 1.24 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"mana-sprint"},"geometry":{"type":"LineString","coordinates":[["18.271081","48.155213",131.8],["18.271081","48.155213",131.8],["18.273982","48.154462",131.6],["18.275813","48.154105",132],["18.279569","48.153956",133],["18.283068","48.153812",131.6]]}},{"type":"Feature","properties":{"type":99,"segment":"24631","segmentName":"Ma\u0148a - Vlkas","segmentDistance":"D\u013a\u017eka: 1.20 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"mana-vlkas"},"geometry":{"type":"LineString","coordinates":[["18.285109","48.140331",136.8],["18.285109","48.140331",136.8],["18.285413","48.13882",140.6],["18.285499","48.137795",141.6],["18.285407","48.134913",140.6],["18.284446","48.132663",136.8],["18.283727","48.131503",136.2],["18.281847","48.129746",136.8]]}},{"type":"Feature","properties":{"type":99,"segment":"24632","segmentName":"Vlkas - Hul","segmentDistance":"D\u013a\u017eka: 4.50 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.2 %<\/b>","segmentNameHref":"vlkas-hul"},"geometry":{"type":"LineString","coordinates":[["18.281847","48.129746",136.8],["18.281847","48.129746",136.8],["18.279974","48.128667",137],["18.278557","48.127587",136.6],["18.277984","48.126361",134.4],["18.277319","48.124863",132],["18.277025","48.12302",131],["18.276999","48.121921",129.2],["18.276614","48.120593",128.8],["18.276576","48.119794",129.2],["18.277311","48.118089",127.8],["18.277871","48.116722",128.6],["18.277776","48.116257",129.2],["18.277001","48.114433",133.8],["18.276484","48.113236",137.2],["18.274292","48.108059",130.8],["18.273493","48.10619",129.4],["18.272458","48.103737",128.6],["18.2715","48.101556",127.4],["18.271047","48.101264",127],["18.266691","48.099431",128.6],["18.26565","48.098717",128.4],["18.263125","48.096723",128],["18.26229","48.095935",126.8],["18.261917","48.095368",126],["18.261651","48.094309",126.4],["18.260829","48.09289",129.2],["18.260398","48.092322",129.4],["18.260204","48.092005",129.4]]}},{"type":"Feature","properties":{"type":99,"segment":"24633","segmentName":"Igorov Huuuuuuuuuuuuuuuul","segmentDistance":"D\u013a\u017eka: 398.40 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 2.1 %<\/b>","segmentNameHref":"igorov-huuuuuuuuuuuuuuuul"},"geometry":{"type":"LineString","coordinates":[["18.277871","48.116722",128.6],["18.277871","48.116722",128.6],["18.277776","48.116257",129.2],["18.277001","48.114433",133.8]]}},{"type":"Feature","properties":{"type":99,"segment":"27725","segmentName":"Dolny Ohaj --> Dvory nad Zitavou","segmentDistance":"D\u013a\u017eka: 11.72 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: 0 %<\/b>","segmentNameHref":"dolny-ohaj-%3E-dvory-nad-zitavou"},"geometry":{"type":"LineString","coordinates":[["18.260204","48.092005",129.4],["18.260204","48.092005",129.4],["18.259345","48.090815",127.8],["18.25759","48.088411",126.2],["18.256166","48.086587",124.4],["18.254399","48.084888",124.8],["18.252714","48.084108",125.4],["18.251543","48.083425",125.6],["18.250663","48.08286",124.6],["18.248944","48.082151",124.8],["18.248521","48.081817",126],["18.248266","48.081086",126.6],["18.247728","48.080335",127],["18.247852","48.080079",127.2],["18.249023","48.079187",128.2],["18.250207","48.078218",127.6],["18.251386","48.077075",126.2],["18.25319","48.075354",126.6],["18.254162","48.074752",127],["18.257086","48.072997",125.2],["18.262025","48.071061",123.4],["18.262768","48.070596",123.8],["18.263635","48.069658",124],["18.264068","48.067825",124.8],["18.264031","48.066919",127.2],["18.264189","48.065652",126.4],["18.265059","48.064103",125.6],["18.2657","48.062993",125.8],["18.266048","48.061722",126.8],["18.26636","48.060324",126.2],["18.266323","48.058966",124],["18.26619","48.057949",124.6],["18.266067","48.057016",123.4],["18.265583","48.054547",123.6],["18.264949","48.051968",123],["18.264709","48.051003",123.8],["18.264117","48.048699",123.4],["18.263848","48.047606",123.6],["18.263501","48.046193",121.8],["18.262277","48.045541",122],["18.261758","48.04509",122.2],["18.261567","48.044693",122],["18.261678","48.044201",122],["18.263362","48.042443",122.4],["18.264976","48.04116",124.2],["18.265453","48.040468",123.6],["18.267115","48.038089",128.8],["18.268479","48.036136",131.8],["18.269207","48.035007",131.2],["18.270163","48.033532",130.6],["18.271171","48.031983",132.2],["18.271926","48.030326",135],["18.273232","48.027317",134.4],["18.27341","48.026645",133.6],["18.271462","48.023857",128],["18.269802","48.021557",124.4],["18.269047","48.020245",123.6],["18.267881","48.017615",121.6],["18.267226","48.016133",121.6],["18.266237","48.014266",121.4],["18.266067","48.013276",123.2],["18.266081","48.011803",123.6],["18.266663","48.009042",126.2],["18.266793","48.007304",127.2],["18.266935","48.005818",129],["18.266875","48.004358",126.4],["18.266521","48.003141",126.8],["18.266318","48.002039",126.2],["18.266281","48.000908",125.4],["18.266792","47.999463",125.4]]}},{"type":"Feature","properties":{"type":99,"segment":"81106","segmentName":"Doln\u00fd Ohaj-Be\u0161e\u0148ov","segmentDistance":"D\u013a\u017eka: 2.64 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"dolny-ohaj-besenov"},"geometry":{"type":"LineString","coordinates":[["18.257086","48.072997",125.2],["18.257086","48.072997",125.2],["18.262025","48.071061",123.4],["18.262768","48.070596",123.8],["18.263635","48.069658",124],["18.264068","48.067825",124.8],["18.264031","48.066919",127.2],["18.264189","48.065652",126.4],["18.265059","48.064103",125.6],["18.2657","48.062993",125.8],["18.266048","48.061722",126.8],["18.26636","48.060324",126.2],["18.266323","48.058966",124],["18.26619","48.057949",124.6],["18.266067","48.057016",123.4],["18.265583","48.054547",123.6],["18.264949","48.051968",123],["18.264709","48.051003",123.8]]}},{"type":"Feature","properties":{"type":99,"segment":"6640","segmentName":"Be\u0161e\u0148ov \u0161print","segmentDistance":"D\u013a\u017eka: 1.73 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"besenov-sprint"},"geometry":{"type":"LineString","coordinates":[["18.265059","48.064103",125.6],["18.265059","48.064103",125.6],["18.2657","48.062993",125.8],["18.266048","48.061722",126.8],["18.26636","48.060324",126.2],["18.266323","48.058966",124],["18.26619","48.057949",124.6],["18.266067","48.057016",123.4],["18.265583","48.054547",123.6],["18.264949","48.051968",123],["18.264709","48.051003",123.8],["18.264117","48.048699",123.4]]}},{"type":"Feature","properties":{"type":99,"segment":"14641","segmentName":"BESENOVO---DVORY NAD ZITAVOU","segmentDistance":"D\u013a\u017eka: 6.38 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: 0 %<\/b>","segmentNameHref":"besenovo-dvory-nad-zitavou"},"geometry":{"type":"LineString","coordinates":[["18.263501","48.046193",121.8],["18.263501","48.046193",121.8],["18.262277","48.045541",122],["18.261758","48.04509",122.2],["18.261567","48.044693",122],["18.261678","48.044201",122],["18.263362","48.042443",122.4],["18.264976","48.04116",124.2],["18.265453","48.040468",123.6],["18.267115","48.038089",128.8],["18.268479","48.036136",131.8],["18.269207","48.035007",131.2],["18.270163","48.033532",130.6],["18.271171","48.031983",132.2],["18.271926","48.030326",135],["18.273232","48.027317",134.4],["18.27341","48.026645",133.6],["18.271462","48.023857",128],["18.269802","48.021557",124.4],["18.269047","48.020245",123.6],["18.267881","48.017615",121.6],["18.267226","48.016133",121.6],["18.266237","48.014266",121.4],["18.266067","48.013276",123.2],["18.266081","48.011803",123.6],["18.266663","48.009042",126.2],["18.266793","48.007304",127.2],["18.266935","48.005818",129],["18.266875","48.004358",126.4],["18.266521","48.003141",126.8],["18.266318","48.002039",126.2],["18.266281","48.000908",125.4],["18.266792","47.999463",125.4],["18.267698","47.997931",124.8],["18.267746","47.997537",123],["18.267394","47.997264",122.8],["18.265908","47.996543",124],["18.265333","47.995693",123.2]]}},{"type":"Feature","properties":{"type":99,"segment":"89323","segmentName":"Be\u0161e\u0148ov-Dvory n. \u017ditavou","segmentDistance":"D\u013a\u017eka: 3.21 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"besenov-dvory-n-zitavou"},"geometry":{"type":"LineString","coordinates":[["18.269207","48.035007",131.2],["18.269207","48.035007",131.2],["18.270163","48.033532",130.6],["18.271171","48.031983",132.2],["18.271926","48.030326",135],["18.273232","48.027317",134.4],["18.27341","48.026645",133.6],["18.271462","48.023857",128],["18.269802","48.021557",124.4],["18.269047","48.020245",123.6],["18.267881","48.017615",121.6],["18.267226","48.016133",121.6],["18.266237","48.014266",121.4],["18.266067","48.013276",123.2],["18.266081","48.011803",123.6],["18.266663","48.009042",126.2],["18.266793","48.007304",127.2]]}},{"type":"Feature","properties":{"type":99,"segment":"14642","segmentName":"Dvory \u0161print","segmentDistance":"D\u013a\u017eka: 2.92 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.3 %<\/b>","segmentNameHref":"dvory-sprint"},"geometry":{"type":"LineString","coordinates":[["18.271926","48.030326",135],["18.271926","48.030326",135],["18.273232","48.027317",134.4],["18.27341","48.026645",133.6],["18.271462","48.023857",128],["18.269802","48.021557",124.4],["18.269047","48.020245",123.6],["18.267881","48.017615",121.6],["18.267226","48.016133",121.6],["18.266237","48.014266",121.4],["18.266067","48.013276",123.2],["18.266081","48.011803",123.6],["18.266663","48.009042",126.2],["18.266793","48.007304",127.2],["18.266935","48.005818",129],["18.266875","48.004358",126.4]]}},{"type":"Feature","properties":{"type":99,"segment":"133314","segmentName":"Dvory n\/\u017eit. tabu\u013ea \u0161print ...","segmentDistance":"D\u013a\u017eka: 304.00 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.8 %<\/b>","segmentNameHref":"dvory-n-zit-tabula-sprint"},"geometry":{"type":"LineString","coordinates":[["18.266081","48.011803",123.6],["18.266081","48.011803",123.6]]}},{"type":"Feature","properties":{"type":99,"segment":"470","segmentName":"between roundabouts(dvory-NZ)","segmentDistance":"D\u013a\u017eka: 7.01 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"between-roundaboutsdvory-nz"},"geometry":{"type":"LineString","coordinates":[["18.263851","47.993571",124.2],["18.263851","47.993571",124.2],["18.263331","47.993589",124.4],["18.26041","47.994562",127],["18.259261","47.994953",125.2],["18.256473","47.996573",120.2],["18.254221","47.997904",119.8],["18.25347","47.998147",119.8],["18.252352","47.998104",120],["18.248836","47.997737",119.2],["18.243587","47.996805",121.4],["18.242376","47.996436",120.8],["18.241237","47.995755",119.2],["18.23983","47.994766",118.8],["18.237927","47.994023",119],["18.237154","47.993586",119],["18.236005","47.992768",118.8],["18.234105","47.991983",118.8],["18.231989","47.991521",118.8],["18.228605","47.991455",118.8],["18.226128","47.991545",118.6],["18.223869","47.991794",118.8],["18.221996","47.991264",119],["18.217632","47.989982",119.8],["18.216053","47.989742",118.4],["18.211792","47.989852",118],["18.20502","47.990097",117.6],["18.201853","47.990616",117.6],["18.196451","47.992431",118],["18.18883","47.995079",117.4],["18.183228","47.997023",119],["18.180184","47.998074",118.2]]}},{"type":"Feature","properties":{"type":99,"segment":"133315","segmentName":"Dvory n\/\u017eit. tabu\u013ea \u0161print ...","segmentDistance":"D\u013a\u017eka: 505.80 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -1 %<\/b>","segmentNameHref":"dvory-n-zit-tabula-sprint"},"geometry":{"type":"LineString","coordinates":[["18.263851","47.993571",124.2],["18.263851","47.993571",124.2],["18.263331","47.993589",124.4],["18.263331","47.993589",124.4],["18.26041","47.994562",127],["18.259261","47.994953",125.2]]}},{"type":"Feature","properties":{"type":99,"segment":"471","segmentName":"Dvory n. \u017d. - Y kri\u017eovatka pred NZ","segmentDistance":"D\u013a\u017eka: 4.10 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: 0 %<\/b>","segmentNameHref":"dvory-n-z-y-krizovatka-pred-nz"},"geometry":{"type":"LineString","coordinates":[["18.259261","47.994953",125.2],["18.259261","47.994953",125.2],["18.256473","47.996573",120.2],["18.254221","47.997904",119.8],["18.25347","47.998147",119.8],["18.252352","47.998104",120],["18.248836","47.997737",119.2],["18.243587","47.996805",121.4],["18.242376","47.996436",120.8],["18.241237","47.995755",119.2],["18.23983","47.994766",118.8],["18.237927","47.994023",119],["18.237154","47.993586",119],["18.236005","47.992768",118.8],["18.234105","47.991983",118.8],["18.231989","47.991521",118.8],["18.228605","47.991455",118.8],["18.226128","47.991545",118.6],["18.223869","47.991794",118.8],["18.221996","47.991264",119],["18.217632","47.989982",119.8],["18.216053","47.989742",118.4],["18.211792","47.989852",118],["18.20502","47.990097",117.6]]}},{"type":"Feature","properties":{"type":99,"segment":"268091","segmentName":"Besenov - DnZ mini climb sprint","segmentDistance":"D\u013a\u017eka: 839.30 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.2 %<\/b>","segmentNameHref":"besenov-dnz-mini-climb-sprint"},"geometry":{"type":"LineString","coordinates":[["18.201853","47.990616",117.6],["18.201853","47.990616",117.6],["18.196451","47.992431",118]]}},{"type":"Feature","properties":{"type":99,"segment":"157839","segmentName":"NZ tabu\u013ea \u0161print . ? . ? .","segmentDistance":"D\u013a\u017eka: 313.90 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.7 %<\/b>","segmentNameHref":"nz-tabula-sprint"},"geometry":{"type":"LineString","coordinates":[["18.201853","47.990616",117.6],["18.201853","47.990616",117.6]]}}] var layerGroup = L.layerGroup().addTo(map_leaflet); var layerGroupAllSegments = L.layerGroup(); if (gpx_segments != undefined) { gpx_segments_layer = L.geoJson(gpx_segments, { style: function(feature, layer) { return { 'weight': 10, 'color': '#bb6300', 'opacity': 1, }; }, onEachFeature:onEachFeature, }); function onEachFeature(feature, layer) { sn++; var prop = layer.feature.properties; var desc = getDescription(prop.type, prop.trailName, prop.trailId, prop.trailStatus, prop.segmentName, prop.segment, prop.segmentDistance, prop.segmentGrade, prop.segmentNameHref); var sl = feature.geometry.coordinates[0][1]; var sr = feature.geometry.coordinates[0][0]; var el = feature.geometry.coordinates[feature.geometry.coordinates.length - 1][1]; var er = feature.geometry.coordinates[feature.geometry.coordinates.length - 1][0]; if (sl != '' && sr != '' && el != '' && er != '') { var sm = new L.marker(L.latLng(sl, sr), {icon: startIcon}); var em = new L.marker(L.latLng(el, er), {icon: endIcon}); } var layerGroup = L.featureGroup(); layerGroup.addLayer(sm); layerGroup.addLayer(em); sm.bindPopup(desc); em.bindPopup(desc); var popupLayer = L.popup().setLatLng(L.latLng(sl, sr)).setContent(desc); layerGroup.bindPopup(popupLayer).openPopup(); layerGroup.addLayer(layer); segments.push(layerGroup); layer.on("click", function(e) { var desc = getDescription(prop.type, prop.trailName, prop.trailId, prop.trailStatus, prop.segmentName, prop.segment, prop.segmentDistance, prop.segmentGrade, prop.segmentNameHref); if (desc) { var popup = L.popup() .setLatLng(e.latlng) .setContent(desc) .openOn(map_leaflet); } }); //controlLayers.addOverlay(layerGroup, 'Segmenty na trase - ' + feature.properties.segmentName); } var displaySeg = 0; function showSegment(seg) { segments[displaySeg].remove(map_leaflet); segments[displaySeg]._popup.remove(map_leaflet); segments[seg].addTo(map_leaflet); segments[seg]._popup.addTo(map_leaflet); displaySeg = seg; var bounds = segments[seg].getBounds(); map_leaflet.fitBounds(bounds, {padding: [30, 30]}); $.scrollTo( '#map_leaflet', 800, {offset: -120} ); } } // geo location through leaflet plugin var lc = L.control.locate({ drawCircle: false, follow: true, markerStyle: {color: '#000000',fillColor: '#ee7711',fillOpacity: 0.7,weight: 4,opacity: 0.7,radius: 7}, strings: { title: "Ukáž mi, kde sa nachádzam", // title of the locate control popup: "Si v okolí {distance} {unit} od tohto bodu", // text to appear if user clicks on circle outsideMapBoundsMsg: "Nachádzaš sa mimo oblasti tejto mapy" // default message for onLocationOutsideMapBounds } }).addTo(map_leaflet); map_leaflet.on('startfollowing', function() { map_leaflet.on('dragstart', lc.stopFollowing); }).on('stopfollowing', function() { map_leaflet.off('dragstart', lc.stopFollowing); }); $(document).ready(function() { map_leaflet.on('baselayerchange', function(){ var id = event.currentTarget.layerId; var layer = this._layers[id]; $.ajax({ type: "POST", url: "/ajax.php?u=Cyklotrasy&f=saveDefaultMap&a=" + layer.options.name, }); }) }); $('#elevationDiv').html(''); $('.elevation').appendTo('#elevationDiv'); //gallery carousel multiple items - hack $(function(){ // init arrows $('.gallery-carousel').each(function(){ var itemsPerSlide = 3; if ($(this).data('items-per-slide')) itemsPerSlide = $(this).data('items-per-slide'); if ($('.carousel-item', this).length <= itemsPerSlide){ $('.carousel-control-next', this).addClass('disabled'); } }); $('.gallery-carousel').on('slide.bs.carousel', function (e) { if (!window.matchMedia("(min-width: 768px)").matches) return; // default behaviour on mobile /* CC 2.0 License Iatek LLC 2018 - Attribution required */ var $e = $(e.relatedTarget); var idx = $e.index(); var itemsPerSlide = 3; if ($(this).data('items-per-slide')) itemsPerSlide = $(this).data('items-per-slide'); var totalItems = $('.carousel-item', this).length; if ($(this).data('ended')==true && e.direction=='left'){ return false; } if (e.to===0){ $('.carousel-control-prev', this).addClass('disabled'); }else{ $('.carousel-control-prev', this).removeClass('disabled'); } if (e.to>=totalItems - itemsPerSlide){ $('.carousel-control-next', this).addClass('disabled'); $(this).data('ended', true); }else{ $('.carousel-control-next', this).removeClass('disabled'); $(this).data('ended', false); } }); }); function initEkkoLightbox(){ $('[data-toggle="lightbox"]:not(.lightbox-ready)').on('click', function(event) { event.preventDefault(); event.stopImmediatePropagation(); //$(this).removeAttr('href').attr('role', 'button'); var $this = $(this); $this.ekkoLightbox({ alwaysShowClose: true, wrapping: false, //Whether the gallery should loop or not leftArrow: '', rightArrow: '', onNavigate: function(){ $('.ekko-lightbox').removeClass('zoomed'); }, onShow: function(){ if (!$this.hasClass('no-zoom')) { $('.ekko-lightbox .modal-header').prepend('zoom_inzoom_out'); } $('.ekko-lightbox .ekko-lightbox-item').bind('touchstart touchend touchup swipeLeft swipeRight', function(event) { if ($('.ekko-lightbox').hasClass('zoomed') || (window.visualViewport && window.visualViewport.scale > 1.02)){ event.stopPropagation(); } }); $('.ekko-lightbox .ekko-lightbox-nav-overlay').bind('touchstart touchend touchup swipeLeft swipeRight', function(event) { if ($('.ekko-lightbox').hasClass('pinch-zoomed') || (window.visualViewport && window.visualViewport.scale > 1.02)){ $('.ekko-lightbox').addClass('pinch-zoomed'); event.stopPropagation(); } if (window.visualViewport && window.visualViewport.scale <= 1.02){ setTimeout(function(){ if (window.visualViewport && window.visualViewport.scale <= 1.02){ //check again after timeout $('.ekko-lightbox').removeClass('pinch-zoomed'); } },100); } }); if (window.matchMedia("(min-width: 768px)").matches) { $('body').addClass('ekko-modal-open'); } onPopupOpened('ekko-lightbox'); }, onShown: function(){ }, onHidden: function(){ $('body').removeClass('ekko-modal-open'); onPopupClosed(); } }); return false; }); $('[data-toggle="lightbox"]').addClass('lightbox-ready'); } $(function(){ $('.show-alt-in-lightbox[data-toggle="lightbox"]').each(function(){ $(this).data('footer', $(this).find('img').attr('title')); }); $('body').on('click', '.ekko-lightbox-zoom', function(){ $('.ekko-lightbox').toggleClass('zoomed'); }); $('body').on('click', '.ekko-lightbox.zoomed .ekko-lightbox-item.show ', function(){ $('.ekko-lightbox').removeClass('zoomed'); }) initEkkoLightbox(); $(document).ajaxComplete(function(event, xhr, settings) { //if (xhr.responseText.indexOf('lightbox') >= 0){ initEkkoLightbox(); //} }); }); function favoriteRide(ride) { $.ajax({ type: "POST", data: {id : ride, ride : 1}, dataType: "json", url: "/ajax.php?u=cyklotrasy&f=toggleFavourite", success: function(data) { if (data.added === 1) { $('.btn-wishlist.show-add-to-wishlist').hide(); $('.btn-wishlist.show-remove-from-wishlist').show(); //potrebuje dllllho zobrazit showMessageBar('#favoriteSuccess', 60*1000); } else { $('.btn-wishlist.show-remove-from-wishlist').hide(); $('.btn-wishlist.show-add-to-wishlist').show(); showMessageBar('#favoriteSuccessRemove'); } } }); } $(document).ready(function(){ //mobile map popup $('.close-map-widget').click(function(){ $('#map-widget').removeClass('show'); return false; }); $('.show-map-widget').click(function(){ $('#map-widget').addClass('show'); return false; }); $('a[href="#comments"]').on('click', function(e){ e.preventDefault(); commentsScroll('#comments'); return false; }); if ($('#segmenty').length){ if (location.hash.indexOf('#segmenty')>=0){ if (window.innerWidth>=768){ $.scrollTo( '#segmenty', 800, {offset: -100} ); } $('#segmenty-expander').prop('checked', true); } var $pagination = $('#segmentyList table .pagination-wrap'); $pagination.appendTo('#segmentyList'); $('#segmentyList .row-pagination').remove(); } }); var loadedComments_comments = false; function loadComments_comments(){ } // Comments $(function(){ $('.comment-form, .review-form', '#comments').on('submit', function(){ $(this).attr('autocomplete',"off"); // prevent prepopulating fields on backbtn click if (history.state && history.state.popupOpened === 'mobile-expander'){ $('.mobile-expander-content', '#comments').addClass('opened'); history.back(); } }); $('select[name=sort], select[name=filter]', '#comments').on('change', function() { let inputName = $(this).attr('name'); let sort = $('select[name=sort]', '#comments').val(); let filter = $('select[name=filter]', '#comments').length ? $('select[name=filter]', '#comments ').val() : ''; var url = "/ajax.php?m=komentare&f=loadCommentsWidget&a=bW9kdWw9dnlqYXpkeSZleHRlcm5hbElkPTE5ODM0MTcmaXRlbU5hbWU9ViVDMyVCRGphemQrJUM0JThELisxOTgzNDE3JmNvbW1lbnRUeXBlPWNvbW1lbnQmYXV0aG9yVXNlcklkPTc4MjE0MCZ3aWRnZXRJZD1jb21tZW50cyZhbGxvd0luc2VydD0xJmFsbG93UmVwbHk9MSZyZXR1cm5Vcmw9aHR0cHMlM0ElMkYlMkZ3d3cubXRoaWtlci5zayUyRmFrdGl2aXR5JTJGMTk4MzQxNyUyRmJpY3lrZWwtcG9tYWx5LWRhbGVqLXphamRlcy5odG1sJTNGb2QlM0QxJTI2cmlkZV9pZCUzRDE5ODM0MTcmcGFyc2VkVXJsJTVCc2NoZW1lJTVEPWh0dHBzJnBhcnNlZFVybCU1Qmhvc3QlNUQ9d3d3Lm10aGlrZXIuc2smcGFyc2VkVXJsJTVCcGF0aCU1RD0lMkZha3Rpdml0eSUyRjE5ODM0MTclMkZiaWN5a2VsLXBvbWFseS1kYWxlai16YWpkZXMuaHRtbCZwYXJzZWRVcmwlNUJxdWVyeSU1RD1vZCUzRDElMjZyaWRlX2lkJTNEMTk4MzQxNyZpbmNsdWRlQ29tbWVudElkPTA|" + 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"; }); }); }); -->