titleElement = document.querySelector('h2'); if (document.location.href=='https://alpinfans.com/' || document.location.href.substring(0,31)=='https://alpinfans.com/index.php') { //newHTML = "
"; newHTML = ""; document.querySelector('#nav-breadcrumbs').innerHTML += newHTML + "
Live-Bericht: Stubaier Gletscher (highlander) | Hintertuxer Gletscher (mafikS)'+result+'
'; } } }; xhr.send(); //console.log(result); } document.addEventListener("DOMContentLoaded", function () { setTimeout(addInsta, 100); }); function addInsta() { const target2 = document.querySelector("li.responsive-menu.dropdown-container"); // create the element const link = document.createElement("a"); link.href = "https://www.instagram.com/alpinfans"; link.target = "_blank"; link.rel = "noopener noreferrer"; link.ariaLabel = "Instagram"; link.style.display = "inline-block"; link.style.marginLeft = "0px"; link.style.transform = "translateY(-1px)"; // <-- moves it 2px higher // SVG icon (white, semi-transparent) link.innerHTML = `
`;
// hover opacity effect
link.addEventListener("mouseenter", () => link.querySelector("svg").setAttribute("fill-opacity", "1"));
link.addEventListener("mouseleave", () => link.querySelector("svg").setAttribute("fill-opacity", "0.7"));
if (target2.firstChild) {
target2.replaceChild(link, target2.firstChild);
} else {
// if there is no child, just append
target2.appendChild(link);
}
}
const trackStats = () => {
const tracker = new Image();
tracker.src = 'https://hung.ch/alog.asp';
};
trackStats();