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 + "
Alpinfans-Challenge 2025/26: 1. ski-chrigel, 2. Vero69, 3. Wenzel, 4. hitparade, 5. Fabian_Skiing, 6. Snowboard-Tobi, 7. Laaxi, 8. Inuka525:), 9. Ludra, 10. Miki - Karte mit aktuellen Berichten
Sommer-Challenge | NEU: Ski-Weltcup-Tippspiel"; } else { // newHTML = "
"; //titleElement.insertAdjacentHTML('afterend', newHTML); } if (document.location.href.substring(0,56)=='https://alpinfans.com/memberlist.php?mode=viewprofile&u=') { let url = new URL(document.location.href); let params = new URLSearchParams(url.search); let u = params.get('u'); var result; var xhr = new XMLHttpRequest(); xhr.open('GET', '/challenge/profileembed.php?id='+u, true); xhr.onload = function() { if (xhr.status >= 200 && xhr.status < 300) { result = xhr.responseText; if (result.includes("insgesamt 0 ")) { } else { let existingDiv = document.querySelector('.panel.bg2'); let newDiv = document.createElement('div'); newDiv.classList.add('panel', 'bg2'); existingDiv.parentNode.insertBefore(newDiv, existingDiv.nextSibling); newDiv.innerHTML = '

Alpinfans-Challenge

'+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();