Rivivere la fiaba dell'inverno. Dove i bambini trovano la loro felicità e i genitori il loro divertimento. Dove gli appassionati del sole hanno più di un motivo per sentirsi totalmente appagati. Dove ognuno va o viene, come più gli aggrada. Nella neve alta e praticando lo sci escursionistico. Su piste da sogno e splendenti anelli di fondo. Pattinando. Praticando lo snowboard. I primi contatti con la neve con il maestro di sci. Essere attivi quanto si vuole. Ore spensierate e indimenticabili.
Previsioni meteo
Inizio stagione: 13.12.2025
Bollettino neve
Bollettino neve
0 cm
Altezza neve
0 cm
0 cm nella località
Situazione neve
nessuna info
Data dell'ultima nevicata
18.04.2025
Previsioni dettagliate
`;
}
function buildSnowChart(forecasts) {
let locale = "it";
let snowList = document.createElement('ul');
snowList.classList.add('SnowChart');
for (let i = 0; i < forecasts.length; i++) {
let item = document.createElement('li');
item.setAttribute('data-js-tooltip', 'top');
const tooltipValue = getDayName(forecasts[i].date) + ': ' + forecasts[i].snow_sum_day + ' ' + forecasts[i].unit;
item.setAttribute('data-title', tooltipValue);
item.innerHTML = `
${getDayName(forecasts[i].date, locale)}${forecasts[i].snow_sum_day} ${forecasts[i].unit}
`
snowList.appendChild(item);
}
return snowList.outerHTML;
}
function getDayName(dateStr, locale) {
let date = new Date(dateStr);
return date.toLocaleDateString(locale, {weekday: "short"});
}
const hasMountainWeather = true;
const hasValleyWeather = false;
if (hasMountainWeather) {
loadWeatherData("https:\/\/cdn2.myswitzerland.com\/meteo\/transformed\/resort_429.json", buildDomElement, document.getElementById('srfSnowChart'));
} else if (!hasMountainWeather && hasValleyWeather) {
loadWeatherData("https:\/\/cdn2.myswitzerland.com\/meteo\/transformed\/resort_429.json", buildDomElement, document.getElementById('srfSnowChart'));
} else {
loadWeatherData("https:\/\/cdn2.myswitzerland.com\/meteo\/transformed\/resort_429.json", buildDomElement, document.getElementById('srfSnowChart'));
}
const snowCheckboxes = document.getElementsByName('snowType');
snowCheckboxes.forEach(cb => {
cb.addEventListener('change', ev => {
if (ev.target.value === 'valley') {
loadWeatherData("https:\/\/cdn2.myswitzerland.com\/meteo\/transformed\/resort_429.json", buildDomElement, document.getElementById('srfSnowChart'));
} else {
loadWeatherData("https:\/\/cdn2.myswitzerland.com\/meteo\/transformed\/resort_429.json", buildDomElement, document.getElementById('srfSnowChart'));
}
});
});
//]]>
Bivio
Key Value List
Altezza della neve nella località a 1769 m s.l.m.
0 cm
Altezza della neve nel comprensorio sciistico superiore
0 cm
Data dell'ultima nevicata nella località
18.04.2025
Data dell'ultima nevicata nel comprensorio sciistico
18.04.2025
Neve nuova nel comprensorio sciistico (ultime 24 ore)