favorite comment 0
thumb_up0thumb_down

directions_bikeNitra - Hobbiton - Horna Dolna/socha tam uz nie je :(

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ť
124 km
schedule Čas
04:45:40
landscape Nastúpané
1 175 m

bar_chartŠtatistiky

Priemer Max
Rýchlosť 26,0 km/h 60,8 km/h
Výkon 138 W -
Kadencia 78 rpm -
Energetický výdaj 2 632 kcal

directions_bike Posledné aktivity bikera

thumb_up0thumb_down

directions_bike Z Nitry do Čakajoviec skratkou cez Skýcov

trending_up 95,7 km
schedule 03:19:46
landscape 780 m
thumb_up0thumb_down

pedal_bike Zwift - London 8 in London

trending_up 20,6 km
schedule 00:43:07
landscape 258 m
thumb_up0thumb_down

pedal_bike Zwift - Glyph Heights in Watopia

trending_up 33,3 km
schedule 01:16:06
landscape 619 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 Nove Sady","segmentDistance":"D\u013a\u017eka: 9.67 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.2 %<\/b>","segmentNameHref":"velke-ripnany-%3E-nove-sady"},"geometry":{"type":"LineString","coordinates":[["17.983427","48.500057",167.7],["17.983427","48.500057",167.7],["17.983254","48.501707",168],["17.983763","48.503463",169],["17.984028","48.503817",169.2],["17.984882","48.504234",170.9],["17.98563","48.504844",174.2],["17.985979","48.505404",176],["17.986008","48.506118",176.9],["17.98578","48.506865",176.4],["17.984767","48.508946",174.2],["17.982804","48.513076",175.7],["17.981621","48.515329",172.2],["17.98063","48.51622",171],["17.979218","48.51692",170.3],["17.977751","48.517265",169.8],["17.976386","48.517328",170.5],["17.97452","48.517541",171.5],["17.973243","48.517975",173.5],["17.971802","48.518913",174.4],["17.971291","48.519417",174.4],["17.971074","48.520032",173.9],["17.970394","48.521031",173.9],["17.9685","48.522711",175.2],["17.967349","48.52364",176.7],["17.966013","48.524338",179],["17.964667","48.525862",178.9],["17.964113","48.526729",178.3],["17.963552","48.527247",178.5],["17.961925","48.528157",178.7],["17.961138","48.52889",180.1],["17.960537","48.530209",182.2],["17.960176","48.531908",181.6],["17.959841","48.532599",181.2],["17.959233","48.533334",181.1],["17.958161","48.5341",181.2],["17.950277","48.537806",185.1],["17.947012","48.539249",187.6],["17.945433","48.539806",189.5],["17.944697","48.540491",190.4],["17.942102","48.542584",190.6],["17.939757","48.544371",193.3],["17.938799","48.545349",195.1],["17.93775","48.546884",197.3],["17.937475","48.546954",198.4],["17.936617","48.546914",204],["17.935366","48.547321",212.5],["17.933887","48.548022",218.3],["17.932063","48.548569",218.2],["17.929878","48.549385",221.2],["17.926914","48.550862",231.3],["17.924951","48.55147",226.9],["17.92222","48.55209",220.1],["17.920696","48.552835",219.5],["17.916902","48.555564",223],["17.91575","48.556562",224.7],["17.914983","48.557714",226.6],["17.914329","48.559442",229.4],["17.913659","48.560436",230.9],["17.912683","48.561277",233.8],["17.911259","48.562007",238.9],["17.909616","48.56248",244.7],["17.908294","48.562909",250.1],["17.907493","48.563383",254.1],["17.906583","48.563834",259],["17.905418","48.563971",263.8],["17.90472","48.564214",267.5],["17.90424","48.564506",270.8],["17.903677","48.564838",274.7],["17.902663","48.564983",279.6],["17.901769","48.564739",284.1],["17.900935","48.564513",288.4],["17.900207","48.564598",292.1],["17.898896","48.565209",300.4],["17.898207","48.565314",303.7],["17.897791","48.565107",305.1],["17.897776","48.564621",308.5],["17.897849","48.564232",310.8],["17.897885","48.563776",313],["17.897629","48.563344",314.4],["17.89696","48.563106",316.3],["17.895993","48.563201",318.8],["17.894938","48.563471",321.4]]}},{"type":"Feature","properties":{"type":99,"segment":"143295","segmentName":"VR-Kapince","segmentDistance":"D\u013a\u017eka: 6.56 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"vr-kapince"},"geometry":{"type":"LineString","coordinates":[["17.986008","48.506118",176.9],["17.986008","48.506118",176.9],["17.98578","48.506865",176.4],["17.984767","48.508946",174.2],["17.982804","48.513076",175.7],["17.981621","48.515329",172.2],["17.98063","48.51622",171],["17.979218","48.51692",170.3],["17.977751","48.517265",169.8],["17.976386","48.517328",170.5],["17.97452","48.517541",171.5],["17.973243","48.517975",173.5],["17.971802","48.518913",174.4],["17.971291","48.519417",174.4],["17.971074","48.520032",173.9],["17.970394","48.521031",173.9],["17.9685","48.522711",175.2],["17.967349","48.52364",176.7],["17.966013","48.524338",179],["17.964667","48.525862",178.9],["17.964113","48.526729",178.3],["17.963552","48.527247",178.5],["17.961925","48.528157",178.7],["17.961138","48.52889",180.1],["17.960537","48.530209",182.2],["17.960176","48.531908",181.6],["17.959841","48.532599",181.2],["17.959233","48.533334",181.1],["17.958161","48.5341",181.2],["17.950277","48.537806",185.1],["17.947012","48.539249",187.6],["17.945433","48.539806",189.5],["17.944697","48.540491",190.4],["17.942102","48.542584",190.6],["17.939757","48.544371",193.3],["17.938799","48.545349",195.1],["17.93775","48.546884",197.3],["17.937475","48.546954",198.4],["17.936617","48.546914",204],["17.935366","48.547321",212.5],["17.933887","48.548022",218.3],["17.932063","48.548569",218.2],["17.929878","48.549385",221.2]]}},{"type":"Feature","properties":{"type":99,"segment":"3250","segmentName":"Havran","segmentDistance":"D\u013a\u017eka: 3.67 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 4.2 %<\/b>","segmentNameHref":"havran"},"geometry":{"type":"LineString","coordinates":[["17.914983","48.557714",226.6],["17.914983","48.557714",226.6],["17.914329","48.559442",229.4],["17.913659","48.560436",230.9],["17.912683","48.561277",233.8],["17.911259","48.562007",238.9],["17.909616","48.56248",244.7],["17.908294","48.562909",250.1],["17.907493","48.563383",254.1],["17.906583","48.563834",259],["17.905418","48.563971",263.8],["17.90472","48.564214",267.5],["17.90424","48.564506",270.8],["17.903677","48.564838",274.7],["17.902663","48.564983",279.6],["17.901769","48.564739",284.1],["17.900935","48.564513",288.4],["17.900207","48.564598",292.1],["17.898896","48.565209",300.4],["17.898207","48.565314",303.7],["17.897791","48.565107",305.1],["17.897776","48.564621",308.5],["17.897849","48.564232",310.8],["17.897885","48.563776",313],["17.897629","48.563344",314.4],["17.89696","48.563106",316.3],["17.895993","48.563201",318.8],["17.894938","48.563471",321.4],["17.893185","48.563839",326.1],["17.891901","48.56369",328.5],["17.88968","48.563362",332.7],["17.887212","48.563497",337],["17.884321","48.563923",345.3],["17.883379","48.564604",351.1],["17.882004","48.566194",362.7],["17.881202","48.566599",367.6],["17.880431","48.566583",371.1],["17.879685","48.566173",375.2],["17.878897","48.565475",380.9],["17.878205","48.565257",384.3]]}},{"type":"Feature","properties":{"type":99,"segment":"3252","segmentName":"Downhill Havran > Rado\u0161ina","segmentDistance":"D\u013a\u017eka: 5.28 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -3.2 %<\/b>","segmentNameHref":"downhill-havran-%3E-radosina"},"geometry":{"type":"LineString","coordinates":[["17.878205","48.565257",384.3],["17.878205","48.565257",384.3],["17.877224","48.565369",387.5],["17.877224","48.565369",387.5],["17.877047","48.565474",389],["17.87667","48.565796",387.6],["17.875825","48.565961",384],["17.873849","48.565826",374.6],["17.873205","48.565184",369.6],["17.872782","48.564441",364.7],["17.87206","48.564073",361.1],["17.871231","48.564292",357.3],["17.870497","48.565145",350.9],["17.869944","48.565938",345.7],["17.869161","48.566238",342.4],["17.867883","48.566224",337.3],["17.866937","48.565863",332.8],["17.866355","48.565394",329.5],["17.865831","48.564715",325.9],["17.865299","48.564921",321.9],["17.864946","48.566577",310.5],["17.865013","48.566969",306.6],["17.864385","48.566906",302.8],["17.863727","48.566785",299.4],["17.862739","48.56706",294.1],["17.861942","48.567325",289.8],["17.86089","48.56732",285.2],["17.8603","48.567079",282.5],["17.859863","48.56672",280.4],["17.859184","48.566741",277],["17.858484","48.567092",272.2],["17.857437","48.568114",263],["17.855514","48.569714",248.9],["17.854576","48.570341",243.2],["17.853734","48.570605",239.3],["17.852681","48.571179",234.2],["17.851771","48.571193",232.5],["17.851556","48.571879",226.5],["17.851508","48.572366",223.1],["17.851522","48.573487",214.9],["17.851338","48.574936",205.5],["17.8515","48.576592",195.7],["17.852087","48.578036",186.8],["17.852579","48.579107",182.1],["17.853096","48.579907",179.3],["17.852364","48.581111",177],["17.852012","48.581364",176.9],["17.85053","48.581811",176.4],["17.85002","48.58228",176.9],["17.849143","48.583429",171.1],["17.84814","48.584186",163.9],["17.848297","48.584399",163.1],["17.850721","48.584967",163.3],["17.852005","48.585265",163],["17.854903","48.586777",161.1],["17.856115","48.587855",160.6],["17.856497","48.588357",160.5],["17.856513","48.589065",160.3],["17.855775","48.590078",160.4],["17.85516","48.591056",160.9],["17.855399","48.591358",161],["17.857104","48.592608",161.4],["17.861625","48.595897",163.3],["17.862199","48.596565",163.8],["17.862571","48.598246",164.5],["17.862473","48.598653",164.6],["17.861787","48.599472",164.6],["17.861272","48.600205",164.9],["17.86129","48.600828",164.8],["17.86192","48.60186",166.9],["17.862059","48.602483",169.9],["17.86199","48.603376",170.7],["17.862221","48.603907",168.8],["17.863091","48.604787",165.2],["17.864493","48.605512",163],["17.865326","48.605973",162.6],["17.86583","48.606564",162.6],["17.866004","48.606992",162.5],["17.865913","48.607561",162.5],["17.865099","48.608629",162.2],["17.864822","48.6091",162.3],["17.864706","48.609758",162.3],["17.86494","48.610775",162.6]]}},{"type":"Feature","properties":{"type":99,"segment":"3251","segmentName":"downhill havran-\u010dertova pec","segmentDistance":"D\u013a\u017eka: 3.68 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -4.3 %<\/b>","segmentNameHref":"downhill-havran-certova-pec"},"geometry":{"type":"LineString","coordinates":[["17.877224","48.565369",387.5],["17.877224","48.565369",387.5],["17.877047","48.565474",389],["17.87667","48.565796",387.6],["17.875825","48.565961",384],["17.873849","48.565826",374.6],["17.873205","48.565184",369.6],["17.872782","48.564441",364.7],["17.87206","48.564073",361.1],["17.871231","48.564292",357.3],["17.870497","48.565145",350.9],["17.869944","48.565938",345.7],["17.869161","48.566238",342.4],["17.867883","48.566224",337.3],["17.866937","48.565863",332.8],["17.866355","48.565394",329.5],["17.865831","48.564715",325.9],["17.865299","48.564921",321.9],["17.864946","48.566577",310.5],["17.865013","48.566969",306.6],["17.864385","48.566906",302.8],["17.863727","48.566785",299.4],["17.862739","48.56706",294.1],["17.861942","48.567325",289.8],["17.86089","48.56732",285.2],["17.8603","48.567079",282.5],["17.859863","48.56672",280.4],["17.859184","48.566741",277],["17.858484","48.567092",272.2],["17.857437","48.568114",263],["17.855514","48.569714",248.9],["17.854576","48.570341",243.2],["17.853734","48.570605",239.3],["17.852681","48.571179",234.2],["17.851771","48.571193",232.5],["17.851556","48.571879",226.5],["17.851508","48.572366",223.1],["17.851522","48.573487",214.9],["17.851338","48.574936",205.5],["17.8515","48.576592",195.7],["17.852087","48.578036",186.8],["17.852579","48.579107",182.1],["17.853096","48.579907",179.3],["17.852364","48.581111",177],["17.852012","48.581364",176.9],["17.85053","48.581811",176.4],["17.85002","48.58228",176.9],["17.849143","48.583429",171.1],["17.84814","48.584186",163.9],["17.848297","48.584399",163.1],["17.850721","48.584967",163.3],["17.852005","48.585265",163],["17.854903","48.586777",161.1],["17.856115","48.587855",160.6],["17.856497","48.588357",160.5],["17.856513","48.589065",160.3],["17.855775","48.590078",160.4],["17.85516","48.591056",160.9],["17.855399","48.591358",161],["17.857104","48.592608",161.4],["17.861625","48.595897",163.3],["17.862199","48.596565",163.8]]}},{"type":"Feature","properties":{"type":99,"segment":"20782","segmentName":"Banka - Havran new","segmentDistance":"D\u013a\u017eka: 4.29 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 5.2 %<\/b>","segmentNameHref":"banka-havran-new"},"geometry":{"type":"LineString","coordinates":[["17.84814","48.584186",163.9],["17.84814","48.584186",163.9],["17.848297","48.584399",163.1],["17.850721","48.584967",163.3],["17.852005","48.585265",163],["17.854903","48.586777",161.1],["17.856115","48.587855",160.6],["17.856497","48.588357",160.5],["17.856513","48.589065",160.3],["17.855775","48.590078",160.4],["17.85516","48.591056",160.9],["17.855399","48.591358",161],["17.857104","48.592608",161.4],["17.861625","48.595897",163.3],["17.862199","48.596565",163.8],["17.862571","48.598246",164.5],["17.862473","48.598653",164.6],["17.861787","48.599472",164.6],["17.861272","48.600205",164.9],["17.86129","48.600828",164.8],["17.86192","48.60186",166.9],["17.862059","48.602483",169.9],["17.86199","48.603376",170.7],["17.862221","48.603907",168.8],["17.863091","48.604787",165.2],["17.864493","48.605512",163],["17.865326","48.605973",162.6],["17.86583","48.606564",162.6],["17.866004","48.606992",162.5],["17.865913","48.607561",162.5],["17.865099","48.608629",162.2],["17.864822","48.6091",162.3],["17.864706","48.609758",162.3],["17.86494","48.610775",162.6],["17.86683","48.614062",163.2],["17.869308","48.618078",164.3]]}},{"type":"Feature","properties":{"type":99,"segment":"86485","segmentName":"Moravany rovinka Hubina","segmentDistance":"D\u013a\u017eka: 1.50 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.2 %<\/b>","segmentNameHref":"moravany-rovinka-hubina"},"geometry":{"type":"LineString","coordinates":[["17.865913","48.607561",162.5],["17.865913","48.607561",162.5],["17.865099","48.608629",162.2],["17.864822","48.6091",162.3],["17.864706","48.609758",162.3],["17.86494","48.610775",162.6],["17.86683","48.614062",163.2],["17.869308","48.618078",164.3]]}},{"type":"Feature","properties":{"type":99,"segment":"2","segmentName":"Moravansky sprint","segmentDistance":"D\u013a\u017eka: 649.10 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.2 %<\/b>","segmentNameHref":"moravansky-sprint"},"geometry":{"type":"LineString","coordinates":[["17.865913","48.607561",162.5],["17.865913","48.607561",162.5],["17.865099","48.608629",162.2],["17.864822","48.6091",162.3],["17.864706","48.609758",162.3],["17.86494","48.610775",162.6]]}},{"type":"Feature","properties":{"type":99,"segment":"1","segmentName":"Kriz Hubina - cedula Moravany","segmentDistance":"D\u013a\u017eka: 1.34 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.2 %<\/b>","segmentNameHref":"kriz-hubina-cedula-moravany"},"geometry":{"type":"LineString","coordinates":[["17.870429","48.620376",165.3],["17.870429","48.620376",165.3],["17.870669","48.621175",165.3],["17.870279","48.624572",164.7],["17.870064","48.62535",164.7],["17.868837","48.626962",164.7],["17.867801","48.628757",165],["17.8673","48.630189",165.2],["17.867008","48.63206",170.1]]}},{"type":"Feature","properties":{"type":99,"segment":"7855","segmentName":"Modrova - Banka","segmentDistance":"D\u013a\u017eka: 8.46 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"modrova-banka"},"geometry":{"type":"LineString","coordinates":[["17.877039","48.647669",171.6],["17.877039","48.647669",171.6],["17.877736","48.647887",171.5],["17.880855","48.648263",173.3],["17.881959","48.648755",175.9],["17.883305","48.649164",181.4],["17.884552","48.649084",182.7],["17.885629","48.648659",182.5],["17.886583","48.648397",183.6],["17.887468","48.648046",185.3],["17.88847","48.647829",186.8],["17.891281","48.646721",190.9],["17.892962","48.645941",193.4],["17.894536","48.644745",195.6],["17.895715","48.643663",198.6],["17.896756","48.64256",200.9],["17.898281","48.641412",201.3],["17.899533","48.640282",202.5],["17.900303","48.639972",203.5],["17.901126","48.63961",205],["17.901448","48.638775",207],["17.901777","48.638362",207.9],["17.902683","48.637767",212.9],["17.903209","48.637355",216.6],["17.90398","48.636959",220.6],["17.905193","48.636636",224.7],["17.906986","48.636514",221.9],["17.908772","48.636665",220.3],["17.910248","48.636613",220],["17.911651","48.636314",220],["17.913484","48.635694",221.3],["17.914768","48.635748",223.8],["17.916383","48.636416",226.1],["17.917173","48.636582",228.7],["17.918426","48.636654",232.4],["17.919929","48.63633",234.1],["17.921697","48.636144",234.2],["17.923285","48.636134",233.8],["17.925436","48.636095",237.3],["17.926365","48.636358",241.2],["17.926703","48.636695",242.7],["17.927359","48.637307",242.7],["17.928474","48.637637",245.2],["17.929162","48.637945",246.6],["17.929793","48.638576",249.3],["17.930446","48.638967",251.9],["17.931035","48.639185",254],["17.932254","48.639518",258.4],["17.933408","48.639751",263.4],["17.934063","48.640136",267.2],["17.934672","48.640411",269.6],["17.935175","48.640659",271.9],["17.935622","48.641162",274.7],["17.935899","48.641817",276.8],["17.936185","48.642504",279.9],["17.936574","48.643151",283.3],["17.936777","48.643384",284.9],["17.937861","48.644269",291.4],["17.938029","48.644694",292.9],["17.93834","48.64553",296],["17.938732","48.646201",299.5],["17.939527","48.647145",304.8],["17.940035","48.647872",306.4],["17.940545","48.648531",309.9],["17.941245","48.649421",312.4],["17.94122","48.650018",314.9],["17.940954","48.651256",320.7],["17.940736","48.652078",323.6],["17.940569","48.652875",327.3],["17.940921","48.653697",331],["17.941568","48.654781",335.1],["17.941905","48.65494",335.4],["17.942643","48.654935",335.5],["17.942957","48.654693",335.2],["17.942972","48.654192",335.5],["17.94265","48.653409",338.3],["17.942754","48.652822",341.5],["17.943085","48.652536",343.5],["17.943779","48.652531",346.4],["17.945411","48.652941",354.3],["17.947415","48.65364",365.7],["17.948542","48.654036",372.6],["17.949856","48.654493",381.8],["17.951114","48.654756",389.8],["17.952254","48.655242",397.7],["17.952968","48.65546",401.9],["17.953459","48.655439",405],["17.953946","48.655395",407.9],["17.954907","48.655511",413.4],["17.95547","48.655882",417.9],["17.955727","48.656151",420.5],["17.956449","48.656735",427.3],["17.956945","48.657063",431.5],["17.957458","48.657674",437.3],["17.957615","48.658357",443],["17.957822","48.659249",450.1],["17.958039","48.659731",454.2],["17.958571","48.660059",458.2],["17.959102","48.660156",460.9],["17.9599","48.660017",464.8],["17.960458","48.659637",468.7],["17.961145","48.659096",474.1],["17.962108","48.658514",481.6],["17.962898","48.658478",485.1],["17.964464","48.658442",493.1],["17.966672","48.657973",503.8],["17.968096","48.657691",511.8],["17.969061","48.657543",514.9],["17.970635","48.657667",508.5],["17.972017","48.657598",500.3],["17.973665","48.657386",490.1],["17.974443","48.657567",485.1],["17.974849","48.657854",481.3],["17.974708","48.658437",475.4],["17.974623","48.658853",471.6],["17.974971","48.659107",467.4],["17.977426","48.659222",449.1],["17.978451","48.658805",438.9],["17.978796","48.658464",435.4],["17.979603","48.658436",431],["17.980559","48.658517",425],["17.982092","48.658193",414.3],["17.982728","48.657891",414.3],["17.982137","48.658188",414.2],["17.981892","48.658296",415.2],["17.981011","48.658434",421.2],["17.980302","48.658541",427.4],["17.979684","48.658452",431],["17.979305","48.658443",432.4],["17.978791","48.658481",435.6],["17.978385","48.658824",439.2],["17.977891","48.659031",443.7],["17.968391","48.657636",513],["17.965874","48.658117",499.9],["17.963794","48.658459",489.7],["17.961939","48.658593",480.6],["17.960816","48.659342",471.4],["17.960037","48.659941",466],["17.959342","48.660171",462.3],["17.958579","48.66009",458.5],["17.958008","48.659747",454.3],["17.957689","48.658829",446.6],["17.957357","48.657578",436.4],["17.956632","48.656838",428.9],["17.955755","48.65616",420.7],["17.955023","48.655566",414.2],["17.95428","48.655401",409.7],["17.952838","48.655457",401.3],["17.951944","48.655089",395.5],["17.951178","48.654815",390.4],["17.948704","48.654138",373.9],["17.944508","48.65275",349.7],["17.943175","48.652525",343.9],["17.942716","48.652879",341],["17.942699","48.653462",338],["17.943021","48.654333",335.3],["17.942832","48.654788",335.3],["17.942389","48.654969",335.6],["17.941717","48.654874",335.3],["17.941347","48.654521",334.4],["17.940781","48.653546",330.3],["17.940538","48.652884",327.3],["17.940667","48.65227",324.4],["17.94114","48.650475",317.6],["17.941229","48.64967",313.3],["17.941096","48.649263",311.8],["17.939971","48.648046",307],["17.93896","48.6472",304.2],["17.938224","48.646286",298.8],["17.937525","48.645241",294],["17.9364","48.643815",286.9],["17.935404","48.641965",276.6],["17.93528","48.641555",275.4],["17.934933","48.640994",272.9],["17.934302","48.64045",269],["17.933478","48.640036",265.3],["17.932659","48.639707",260.4],["17.931329","48.639338",255.4],["17.930116","48.638831",250.8],["17.928977","48.63787",246.3],["17.928201","48.637617",244.6],["17.927519","48.637413",243],["17.927113","48.637126",242.5],["17.926705","48.636639",242.6],["17.925541","48.636112",237.8],["17.923778","48.636033",234.1],["17.922122","48.636167",234],["17.920349","48.636238",234.2],["17.918899","48.63657",233.2],["17.917972","48.636571",231.2],["17.916395","48.636429",226.2],["17.914919","48.635827",224.1],["17.913747","48.635645",221.7],["17.912165","48.636109",220.2],["17.910783","48.636561",220.1],["17.909135","48.636696",220.2],["17.90769","48.636565",221],["17.905762","48.636545",223.6],["17.904041","48.636937",220.9],["17.902961","48.6375",215.2],["17.901667","48.638453",207.8],["17.901223","48.639397",205.6],["17.900984","48.63971",204.6],["17.89998","48.640055",203.3],["17.899462","48.640354",202.3],["17.898306","48.641401",201.3],["17.89678","48.642534",200.9],["17.895723","48.643632",198.7],["17.895585","48.644017",197.5],["17.895895","48.64425",197.4],["17.895581","48.644041",197.5],["17.89528","48.644096",197.3],["17.893951","48.645284",194.4],["17.892585","48.64615",193.1],["17.892363","48.64622",192.6],["17.890446","48.647044",189.3],["17.888123","48.647932",186.2],["17.88712","48.64815",184.6],["17.885685","48.648626",182.5],["17.884963","48.648989",182.5],["17.883506","48.649193",182],["17.882685","48.64898",178.7],["17.881152","48.648416",173.7],["17.880386","48.648221",172.8],["17.877558","48.647886",171.5],["17.877702","48.647849",171.5],["17.877876","48.647788",171.5],["17.877558","48.647839",171.5],["17.877033","48.64772",171.6],["17.877033","48.64772",171.6],["17.875858","48.646861",172.9],["17.874605","48.646212",172.4],["17.872142","48.645157",170.4],["17.869111","48.644412",169.2],["17.865363","48.643554",170.2],["17.863876","48.642612",169.7],["17.863183","48.641737",169.3],["17.862925","48.640918",169.1],["17.862978","48.63966",169.9],["17.863358","48.638324",170.8],["17.864106","48.637227",171.1],["17.866078","48.635076",170.9],["17.866546","48.633475",169.1],["17.867086","48.631701",169.9],["17.867287","48.630155",165.1],["17.867817","48.628666",165],["17.869261","48.62641",164.7],["17.870059","48.625242",164.7],["17.870304","48.623914",164.7],["17.870586","48.62164",165.2],["17.870443","48.62063",165.4],["17.868927","48.617486",164.1],["17.866418","48.61351",163.1],["17.86496","48.610987",162.6],["17.864602","48.609563",162.3],["17.864725","48.609057",162.3],["17.865417","48.608197",162.3],["17.865881","48.607433",162.5],["17.865819","48.606698",162.6],["17.865467","48.606151",162.6],["17.864608","48.605586",162.9],["17.862899","48.604661",165.6],["17.862133","48.603827",169.3],["17.861942","48.603169",171],["17.86201","48.602292",168.9],["17.86171","48.601659",166],["17.861308","48.601052",164.8],["17.861217","48.600235",164.9],["17.861756","48.599417",164.6],["17.862488","48.598322",164.5],["17.862215","48.596817",163.9],["17.861916","48.596226",163.5],["17.859992","48.594787",163],["17.858441","48.593659",162.3],["17.855181","48.591245",161],["17.85507","48.590955",160.9],["17.856139","48.589483",160.3],["17.856465","48.588893",160.5],["17.856406","48.588387",160.5],["17.855889","48.587745",160.6],["17.854068","48.586338",161.5],["17.852016","48.585287",163],["17.85186","48.585221",163.1],["17.849345","48.58462",162.8],["17.848063","48.584315",163.6],["17.848146","48.58404",164.5],["17.848987","48.583491",170.2],["17.849549","48.582981",174.9],["17.850187","48.58201",176.9],["17.851926","48.58135",176.8],["17.852374","48.581042",177],["17.8528","48.580319",178],["17.853085","48.579773",179.7],["17.852572","48.579076",182.2],["17.85201","48.577917",187.4],["17.85152","48.576697",195],["17.851346","48.574905",205.7]]}},{"type":"Feature","properties":{"type":99,"segment":"14538","segmentName":"Bezovec (od Lehoty)","segmentDistance":"D\u013a\u017eka: 9.25 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 3.8 %<\/b>","segmentNameHref":"bezovec-od-lehoty"},"geometry":{"type":"LineString","coordinates":[["17.881959","48.648755",175.9],["17.881959","48.648755",175.9],["17.883305","48.649164",181.4],["17.884552","48.649084",182.7],["17.885629","48.648659",182.5],["17.886583","48.648397",183.6],["17.887468","48.648046",185.3],["17.88847","48.647829",186.8],["17.891281","48.646721",190.9],["17.892962","48.645941",193.4],["17.894536","48.644745",195.6],["17.895715","48.643663",198.6],["17.896756","48.64256",200.9],["17.898281","48.641412",201.3],["17.899533","48.640282",202.5],["17.900303","48.639972",203.5],["17.901126","48.63961",205],["17.901448","48.638775",207],["17.901777","48.638362",207.9],["17.902683","48.637767",212.9],["17.903209","48.637355",216.6],["17.90398","48.636959",220.6],["17.905193","48.636636",224.7],["17.906986","48.636514",221.9],["17.908772","48.636665",220.3],["17.910248","48.636613",220],["17.911651","48.636314",220],["17.913484","48.635694",221.3],["17.914768","48.635748",223.8],["17.916383","48.636416",226.1],["17.917173","48.636582",228.7],["17.918426","48.636654",232.4],["17.919929","48.63633",234.1],["17.921697","48.636144",234.2],["17.923285","48.636134",233.8],["17.925436","48.636095",237.3],["17.926365","48.636358",241.2],["17.926703","48.636695",242.7],["17.927359","48.637307",242.7],["17.928474","48.637637",245.2],["17.929162","48.637945",246.6],["17.929793","48.638576",249.3],["17.930446","48.638967",251.9],["17.931035","48.639185",254],["17.932254","48.639518",258.4],["17.933408","48.639751",263.4],["17.934063","48.640136",267.2],["17.934672","48.640411",269.6],["17.935175","48.640659",271.9],["17.935622","48.641162",274.7],["17.935899","48.641817",276.8],["17.936185","48.642504",279.9],["17.936574","48.643151",283.3],["17.936777","48.643384",284.9],["17.937861","48.644269",291.4],["17.938029","48.644694",292.9],["17.93834","48.64553",296],["17.938732","48.646201",299.5],["17.939527","48.647145",304.8],["17.940035","48.647872",306.4],["17.940545","48.648531",309.9],["17.941245","48.649421",312.4],["17.94122","48.650018",314.9],["17.940954","48.651256",320.7],["17.940736","48.652078",323.6],["17.940569","48.652875",327.3],["17.940921","48.653697",331],["17.941568","48.654781",335.1],["17.941905","48.65494",335.4],["17.942643","48.654935",335.5],["17.942957","48.654693",335.2],["17.942972","48.654192",335.5],["17.94265","48.653409",338.3],["17.942754","48.652822",341.5],["17.943085","48.652536",343.5],["17.943779","48.652531",346.4],["17.945411","48.652941",354.3],["17.947415","48.65364",365.7],["17.948542","48.654036",372.6],["17.949856","48.654493",381.8],["17.951114","48.654756",389.8],["17.952254","48.655242",397.7],["17.952968","48.65546",401.9],["17.953459","48.655439",405],["17.953946","48.655395",407.9],["17.954907","48.655511",413.4],["17.95547","48.655882",417.9],["17.955727","48.656151",420.5],["17.956449","48.656735",427.3],["17.956945","48.657063",431.5],["17.957458","48.657674",437.3],["17.957615","48.658357",443],["17.957822","48.659249",450.1],["17.958039","48.659731",454.2],["17.958571","48.660059",458.2],["17.959102","48.660156",460.9],["17.9599","48.660017",464.8],["17.960458","48.659637",468.7],["17.961145","48.659096",474.1],["17.962108","48.658514",481.6],["17.962898","48.658478",485.1],["17.964464","48.658442",493.1],["17.966672","48.657973",503.8],["17.968096","48.657691",511.8]]}},{"type":"Feature","properties":{"type":99,"segment":"14539","segmentName":"Modrovka - Stara Lehota","segmentDistance":"D\u013a\u017eka: 5.87 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 2.2 %<\/b>","segmentNameHref":"modrovka-stara-lehota"},"geometry":{"type":"LineString","coordinates":[["17.881959","48.648755",175.9],["17.881959","48.648755",175.9],["17.883305","48.649164",181.4],["17.884552","48.649084",182.7],["17.885629","48.648659",182.5],["17.886583","48.648397",183.6],["17.887468","48.648046",185.3],["17.88847","48.647829",186.8],["17.891281","48.646721",190.9],["17.892962","48.645941",193.4],["17.894536","48.644745",195.6],["17.895715","48.643663",198.6],["17.896756","48.64256",200.9],["17.898281","48.641412",201.3],["17.899533","48.640282",202.5],["17.900303","48.639972",203.5],["17.901126","48.63961",205],["17.901448","48.638775",207],["17.901777","48.638362",207.9],["17.902683","48.637767",212.9],["17.903209","48.637355",216.6],["17.90398","48.636959",220.6],["17.905193","48.636636",224.7],["17.906986","48.636514",221.9],["17.908772","48.636665",220.3],["17.910248","48.636613",220],["17.911651","48.636314",220],["17.913484","48.635694",221.3],["17.914768","48.635748",223.8],["17.916383","48.636416",226.1],["17.917173","48.636582",228.7],["17.918426","48.636654",232.4],["17.919929","48.63633",234.1],["17.921697","48.636144",234.2],["17.923285","48.636134",233.8],["17.925436","48.636095",237.3],["17.926365","48.636358",241.2],["17.926703","48.636695",242.7],["17.927359","48.637307",242.7],["17.928474","48.637637",245.2],["17.929162","48.637945",246.6],["17.929793","48.638576",249.3],["17.930446","48.638967",251.9],["17.931035","48.639185",254],["17.932254","48.639518",258.4],["17.933408","48.639751",263.4],["17.934063","48.640136",267.2],["17.934672","48.640411",269.6],["17.935175","48.640659",271.9],["17.935622","48.641162",274.7],["17.935899","48.641817",276.8],["17.936185","48.642504",279.9],["17.936574","48.643151",283.3],["17.936777","48.643384",284.9],["17.937861","48.644269",291.4],["17.938029","48.644694",292.9],["17.93834","48.64553",296],["17.938732","48.646201",299.5],["17.939527","48.647145",304.8],["17.940035","48.647872",306.4],["17.940545","48.648531",309.9]]}},{"type":"Feature","properties":{"type":99,"segment":"14541","segmentName":"Bezovec [Benz. pumpa - Parkovisko]","segmentDistance":"D\u013a\u017eka: 2.63 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 6.8 %<\/b>","segmentNameHref":"bezovec-benz-pumpa-parkovisko"},"geometry":{"type":"LineString","coordinates":[["17.942957","48.654693",335.2],["17.942957","48.654693",335.2],["17.942972","48.654192",335.5],["17.94265","48.653409",338.3],["17.942754","48.652822",341.5],["17.943085","48.652536",343.5],["17.943779","48.652531",346.4],["17.945411","48.652941",354.3],["17.947415","48.65364",365.7],["17.948542","48.654036",372.6],["17.949856","48.654493",381.8],["17.951114","48.654756",389.8],["17.952254","48.655242",397.7],["17.952968","48.65546",401.9],["17.953459","48.655439",405],["17.953946","48.655395",407.9],["17.954907","48.655511",413.4],["17.95547","48.655882",417.9],["17.955727","48.656151",420.5],["17.956449","48.656735",427.3],["17.956945","48.657063",431.5],["17.957458","48.657674",437.3],["17.957615","48.658357",443],["17.957822","48.659249",450.1],["17.958039","48.659731",454.2],["17.958571","48.660059",458.2],["17.959102","48.660156",460.9],["17.9599","48.660017",464.8],["17.960458","48.659637",468.7],["17.961145","48.659096",474.1],["17.962108","48.658514",481.6],["17.962898","48.658478",485.1],["17.964464","48.658442",493.1],["17.966672","48.657973",503.8]]}},{"type":"Feature","properties":{"type":99,"segment":"6725","segmentName":"Bezovec Downhill","segmentDistance":"D\u013a\u017eka: 9.19 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -3.7 %<\/b>","segmentNameHref":"bezovec-downhill"},"geometry":{"type":"LineString","coordinates":[["17.969061","48.657543",514.9],["17.969061","48.657543",514.9],["17.970635","48.657667",508.5],["17.972017","48.657598",500.3],["17.973665","48.657386",490.1],["17.974443","48.657567",485.1],["17.974849","48.657854",481.3],["17.974708","48.658437",475.4],["17.974623","48.658853",471.6],["17.974971","48.659107",467.4],["17.977426","48.659222",449.1],["17.978451","48.658805",438.9],["17.978796","48.658464",435.4],["17.979603","48.658436",431],["17.980559","48.658517",425],["17.982092","48.658193",414.3],["17.982728","48.657891",414.3],["17.982137","48.658188",414.2],["17.981892","48.658296",415.2],["17.981011","48.658434",421.2],["17.980302","48.658541",427.4],["17.979684","48.658452",431],["17.979305","48.658443",432.4],["17.978791","48.658481",435.6],["17.978385","48.658824",439.2],["17.977891","48.659031",443.7],["17.968391","48.657636",513],["17.965874","48.658117",499.9],["17.963794","48.658459",489.7],["17.961939","48.658593",480.6],["17.960816","48.659342",471.4],["17.960037","48.659941",466],["17.959342","48.660171",462.3],["17.958579","48.66009",458.5],["17.958008","48.659747",454.3],["17.957689","48.658829",446.6],["17.957357","48.657578",436.4],["17.956632","48.656838",428.9],["17.955755","48.65616",420.7],["17.955023","48.655566",414.2],["17.95428","48.655401",409.7],["17.952838","48.655457",401.3],["17.951944","48.655089",395.5],["17.951178","48.654815",390.4],["17.948704","48.654138",373.9],["17.944508","48.65275",349.7],["17.943175","48.652525",343.9],["17.942716","48.652879",341],["17.942699","48.653462",338],["17.943021","48.654333",335.3],["17.942832","48.654788",335.3],["17.942389","48.654969",335.6],["17.941717","48.654874",335.3],["17.941347","48.654521",334.4],["17.940781","48.653546",330.3],["17.940538","48.652884",327.3],["17.940667","48.65227",324.4],["17.94114","48.650475",317.6],["17.941229","48.64967",313.3],["17.941096","48.649263",311.8],["17.939971","48.648046",307],["17.93896","48.6472",304.2],["17.938224","48.646286",298.8],["17.937525","48.645241",294],["17.9364","48.643815",286.9],["17.935404","48.641965",276.6],["17.93528","48.641555",275.4],["17.934933","48.640994",272.9],["17.934302","48.64045",269],["17.933478","48.640036",265.3],["17.932659","48.639707",260.4],["17.931329","48.639338",255.4],["17.930116","48.638831",250.8],["17.928977","48.63787",246.3],["17.928201","48.637617",244.6],["17.927519","48.637413",243],["17.927113","48.637126",242.5],["17.926705","48.636639",242.6],["17.925541","48.636112",237.8],["17.923778","48.636033",234.1],["17.922122","48.636167",234],["17.920349","48.636238",234.2],["17.918899","48.63657",233.2],["17.917972","48.636571",231.2],["17.916395","48.636429",226.2],["17.914919","48.635827",224.1],["17.913747","48.635645",221.7],["17.912165","48.636109",220.2],["17.910783","48.636561",220.1],["17.909135","48.636696",220.2],["17.90769","48.636565",221],["17.905762","48.636545",223.6],["17.904041","48.636937",220.9],["17.902961","48.6375",215.2],["17.901667","48.638453",207.8],["17.901223","48.639397",205.6],["17.900984","48.63971",204.6],["17.89998","48.640055",203.3],["17.899462","48.640354",202.3],["17.898306","48.641401",201.3],["17.89678","48.642534",200.9],["17.895723","48.643632",198.7],["17.895585","48.644017",197.5],["17.895895","48.64425",197.4],["17.895581","48.644041",197.5],["17.89528","48.644096",197.3],["17.893951","48.645284",194.4],["17.892585","48.64615",193.1],["17.892363","48.64622",192.6],["17.890446","48.647044",189.3],["17.888123","48.647932",186.2],["17.88712","48.64815",184.6],["17.885685","48.648626",182.5],["17.884963","48.648989",182.5]]}},{"type":"Feature","properties":{"type":99,"segment":"6726","segmentName":"Bezovec (Parkovisko - Benz pumpa) Downhill","segmentDistance":"D\u013a\u017eka: 2.65 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -7 %<\/b>","segmentNameHref":"bezovec-parkovisko-benz-pumpa-downhill"},"geometry":{"type":"LineString","coordinates":[["17.968391","48.657636",513],["17.968391","48.657636",513],["17.965874","48.658117",499.9],["17.963794","48.658459",489.7],["17.961939","48.658593",480.6],["17.960816","48.659342",471.4],["17.960037","48.659941",466],["17.959342","48.660171",462.3],["17.958579","48.66009",458.5],["17.958008","48.659747",454.3],["17.957689","48.658829",446.6],["17.957357","48.657578",436.4],["17.956632","48.656838",428.9],["17.955755","48.65616",420.7],["17.955023","48.655566",414.2],["17.95428","48.655401",409.7],["17.952838","48.655457",401.3],["17.951944","48.655089",395.5],["17.951178","48.654815",390.4],["17.948704","48.654138",373.9],["17.944508","48.65275",349.7],["17.943175","48.652525",343.9],["17.942716","48.652879",341],["17.942699","48.653462",338]]}},{"type":"Feature","properties":{"type":99,"segment":"14540","segmentName":"Segment","segmentDistance":"D\u013a\u017eka: 2.22 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 4 %<\/b>","segmentNameHref":"segment"},"geometry":{"type":"LineString","coordinates":[["17.920349","48.636238",234.2],["17.920349","48.636238",234.2],["17.918899","48.63657",233.2],["17.917972","48.636571",231.2],["17.916395","48.636429",226.2],["17.914919","48.635827",224.1],["17.913747","48.635645",221.7],["17.912165","48.636109",220.2],["17.910783","48.636561",220.1],["17.909135","48.636696",220.2],["17.90769","48.636565",221],["17.905762","48.636545",223.6],["17.904041","48.636937",220.9],["17.902961","48.6375",215.2],["17.901667","48.638453",207.8],["17.901223","48.639397",205.6],["17.900984","48.63971",204.6],["17.89998","48.640055",203.3],["17.899462","48.640354",202.3],["17.898306","48.641401",201.3],["17.89678","48.642534",200.9],["17.895723","48.643632",198.7],["17.895585","48.644017",197.5],["17.895895","48.64425",197.4],["17.895581","48.644041",197.5],["17.89528","48.644096",197.3],["17.893951","48.645284",194.4]]}},{"type":"Feature","properties":{"type":99,"segment":"6727","segmentName":"modrovka z bezovca - moravany tabula","segmentDistance":"D\u013a\u017eka: 5.33 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.2 %<\/b>","segmentNameHref":"modrovka-z-bezovca-moravany-tabula"},"geometry":{"type":"LineString","coordinates":[["17.880386","48.648221",172.8],["17.880386","48.648221",172.8],["17.877558","48.647886",171.5],["17.877702","48.647849",171.5],["17.877876","48.647788",171.5],["17.877558","48.647839",171.5],["17.877033","48.64772",171.6],["17.875858","48.646861",172.9],["17.874605","48.646212",172.4],["17.872142","48.645157",170.4],["17.869111","48.644412",169.2],["17.865363","48.643554",170.2],["17.863876","48.642612",169.7],["17.863183","48.641737",169.3],["17.862925","48.640918",169.1],["17.862978","48.63966",169.9],["17.863358","48.638324",170.8],["17.864106","48.637227",171.1],["17.866078","48.635076",170.9],["17.866546","48.633475",169.1],["17.867086","48.631701",169.9],["17.867287","48.630155",165.1],["17.867817","48.628666",165],["17.869261","48.62641",164.7],["17.870059","48.625242",164.7],["17.870304","48.623914",164.7],["17.870586","48.62164",165.2],["17.870443","48.62063",165.4],["17.868927","48.617486",164.1],["17.866418","48.61351",163.1],["17.86496","48.610987",162.6],["17.864602","48.609563",162.3]]}},{"type":"Feature","properties":{"type":99,"segment":"24142","segmentName":"Havran - Banka Obecny urad","segmentDistance":"D\u013a\u017eka: 4.02 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -5.4 %<\/b>","segmentNameHref":"havran-banka-obecny-urad"},"geometry":{"type":"LineString","coordinates":[["17.876795","48.565713",388.5],["17.876795","48.565713",388.5],["17.876998","48.565426",388.4],["17.87818","48.565255",384.4],["17.878895","48.565458",381],["17.88001","48.566368",373.3],["17.880784","48.566614",369.5],["17.881484","48.566519",366.2],["17.88213","48.566075",361.6],["17.883586","48.564384",349.5],["17.8843","48.56392",345.4],["17.885236","48.563638",341.4],["17.88973","48.56334",332.6],["17.891317","48.563506",329.8],["17.893149","48.563807",326.1],["17.895895","48.563205",319.1],["17.896862","48.563056",316.6],["17.897481","48.563224",315],["17.897869","48.563576",313.8],["17.897933","48.564103",311.4],["17.897855","48.564994",305.7],["17.89838","48.565278",303.1],["17.899798","48.564753",294.6],["17.900502","48.564524",290.6],["17.901307","48.56457",286.7],["17.902577","48.56496",280.1],["17.903386","48.564952",276.4],["17.904065","48.564645",272.2],["17.905315","48.563972",264.2],["17.90651","48.563829",259.2],["17.908031","48.563027",251.4],["17.909154","48.562578",246.4],["17.911411","48.561908",238.2],["17.91283","48.561112",233.1],["17.91377","48.560228",230.6],["17.91445","48.559064",228.8],["17.915245","48.557194",225.8],["17.916077","48.556178",223.9],["17.917211","48.555266",222.8],["17.92127","48.552427",219.3],["17.923212","48.551727",222.4],["17.925947","48.551146",230]]}},{"type":"Feature","properties":{"type":99,"segment":"14069","segmentName":"Radosina --> Zbehy","segmentDistance":"D\u013a\u017eka: 20.79 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.2 %<\/b>","segmentNameHref":"radosina-%3E-zbehy"},"geometry":{"type":"LineString","coordinates":[["17.947142","48.539154",187.4],["17.947142","48.539154",187.4],["17.950699","48.537549",184.8],["17.957805","48.534236",181.4],["17.958922","48.53353",181],["17.95972","48.532692",181.1],["17.960115","48.531936",181.6],["17.960607","48.529758",181.9],["17.960984","48.529024",180.4],["17.961823","48.528179",178.7],["17.963427","48.527264",178.5],["17.964081","48.526705",178.3],["17.965639","48.524612",179.7],["17.966245","48.524119",178.4],["17.967603","48.523406",176.2],["17.969541","48.521779",174.4],["17.97072","48.520536",173.8],["17.971195","48.519553",174.3],["17.971561","48.519059",174.5],["17.972863","48.518129",173.7],["17.973739","48.517709",172.7],["17.975347","48.517339",170.9],["17.978014","48.517177",169.7],["17.979526","48.516755",170.5],["17.980657","48.516142",171],["17.981347","48.515583",171.6],["17.981929","48.514788",174.1],["17.984424","48.509578",173.8],["17.985388","48.507595",175.4],["17.985957","48.506277",177],["17.98587","48.50521",175.4],["17.985181","48.504433",172.3],["17.984207","48.503943",169.9],["17.983783","48.503575",169.2],["17.98332","48.502329",169.3],["17.98323","48.501241",168.1],["17.983357","48.500236",167.4],["17.98361","48.499515",168.7],["17.983803","48.499103",169.8],["17.984533","48.497369",174.2],["17.985558","48.495044",174.3],["17.987072","48.49156",173],["17.988204","48.488934",174.4],["17.989126","48.48663",173.5],["17.988807","48.481924",174],["17.988873","48.479307",168.6],["17.988774","48.478185",167.1],["17.988178","48.475919",165],["17.988265","48.475225",163.6],["17.988507","48.474412",160.9],["17.989355","48.473835",160.3],["17.990716","48.473039",161.8],["17.991537","48.472052",164.5],["17.991445","48.471751",164.4],["17.990307","48.47025",168.2],["17.988686","48.46804",176.9],["17.987492","48.466415",176.2],["17.986126","48.464778",172.8],["17.985757","48.464272",171.4],["17.98554","48.462681",166.7],["17.985228","48.461948",165.4],["17.984716","48.460937",169.4],["17.984745","48.45881",172.8],["17.984766","48.45735",172.5],["17.984912","48.455191",175.3],["17.985329","48.451382",172.2],["17.985516","48.450324",169.5],["17.985609","48.448427",169],["17.985753","48.444795",154.4],["17.985765","48.439604",158.4],["17.9858","48.438111",159.2],["17.985768","48.437674",158.6],["17.985714","48.43678",158.4],["17.986038","48.436334",158.5],["17.987354","48.434136",158.3],["17.987878","48.433507",157.9],["17.988049","48.43313",157.8],["17.988199","48.432549",157.8],["17.987802","48.431284",158.3],["17.986546","48.4278",156.5],["17.985215","48.42374",155.5],["17.984641","48.42181",152.4],["17.984264","48.420347",154.1],["17.98336","48.418887",151.3],["17.983349","48.418222",151],["17.983867","48.417056",150.6],["17.985383","48.415288",150],["17.986857","48.413944",150.3],["17.989913","48.411186",154.4],["17.991951","48.409418",155.4],["17.996977","48.406362",156.9],["18.003248","48.402539",159.6],["18.00545","48.400236",159.5],["18.008073","48.396584",158.3],["18.012016","48.391079",153.5],["18.018324","48.382318",147.1],["18.022842","48.376022",143.4]]}},{"type":"Feature","properties":{"type":99,"segment":"3253","segmentName":"Radosina --> Velke Ripnany","segmentDistance":"D\u013a\u017eka: 4.38 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.3 %<\/b>","segmentNameHref":"radosina-%3E-velke-ripnany"},"geometry":{"type":"LineString","coordinates":[["17.947142","48.539154",187.4],["17.947142","48.539154",187.4],["17.950699","48.537549",184.8],["17.957805","48.534236",181.4],["17.958922","48.53353",181],["17.95972","48.532692",181.1],["17.960115","48.531936",181.6],["17.960607","48.529758",181.9],["17.960984","48.529024",180.4],["17.961823","48.528179",178.7],["17.963427","48.527264",178.5],["17.964081","48.526705",178.3],["17.965639","48.524612",179.7],["17.966245","48.524119",178.4],["17.967603","48.523406",176.2],["17.969541","48.521779",174.4],["17.97072","48.520536",173.8],["17.971195","48.519553",174.3],["17.971561","48.519059",174.5],["17.972863","48.518129",173.7],["17.973739","48.517709",172.7],["17.975347","48.517339",170.9],["17.978014","48.517177",169.7],["17.979526","48.516755",170.5],["17.980657","48.516142",171],["17.981347","48.515583",171.6],["17.981929","48.514788",174.1],["17.984424","48.509578",173.8]]}},{"type":"Feature","properties":{"type":99,"segment":"14068","segmentName":"V. Ripnany-Radosina","segmentDistance":"D\u013a\u017eka: 4.35 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.4 %<\/b>","segmentNameHref":"v-ripnany-radosina"},"geometry":{"type":"LineString","coordinates":[["17.984424","48.509578",173.8],["17.984424","48.509578",173.8],["17.985388","48.507595",175.4],["17.985957","48.506277",177],["17.98587","48.50521",175.4],["17.985181","48.504433",172.3],["17.984207","48.503943",169.9],["17.983783","48.503575",169.2],["17.98332","48.502329",169.3],["17.98323","48.501241",168.1],["17.983357","48.500236",167.4],["17.98361","48.499515",168.7],["17.983803","48.499103",169.8],["17.984533","48.497369",174.2],["17.985558","48.495044",174.3],["17.987072","48.49156",173],["17.988204","48.488934",174.4],["17.989126","48.48663",173.5],["17.988807","48.481924",174],["17.988873","48.479307",168.6],["17.988774","48.478185",167.1],["17.988178","48.475919",165],["17.988265","48.475225",163.6],["17.988507","48.474412",160.9],["17.989355","48.473835",160.3],["17.990716","48.473039",161.8],["17.991537","48.472052",164.5],["17.991445","48.471751",164.4]]}},{"type":"Feature","properties":{"type":99,"segment":"1867","segmentName":"Mal\u00e9 Z\u00e1lu\u017eie -> Zbehy (\u017eel.most)","segmentDistance":"D\u013a\u017eka: 8.74 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.3 %<\/b>","segmentNameHref":"male-zaluzie-%3E-zbehy-zelmost"},"geometry":{"type":"LineString","coordinates":[["17.985753","48.444795",154.4],["17.985753","48.444795",154.4],["17.985765","48.439604",158.4],["17.9858","48.438111",159.2],["17.985768","48.437674",158.6],["17.985714","48.43678",158.4],["17.986038","48.436334",158.5],["17.987354","48.434136",158.3],["17.987878","48.433507",157.9],["17.988049","48.43313",157.8],["17.988199","48.432549",157.8],["17.987802","48.431284",158.3],["17.986546","48.4278",156.5],["17.985215","48.42374",155.5],["17.984641","48.42181",152.4],["17.984264","48.420347",154.1],["17.98336","48.418887",151.3],["17.983349","48.418222",151],["17.983867","48.417056",150.6],["17.985383","48.415288",150],["17.986857","48.413944",150.3],["17.989913","48.411186",154.4],["17.991951","48.409418",155.4],["17.996977","48.406362",156.9],["18.003248","48.402539",159.6],["18.00545","48.400236",159.5],["18.008073","48.396584",158.3],["18.012016","48.391079",153.5],["18.018324","48.382318",147.1],["18.022842","48.376022",143.4],["18.02346","48.375156",143.3],["18.025907","48.371798",141.4]]}},{"type":"Feature","properties":{"type":99,"segment":"1868","segmentName":"Z\u00e1lu\u017eie - Nov\u00e9 Sady","segmentDistance":"D\u013a\u017eka: 4.91 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"zaluzie-nove-sady"},"geometry":{"type":"LineString","coordinates":[["17.989913","48.411186",154.4],["17.989913","48.411186",154.4],["17.991951","48.409418",155.4],["17.996977","48.406362",156.9],["18.003248","48.402539",159.6],["18.00545","48.400236",159.5],["18.008073","48.396584",158.3],["18.012016","48.391079",153.5],["18.018324","48.382318",147.1],["18.022842","48.376022",143.4]]}},{"type":"Feature","properties":{"type":99,"segment":"14070","segmentName":"Obchvat Dra\u017eoviec","segmentDistance":"D\u013a\u017eka: 1.78 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.3 %<\/b>","segmentNameHref":"obchvat-drazoviec"},"geometry":{"type":"LineString","coordinates":[["18.045964","48.355096",143.8],["18.045964","48.355096",143.8],["18.046619","48.354026",143],["18.048131","48.351698",142.7],["18.049648","48.350077",142.8],["18.052026","48.34827",144.4],["18.053783","48.347033",144.5],["18.056263","48.344821",143.1],["18.058828","48.342768",141.9]]}}] 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\/stravaPhoto1412886-0_6492ebf570668.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1412886-0_6492ebf570668.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1412886-1_6492ebf8d54ae.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1412886-1_6492ebf8d54ae.jpg"},{"lat":"0","lng":"0","url":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1412886-2_6492ebfc3078f.jpg","thumbnail":"https:\/\/images.mtbiker.sk\/vyjazdy\/big\/stravaPhoto1412886-2_6492ebfc3078f.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=bW9kdWw9dnlqYXpkeSZleHRlcm5hbElkPTE0MTI4ODYmaXRlbU5hbWU9ViVDMyVCRGphemQrJUM0JThELisxNDEyODg2JmNvbW1lbnRUeXBlPWNvbW1lbnQmYXV0aG9yVXNlcklkPTE1OTEwOSZ3aWRnZXRJZD1jb21tZW50cyZhbGxvd0luc2VydD0xJmFsbG93UmVwbHk9MSZyZXR1cm5Vcmw9aHR0cHMlM0ElMkYlMkZ3d3cubXRoaWtlci5zayUyRmFrdGl2aXR5JTJGMTQxMjg4NiUyRmJpY3lrZWwtbml0cmEtaG9iYml0b24uaHRtbCUzRm9kJTNEMSUyNnJpZGVfaWQlM0QxNDEyODg2JnBhcnNlZFVybCU1QnNjaGVtZSU1RD1odHRwcyZwYXJzZWRVcmwlNUJob3N0JTVEPXd3dy5tdGhpa2VyLnNrJnBhcnNlZFVybCU1QnBhdGglNUQ9JTJGYWt0aXZpdHklMkYxNDEyODg2JTJGYmljeWtlbC1uaXRyYS1ob2JiaXRvbi5odG1sJnBhcnNlZFVybCU1QnF1ZXJ5JTVEPW9kJTNEMSUyNnJpZGVfaWQlM0QxNDEyODg2JmluY2x1ZGVDb21tZW50SWQ9MA|" + 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"; }); }); }); -->