favorite comment 0
thumb_up0thumb_down

directions_bike🥵🥵🥵 note to self: ked nemas najazdene tak nechod s hroticmi. duplom ked nemas plaste na cestu ale do lesa…

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ť
96,2 km
schedule Čas
03:42:01
landscape Nastúpané
356 m

bar_chartŠtatistiky

Priemer Max
Rýchlosť 26,0 km/h 57,8 km/h
Výkon 223 W -
Tepová frekvencia 132 bpm 167 bpm
Energetický výdaj 2 969 kcal

cloudPodmienky

Priemerná teplota 12 °C

directions_bike Posledné aktivity bikera

thumb_up0thumb_down

directions_bike Evening Ride

trending_up 21,8 km
schedule 00:52:47
landscape 208 m
thumb_up0thumb_down

directions_bike slnko, vietor, piesok, strk, asfalt

trending_up 51,3 km
schedule 02:16:15
landscape 409 m
thumb_up0thumb_down

directions_bike the way is shut

trending_up 22,4 km
schedule 00:57:24
landscape 291 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 Parndorf","segmentDistance":"D\u013a\u017eka: 4.26 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.4 %<\/b>","segmentNameHref":"feriensiedlungbnd-%3Eparndorf"},"geometry":{"type":"LineString","coordinates":[["16.809797","48.016332",170],["16.809797","48.016332",170],["16.811401","48.016405",169.4],["16.815432","48.017029",169.6],["16.817538","48.017106",168.4],["16.820224","48.016823",164.2],["16.822024","48.016421",163.8],["16.823699","48.015786",163],["16.824586","48.015633",162.2],["16.82756","48.015924",162],["16.829401","48.016069",162],["16.832569","48.016238",162.4],["16.834069","48.016245",163.8],["16.835066","48.016315",167.4],["16.836862","48.016376",172],["16.838632","48.016574",167.8],["16.839968","48.016781",166.2],["16.841584","48.015694",167.8],["16.842482","48.015045",169],["16.843688","48.014817",171],["16.845232","48.014338",173.8],["16.846709","48.013688",176.6],["16.85164","48.010988",183],["16.854084","48.009148",188.8],["16.855952","48.007452",191],["16.856702","48.006786",192.8],["16.856922","48.006044",193.4],["16.857358","48.004965",193.2]]}},{"type":"Feature","properties":{"type":99,"segment":"35247","segmentName":"Wattomatto","segmentDistance":"D\u013a\u017eka: 572.30 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.5 %<\/b>","segmentNameHref":"wattomatto"},"geometry":{"type":"LineString","coordinates":[["16.834069","48.016245",163.8],["16.834069","48.016245",163.8],["16.835066","48.016315",167.4],["16.835066","48.016315",167.4],["16.836862","48.016376",172],["16.838632","48.016574",167.8],["16.839968","48.016781",166.2]]}},{"type":"Feature","properties":{"type":99,"segment":"35248","segmentName":"Heidwiesen climb","segmentDistance":"D\u013a\u017eka: 1.95 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.4 %<\/b>","segmentNameHref":"heidwiesen-climb"},"geometry":{"type":"LineString","coordinates":[["16.839968","48.016781",166.2],["16.839968","48.016781",166.2],["16.841584","48.015694",167.8],["16.842482","48.015045",169],["16.843688","48.014817",171],["16.845232","48.014338",173.8],["16.846709","48.013688",176.6],["16.85164","48.010988",183],["16.854084","48.009148",188.8],["16.855952","48.007452",191],["16.856702","48.006786",192.8],["16.856922","48.006044",193.4],["16.857358","48.004965",193.2]]}},{"type":"Feature","properties":{"type":99,"segment":"28551","segmentName":"parndorf exit","segmentDistance":"D\u013a\u017eka: 3.42 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"parndorf-exit"},"geometry":{"type":"LineString","coordinates":[["16.865032","48.002466",193.8],["16.865032","48.002466",193.8],["16.865661","48.003317",194.2],["16.866551","48.004507",194.8],["16.868151","48.006538",194.8],["16.869228","48.007904",195.4],["16.870791","48.009884",196],["16.872939","48.012564",196.2],["16.874289","48.01429",196.2],["16.875692","48.016049",196],["16.877035","48.017749",196.2],["16.878602","48.019732",196.6],["16.881376","48.023252",196.8],["16.882684","48.024874",196.8],["16.883649","48.026093",197],["16.884752","48.027499",196.2],["16.886034","48.02852",196.6]]}},{"type":"Feature","properties":{"type":99,"segment":"28552","segmentName":"B21: Parndorf - Neudorf","segmentDistance":"D\u013a\u017eka: 6.71 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"b21-parndorf-neudorf"},"geometry":{"type":"LineString","coordinates":[["16.865661","48.003317",194.2],["16.865661","48.003317",194.2],["16.866551","48.004507",194.8],["16.868151","48.006538",194.8],["16.869228","48.007904",195.4],["16.870791","48.009884",196],["16.872939","48.012564",196.2],["16.874289","48.01429",196.2],["16.875692","48.016049",196],["16.877035","48.017749",196.2],["16.878602","48.019732",196.6],["16.881376","48.023252",196.8],["16.882684","48.024874",196.8],["16.883649","48.026093",197],["16.884752","48.027499",196.2],["16.886034","48.02852",196.6],["16.887597","48.029797",196.6],["16.887851","48.029841",196.8],["16.891462","48.027155",195.8],["16.894672","48.024768",194.8],["16.897819","48.022432",193.8],["16.899336","48.022077",193.8],["16.909858","48.019936",192.2],["16.914161","48.019067",190.6],["16.919439","48.018022",189.6],["16.925636","48.016688",185.4],["16.927398","48.015941",184.4],["16.927734","48.015708",184.6],["16.927944","48.015695",184.6],["16.929503","48.016264",186.8],["16.932667","48.016993",185.8],["16.933284","48.017195",186],["16.933063","48.017762",185.8],["16.933029","48.018369",185.6],["16.93363","48.019306",185.8],["16.936039","48.021862",187.4],["16.936961","48.023099",186.8],["16.937583","48.024697",186.4],["16.937832","48.0251",186.8],["16.938334","48.025352",187.2],["16.93838","48.025591",187.2],["16.938118","48.025861",187.2],["16.938042","48.026245",186.8],["16.939081","48.029653",183.6],["16.939969","48.031147",184],["16.941812","48.033257",183.2]]}},{"type":"Feature","properties":{"type":99,"segment":"28553","segmentName":"A6 bis Neudorf B10","segmentDistance":"D\u013a\u017eka: 3.42 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.3 %<\/b>","segmentNameHref":"a6-bis-neudorf-b10"},"geometry":{"type":"LineString","coordinates":[["16.887851","48.029841",196.8],["16.887851","48.029841",196.8],["16.891462","48.027155",195.8],["16.894672","48.024768",194.8],["16.897819","48.022432",193.8],["16.899336","48.022077",193.8],["16.909858","48.019936",192.2],["16.914161","48.019067",190.6],["16.919439","48.018022",189.6],["16.925636","48.016688",185.4]]}},{"type":"Feature","properties":{"type":99,"segment":"28554","segmentName":"Neudorf Sprint","segmentDistance":"D\u013a\u017eka: 1.12 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.4 %<\/b>","segmentNameHref":"neudorf-sprint"},"geometry":{"type":"LineString","coordinates":[["16.909858","48.019936",192.2],["16.909858","48.019936",192.2],["16.914161","48.019067",190.6],["16.919439","48.018022",189.6]]}},{"type":"Feature","properties":{"type":99,"segment":"24712","segmentName":"Neudorf - Potzneusiedl","segmentDistance":"D\u013a\u017eka: 3.17 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.4 %<\/b>","segmentNameHref":"neudorf-potzneusiedl"},"geometry":{"type":"LineString","coordinates":[["16.933284","48.017195",186],["16.933284","48.017195",186],["16.933063","48.017762",185.8],["16.933029","48.018369",185.6],["16.93363","48.019306",185.8],["16.936039","48.021862",187.4],["16.936961","48.023099",186.8],["16.937583","48.024697",186.4],["16.937832","48.0251",186.8],["16.938334","48.025352",187.2],["16.93838","48.025591",187.2],["16.938118","48.025861",187.2],["16.938042","48.026245",186.8],["16.939081","48.029653",183.6],["16.939969","48.031147",184],["16.941812","48.033257",183.2],["16.945217","48.037933",170.4],["16.946479","48.039419",168.4],["16.947169","48.040126",167.8],["16.948421","48.0423",169.2]]}},{"type":"Feature","properties":{"type":99,"segment":"24713","segmentName":"O-Potzneusiedl","segmentDistance":"D\u013a\u017eka: 1.52 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -1 %<\/b>","segmentNameHref":"o-potzneusiedl"},"geometry":{"type":"LineString","coordinates":[["16.938042","48.026245",186.8],["16.938042","48.026245",186.8],["16.939081","48.029653",183.6],["16.939969","48.031147",184],["16.941812","48.033257",183.2],["16.945217","48.037933",170.4]]}},{"type":"Feature","properties":{"type":99,"segment":"61301","segmentName":"Hauptstrasse climb 02","segmentDistance":"D\u013a\u017eka: 847.60 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 2.3 %<\/b>","segmentNameHref":"hauptstrasse-climb-02"},"geometry":{"type":"LineString","coordinates":[["16.951297","48.047585",158.6],["16.951297","48.047585",158.6],["16.951521","48.048119",160.8],["16.952574","48.048461",163.2],["16.952948","48.048701",164.6],["16.953157","48.049907",168.2],["16.953381","48.051157",172.4],["16.953683","48.052862",179.8]]}},{"type":"Feature","properties":{"type":99,"segment":"23096","segmentName":"Eistechweg nach Pama","segmentDistance":"D\u013a\u017eka: 2.06 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"eistechweg-nach-pama"},"geometry":{"type":"LineString","coordinates":[["16.966792","48.050963",164.6],["16.966792","48.050963",164.6],["16.968139","48.05209",163.2],["16.970242","48.053749",163.2],["16.972485","48.055516",163],["16.975663","48.058044",162],["16.97666","48.059424",164.4],["16.9793","48.063141",163.8],["16.980245","48.064521",164.6]]}},{"type":"Feature","properties":{"type":99,"segment":"23098","segmentName":"Pamaerstrasse - Pama (under highway)","segmentDistance":"D\u013a\u017eka: 4.28 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.4 %<\/b>","segmentNameHref":"pamaerstrasse-pama-under-highway"},"geometry":{"type":"LineString","coordinates":[["16.983122","48.066557",163.4],["16.983122","48.066557",163.4],["16.986708","48.065377",161],["16.989393","48.064518",160],["16.991912","48.063763",158.4],["16.996187","48.063417",150.8],["17.001727","48.063013",147.8],["17.005631","48.062651",147],["17.005829","48.062467",146.8],["17.004704","48.061563",146.8],["17.004696","48.061305",146.4],["17.005229","48.06062",146.8],["17.00553","48.060529",146.6],["17.006772","48.061739",146.6],["17.007559","48.062261",147.4],["17.008806","48.061825",148.2],["17.014074","48.05938",147.6],["17.016903","48.058052",147.6],["17.023409","48.054536",148],["17.024969","48.053836",147.2],["17.02814","48.052457",146],["17.029984","48.051475",146],["17.031037","48.05073",146],["17.033747","48.04833",146.8]]}},{"type":"Feature","properties":{"type":99,"segment":"23097","segmentName":"Finish of Pamaerstrasse","segmentDistance":"D\u013a\u017eka: 1.74 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.9 %<\/b>","segmentNameHref":"finish-of-pamaerstrasse"},"geometry":{"type":"LineString","coordinates":[["16.983122","48.066557",163.4],["16.983122","48.066557",163.4],["16.986708","48.065377",161],["16.989393","48.064518",160],["16.991912","48.063763",158.4],["16.996187","48.063417",150.8],["17.001727","48.063013",147.8]]}},{"type":"Feature","properties":{"type":99,"segment":"23099","segmentName":"Road to PAMA ","segmentDistance":"D\u013a\u017eka: 1.69 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"road-to-pama"},"geometry":{"type":"LineString","coordinates":[["17.007559","48.062261",147.4],["17.007559","48.062261",147.4],["17.008806","48.061825",148.2],["17.014074","48.05938",147.6],["17.016903","48.058052",147.6],["17.023409","48.054536",148],["17.024969","48.053836",147.2]]}},{"type":"Feature","properties":{"type":99,"segment":"19054","segmentName":"Pacheros sprints (Pama-rozhladna)","segmentDistance":"D\u013a\u017eka: 300.90 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.9 %<\/b>","segmentNameHref":"pacheros-sprints-pama-rozhladna"},"geometry":{"type":"LineString","coordinates":[["17.046164","48.048115",149.2],["17.046164","48.048115",149.2]]}},{"type":"Feature","properties":{"type":99,"segment":"35249","segmentName":"Pama Sprint (od rozhladne)","segmentDistance":"D\u013a\u017eka: 2.74 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"pama-sprint-od-rozhladne"},"geometry":{"type":"LineString","coordinates":[["17.048541","48.05156",148.2],["17.048541","48.05156",148.2],["17.049843","48.053319",149.4],["17.051081","48.055034",149.6],["17.052519","48.057126",149.4],["17.053455","48.058505",148],["17.054422","48.059824",148.2],["17.056622","48.062932",148],["17.057707","48.06455",149],["17.059918","48.067691",148.4],["17.062087","48.070756",148.4],["17.063349","48.07255",148.6]]}},{"type":"Feature","properties":{"type":99,"segment":"19055","segmentName":"B1r Sprint","segmentDistance":"D\u013a\u017eka: 811.80 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"b1r-sprint"},"geometry":{"type":"LineString","coordinates":[["17.057707","48.06455",149],["17.057707","48.06455",149],["17.059918","48.067691",148.4]]}},{"type":"Feature","properties":{"type":99,"segment":"19056","segmentName":"A6 - Kittsee","segmentDistance":"D\u013a\u017eka: 822.80 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"a6-kittsee"},"geometry":{"type":"LineString","coordinates":[["17.060514","48.075014",150.4],["17.060514","48.075014",150.4],["17.06039","48.075232",150.4],["17.06039","48.075232",150.4],["17.060605","48.075503",150],["17.060558","48.075747",149.6],["17.061061","48.076268",149.8],["17.063164","48.078378",150],["17.065105","48.080372",149.2]]}},{"type":"Feature","properties":{"type":99,"segment":"18787","segmentName":"Pama-Kittsee Speedcam Sprint","segmentDistance":"D\u013a\u017eka: 373.00 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.2 %<\/b>","segmentNameHref":"pama-kittsee-speedcam-sprint"},"geometry":{"type":"LineString","coordinates":[["17.063164","48.078378",150],["17.063164","48.078378",150],["17.065105","48.080372",149.2]]}},{"type":"Feature","properties":{"type":99,"segment":"46789","segmentName":"Kittsee Landstrasse","segmentDistance":"D\u013a\u017eka: 1.20 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"kittsee-landstrasse"},"geometry":{"type":"LineString","coordinates":[["17.067639","48.083409",149.2],["17.067639","48.083409",149.2],["17.067123","48.084272",149],["17.065977","48.085489",148.8],["17.065572","48.086181",148.8],["17.064847","48.087786",149.2],["17.063805","48.08928",149],["17.063502","48.089966",149],["17.063291","48.090755",150],["17.062494","48.091213",149.2]]}},{"type":"Feature","properties":{"type":99,"segment":"2009","segmentName":"kittsee -hranica","segmentDistance":"D\u013a\u017eka: 881.60 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.1 %<\/b>","segmentNameHref":"kittsee-hranica"},"geometry":{"type":"LineString","coordinates":[["17.076197","48.095252",147.6],["17.076197","48.095252",147.6],["17.077473","48.096518",148.2],["17.078527","48.097601",148.4],["17.080105","48.099195",148],["17.0822","48.101203",148.4]]}},{"type":"Feature","properties":{"type":99,"segment":"2010","segmentName":"Hranica - Rusovska","segmentDistance":"D\u013a\u017eka: 2.61 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"hranica-rusovska"},"geometry":{"type":"LineString","coordinates":[["17.083882","48.103129",148.2],["17.083882","48.103129",148.2],["17.084634","48.103926",148],["17.085063","48.104352",147.8],["17.085766","48.10531",147.8],["17.087399","48.107244",148],["17.087925","48.10789",148.4],["17.088853","48.109023",148],["17.090057","48.110407",148.2],["17.091036","48.111555",147.8],["17.092127","48.112927",148.6],["17.093634","48.114718",148.4],["17.094186","48.115425",148],["17.09452","48.116096",148],["17.094858","48.11659",148],["17.095744","48.118131",148.6],["17.096294","48.119105",149.2],["17.096839","48.119708",149.2],["17.097546","48.120555",148.6],["17.098034","48.121204",149.4],["17.098268","48.121414",149.4],["17.098732","48.122016",149.4],["17.098994","48.122427",149.2],["17.099185","48.123086",149.2],["17.099269","48.123989",148.2]]}},{"type":"Feature","properties":{"type":99,"segment":"58880","segmentName":"kopcianska (signalka - bratska)","segmentDistance":"D\u013a\u017eka: 1.38 km<\/b>","segmentGrade":"Priemern\u00e9 klesanie: 0 %<\/b>","segmentNameHref":"kopcianska-signalka-bratska"},"geometry":{"type":"LineString","coordinates":[["17.084634","48.103926",148],["17.084634","48.103926",148],["17.085063","48.104352",147.8],["17.085766","48.10531",147.8],["17.087399","48.107244",148],["17.087925","48.10789",148.4],["17.088853","48.109023",148],["17.090057","48.110407",148.2],["17.091036","48.111555",147.8],["17.092127","48.112927",148.6]]}},{"type":"Feature","properties":{"type":99,"segment":"2011","segmentName":"Bratsk\u00e1 - Rusovsk\u00e1","segmentDistance":"D\u013a\u017eka: 982.30 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.2 %<\/b>","segmentNameHref":"bratska-rusovska"},"geometry":{"type":"LineString","coordinates":[["17.093634","48.114718",148.4],["17.093634","48.114718",148.4],["17.094186","48.115425",148],["17.09452","48.116096",148],["17.094858","48.11659",148],["17.095744","48.118131",148.6],["17.096294","48.119105",149.2],["17.096839","48.119708",149.2],["17.097546","48.120555",148.6],["17.098034","48.121204",149.4],["17.098268","48.121414",149.4],["17.098732","48.122016",149.4]]}},{"type":"Feature","properties":{"type":99,"segment":"12367","segmentName":"Gercenova Cyklotrasa N","segmentDistance":"D\u013a\u017eka: 904.60 metrov<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.1 %<\/b>","segmentNameHref":"gercenova-cyklotrasa-n"},"geometry":{"type":"LineString","coordinates":[["17.099185","48.123086",149.2],["17.099185","48.123086",149.2],["17.099269","48.123989",148.2],["17.099269","48.123989",148.2],["17.099331","48.124418",147.8],["17.099434","48.124829",148.8],["17.09953","48.125503",148.8],["17.09944","48.125852",148.8],["17.099454","48.126465",148.6],["17.099464","48.126845",148.4],["17.099506","48.127209",148.6],["17.099569","48.128043",148],["17.09962","48.128387",148.2],["17.100029","48.128878",148.4],["17.100205","48.129292",148.6],["17.100088","48.129459",148.6],["17.099793","48.12959",148.8],["17.099716","48.12972",148.8],["17.099267","48.129819",148.8],["17.099223","48.130139",148.6],["17.099295","48.130546",148.6]]}},{"type":"Feature","properties":{"type":99,"segment":"25369","segmentName":"V\u00fd\u0165ah - \u0160afko","segmentDistance":"D\u013a\u017eka: 2.38 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 0.3 %<\/b>","segmentNameHref":"vytah-safko"},"geometry":{"type":"LineString","coordinates":[["17.099873","48.13192",153.4],["17.099873","48.13192",153.4],["17.100006","48.132334",152.8],["17.101229","48.132204",147.2],["17.102633","48.132185",146],["17.10328","48.132543",145.6],["17.104018","48.133375",146.4],["17.104373","48.134212",146.6],["17.104355","48.135239",146.6],["17.104448","48.13614",147.4],["17.104603","48.136431",149.2],["17.106889","48.136702",149],["17.108322","48.136612",148.8],["17.110935","48.13605",148.2],["17.113065","48.135601",147.8],["17.115075","48.135208",148.6],["17.116322","48.135117",149.2],["17.1169","48.135478",151.8],["17.116972","48.135756",153],["17.11713","48.136002",154.6],["17.117224","48.136739",157],["17.117271","48.13743",158.6],["17.117331","48.138581",158],["17.117387","48.139695",154.6],["17.117274","48.140403",151.6]]}},{"type":"Feature","properties":{"type":99,"segment":"12368","segmentName":"\u0160print Incheba","segmentDistance":"D\u013a\u017eka: 492.40 metrov<\/b>","segmentGrade":"Priemern\u00e9 klesanie: -0.4 %<\/b>","segmentNameHref":"sprint-incheba"},"geometry":{"type":"LineString","coordinates":[["17.101229","48.132204",147.2],["17.101229","48.132204",147.2],["17.102633","48.132185",146],["17.10328","48.132543",145.6],["17.104018","48.133375",146.4],["17.104373","48.134212",146.6]]}},{"type":"Feature","properties":{"type":99,"segment":"97066","segmentName":"Centrum passing","segmentDistance":"D\u013a\u017eka: 1.13 km<\/b>","segmentGrade":"Priemern\u00e9 st\u00fapanie: 1.3 %<\/b>","segmentNameHref":"centrum-passing"},"geometry":{"type":"LineString","coordinates":[["17.116685","48.141173",147.6],["17.116685","48.141173",147.6],["17.116572","48.141397",147.4],["17.116572","48.141397",147.4],["17.116172","48.141955",148],["17.115455","48.141849",148],["17.114832","48.142248",147.8],["17.114136","48.142744",148.2],["17.113524","48.143098",148.4],["17.113194","48.143275",148.2],["17.112917","48.143633",148.4],["17.112821","48.14389",148.6],["17.112811","48.144314",149.4],["17.112926","48.144653",149.4],["17.112241","48.144929",149.2],["17.111551","48.145187",149.6],["17.110657","48.145394",150.4],["17.109015","48.145636",154.4],["17.1079","48.14586",157.8],["17.107509","48.146206",160.4],["17.1071","48.146335",162.2],["17.107059","48.146652",163.2]]}}] 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=bW9kdWw9dnlqYXpkeSZleHRlcm5hbElkPTIwNDIwNzImaXRlbU5hbWU9ViVDMyVCRGphemQrJUM0JThELisyMDQyMDcyJmNvbW1lbnRUeXBlPWNvbW1lbnQmYXV0aG9yVXNlcklkPTc3NjExMCZ3aWRnZXRJZD1jb21tZW50cyZhbGxvd0luc2VydD0xJmFsbG93UmVwbHk9MSZyZXR1cm5Vcmw9aHR0cHMlM0ElMkYlMkZ3d3cubXRoaWtlci5zayUyRmFrdGl2aXR5JTJGMjA0MjA3MiUyRmJpY3lrZWwtbm90ZS10by5odG1sJTNGb2QlM0QwJTI2cmlkZV9pZCUzRDIwNDIwNzImcGFyc2VkVXJsJTVCc2NoZW1lJTVEPWh0dHBzJnBhcnNlZFVybCU1Qmhvc3QlNUQ9d3d3Lm10aGlrZXIuc2smcGFyc2VkVXJsJTVCcGF0aCU1RD0lMkZha3Rpdml0eSUyRjIwNDIwNzIlMkZiaWN5a2VsLW5vdGUtdG8uaHRtbCZwYXJzZWRVcmwlNUJxdWVyeSU1RD1vZCUzRDAlMjZyaWRlX2lkJTNEMjA0MjA3MiZpbmNsdWRlQ29tbWVudElkPTA|" + 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"; }); }); }); -->