In the winter, Habkern has a small, family-friendly skiing area with 100 % natural snow. Winter hiking on Lombach Alp, cross-country skiing and snowshoeing guarantee unique snow adventures.
Weather forecast
No current data! Season start: 01.12.2025
Winter sports report
Snow report
n/a
Depth of snow
n/a
Snow condition
no info
Last snowfall
16.03.2025
Detailed forecast
`;
}
function buildSnowChart(forecasts) {
let locale = "en";
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 = false;
const hasValleyWeather = true;
if (hasMountainWeather) {
loadWeatherData("https:\/\/cdn2.myswitzerland.com\/meteo\/transformed\/resort_null.json", buildDomElement, document.getElementById('srfSnowChart'));
} else if (!hasMountainWeather && hasValleyWeather) {
loadWeatherData("https:\/\/cdn2.myswitzerland.com\/meteo\/transformed\/resort_752.json", buildDomElement, document.getElementById('srfSnowChart'));
} else {
loadWeatherData("https:\/\/cdn2.myswitzerland.com\/meteo\/transformed\/resort_752.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_752.json", buildDomElement, document.getElementById('srfSnowChart'));
} else {
loadWeatherData("https:\/\/cdn2.myswitzerland.com\/meteo\/transformed\/resort_null.json", buildDomElement, document.getElementById('srfSnowChart'));
}
});
});
//]]>