Wisconsin Off-Road Series
Wisconsin Off-Road Series
// Iterate all of them except the last one Object(a[c]) === a[c] // Does the key exist and is its value an object? // Yes: then follow that path ? a[c] // No: create the key. Is the next key a potential array-index? : a[c] = Math.abs(path[i + 1]) >> 0 === +path[i + 1] ? [] // Yes: assign a new array object : {}, // No: assign a new plain object obj)[path[path.length – 1]] = val; // Finally assign the value to the last key return obj; }; ACC.customVariables = {}; set(ACC.customVariables, ‘priceFormatter.locale.isoCode’, ‘en_US’); set(ACC.customVariables, ‘priceFormatter.currency.digits’, ‘2’); set(ACC.customVariables, ‘merchantIdentifier’, ‘merchant.com.trekbikes.us’); set(ACC.customVariables, ‘currentUserName’, ‘Anonymous’); set(ACC.customVariables, ‘currentUserEmail’, ‘anonymous’); set(ACC.customVariables, ‘occ.api.host’, ‘api.trekbikes.com’); set(ACC.customVariables, ‘priceFormatter.currency.isoCode’, ‘USD’); set(ACC.customVariables, ‘priceFormatter.currency.symbol’, ‘$’); ]]> child.innerText.trim() === “New lower price” || child.innerText.trim() === “Nouveau prix réduit” ); }); const locale = document.getElementById(“currentLocale”).value; NLPGroups.forEach((group) => { const children = Array.from(group.children); const productId = getProductId(group); if (!showLabel(productId, locale)) { group.remove(); } else { children.forEach((child) => { if ( child.innerText.trim() === “New lower price” || child.innerText.trim() === “Nouveau prix réduit” ) { const sibling = child.nextElementSibling || child.previousElementSibling; if (sibling) { child.classList.remove(“ml-1”); sibling.remove(); } } }); } group.classList.add(“opacity-100”); }); setTimeout(() => revealAllLabels(allGroups), 1000); } function revealAllLabels(allGroups) { allGroups.forEach((group) => { group.classList.add(“opacity-100”); }); } function getProductId(group) { const nearestAnchor = group.parentElement.parentElement.parentElement.querySelector(“a”); let prodId = null; if (nearestAnchor && nearestAnchor.hasAttribute(“href”)) { prodId = getProductIdFromUrl(nearestAnchor.getAttribute(“href”)); } else { const productElement = document.getElementById(“gtm-product-code”); if (productElement) { prodId = productElement.value; } } return prodId; } function getProductIdFromUrl(url) { const urlParts = url.split(“/p/”); if (urlParts.length > 1) { const productId = urlParts[1].split(“/”)[0]; return productId; } return null; } function showLabel(id, locale) { const canShow = localeCanShowNLP(locale); const common = [“41572”, “41684”, “36348”]; if (canShow) { if (common.includes(id)) { return true; } return isIdInArray(id) == (locale === “en_AU”); } else { return false } } function localeCanShowNLP(locale) { return [“en_US”, “en_CA”, “fr_CA”, “en_AU”].includes(locale); } function isIdInArray(id) { const ids = [ “41613”, “40773”, “40962”, “41217”, “41653”, “41658”, “47090”, “47095”, “47071”, “47072”, “47073”, “41587”, “41348”, “47131”, “47132”, “47141”, “41426”, “40894”, “40893”, “41346”, “41327”, “41668”, “47278”, “47302”, “47303”, “46143”, “46147”, “37056”, “40823”, “40824”, “40826”, “41572”, “41684”, “36348”, ]; return ids.includes(id); } window.addEventListener(“load”, () => { checkLabels(); const targetNode1 = document.querySelector(“[data-product-list]”); const targetNode2 = document.getElementById(“buying-zone”); const config = { childList: true, subtree: true }; const observer1 = new MutationObserver(checkLabels); const observer2 = new MutationObserver(checkLabels); if (targetNode1) { observer1.observe(targetNode1, config); } if (targetNode2) { observer2.observe(targetNode2, config); } }); window.addEventListener(“init-vue-dynamic-content”, () => { setTimeout(() => { checkLabels(); }, 700); });]]>
United States / English {{ $t(‘header.link.login’) }}
Ready to hit the trail? The Wisconsin Off-Road Series (WORS) is back with a collection of Midwest XC mountain bike races where you can scorch your legs, hang with friends, and soak in the vibes. WORS is America’s largest state MTB racing series and the longest-running, now entering its 32nd season of singletrack shenanigans. Tune up your bike and get your legs primed for a summer of full-weekend bike festivals at WORS.
No matter your background or ability, we’ve got family-friendly races waiting for you on Wisconsin’s finest trails.
May 2-4, 2025
Fall River, WI
May 16-18, 2025
Lake Geneva, WI
May 30 – June 1, 2025
Cambridge, WI
June 13-15, 2025
Wausau, WI
June 20-22, 2025
Waukesha, WI
July 11-13, 2025
Cable,WI
July 18-20, 2025
Rockford, IL
August 1-3, 2025
Green Bay, WI
August 15-17, 2025
La Crosse, WI
August 22-24, 2025
Waterloo, WI
{{ $t(‘productCompare.rack’) }} {{ $t(‘productCompare.startComparison’) }}
Source
About The Author
Discover more from
Subscribe to get the latest posts sent to your email.