var brand = {"id":"5aa997ca-e1a8-433a-89c3-2e80af78541f","name":"Euan Orlando","processId":"5bc8553b-d43e-4f50-b2e8-1779133cd3c0","hostname":"euanorlando.com","deploymentId":"bdef098c-d797-48a0-8852-f0caa76ab9c8","lastDeployment":"2025-07-12","timezone":"Pacific/Auckland","legal":{"privacy":{"html":"https://files.bmcweb.co.nz/legal/3b839250-b264-424e-af65-db0a66d02817","pdf":"https://bmcweb.co.nz/legal/3b839250-b264-424e-af65-db0a66d02817.pdf"}}}; var content = {"musicEvents":[{"image":"https://i.ibb.co/3y6N9LD7/image.png","venueName":"Observatory Hill","time":"2025-07-19 17:00","age":"All Ages","price":"Free"}]}; var loadStart = new Date().getTime(); localStorage.getItem("BWUID") || localStorage.setItem("BWUID", crypto.randomUUID()); sessionStorage.getItem("BWSID") || sessionStorage.setItem("BWSID", crypto.randomUUID()); sessionStorage.getItem("BWSS") || sessionStorage.setItem("BWSS", new Date().getTime()); var user = { id: localStorage.getItem("BWUID"), type: "user", country: "US" }; var viewDetails = { id: crypto.randomUUID(), originalUrl: window.location.href, cssImports: [] }; if (window.location.port) user.type = "developer"; var searchParams = {}; function updateSearchParams() { new URLSearchParams(window.location.search).forEach((value,param) => { searchParams[param] = value; }); }; updateSearchParams(); window.addEventListener("popstate", updateSearchParams); var token = {}; if (searchParams.token && searchParams.token.startsWith("ey")) { sessionStorage.setItem("ACTIVE_TOKEN", decodeURIComponent(escape(atob(searchParams.token)))); }; if (sessionStorage.getItem("ACTIVE_TOKEN")) token = JSON.parse(sessionStorage.getItem("ACTIVE_TOKEN")); var currentUrl = new URL(window.location.href); [ "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "utm_id", "utm_name", "utm_cid", "utm_reader", "utm_viz_id", "utm_pubreferrer", "utm_swu", "gclid", "fbclid", "msclkid", "dclid", "ref", "ref_src", "from", "src", "igshid", "mc_cid", "mc_eid", "trk", "trkCampaign", "mkt_tok", "token" ].forEach((key) => { if (currentUrl.searchParams.get(key)) currentUrl.searchParams.delete(key); }); if (currentUrl.href !== window.location.href) history.replaceState(null,null,currentUrl.href); var metadata = { "View Start": new Date().toJSON(), "View ID": viewDetails.id, "Session Start": sessionStorage.getItem("BWSS"), "Session ID": sessionStorage.getItem("BWSID"), "Brand Name": brand.name, "User Type": user.type, "User ID": user.id, "Process Version": brand.processId, "Deployment": brand.deploymentId }; var BMCWebScripts = { bulk: async function(data) { navigator.sendBeacon("https://api.bmcweb.co.nz/user/bulkLog", JSON.stringify({ data, brand, url: window.location.href, hostname: window.location.hostname, user, title: document.title, time: new Date().getTime(), session: sessionStorage.getItem("BWSID"), sessionStart: sessionStorage.getItem("BWSS"), size: { screen: [screen.width, screen.height], window: [window.innerWidth, window.innerHeight], document: [document.body?.scrollWidth, document.body?.scrollHeight] }, scroll: [window.scrollX, window.scrollY], referrer: document.referrer, timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone, timeOffset: new Date().getTimezoneOffset(), language: navigator.language, platform: navigator.platform, deviceMemory: navigator.deviceMemory || null, hardwareConcurrency: navigator.hardwareConcurrency || null, colorDepth: screen.colorDepth, orientation: screen.orientation?.type || null, cookiesEnabled: navigator.cookieEnabled, docHidden: document.hidden, viewDetails, pings: sessionStorage.getItem("BMCWEBAnalyticsPings") || "[]", performance: { loadTime: performance.getEntriesByType("navigation")[0].loadEventEnd, scriptLoad: 1078 }, metaTags: Array.from(document.querySelectorAll("meta")).map(meta => { var mt = {}; Array.from(meta.attributes).forEach((attr) => mt[attr.name] = attr.value); return mt; }), token: sessionStorage.getItem("ACTIVE_TOKEN"), metadata })); }, intervals: { analytics: function() { setTimeout(BMCWebScripts.intervals.analytics, 45000); BMCWebScripts.bulk(); } } }; function importCSS(url) { viewDetails.cssImports.push([url, new Date().getTime()]); var link = document.createElement("link"); link.rel = "stylesheet"; link.href = url; document.head.appendChild(link); }; if (!window["dataFill"]) var dataFill = {}; if (!window["datafill"]) var datafill = {}; function addToDataFill(key,str) { dataFill[key] = str; }; Object.keys(dataFill).forEach((key) => addToDataFill(key, dataFill[key])); Object.keys(datafill).forEach((key) => addToDataFill(key, datafill[key])); function getDataFill() { setTimeout(getDataFill, 1000); Object.keys(dataFill).forEach((key) => { function processDF(elem) { if (elem.innerHTML !== dataFill[key]) elem.innerHTML = dataFill[key]; }; document.querySelectorAll(`[data-fill="${key}"]`).forEach(processDF); document.querySelectorAll(`[datafill="${key}"]`).forEach(processDF); document.querySelectorAll(`[dataFill="${key}"]`).forEach(processDF); document.querySelectorAll(`[fill-data="${key}"]`).forEach(processDF); document.querySelectorAll(`[filldata="${key}"]`).forEach(processDF); }); }; getDataFill(); var domFinished = false; var domDuration; document.addEventListener("DOMContentLoaded",function(){ domFinished = true; domDuration = new Date().getTime() - loadStart; }); function getDOMFinished(callback) { if (!domFinished) { if (callback && typeof callback === "function") setTimeout(function(){ getDOMFinished(callback) }, 100); return; }; callback({ duration: domDuration }); }; console.log(`Hey Developer!\n${brand.hostname} is made by BMC Web!\nMore details at https://bmcweb.co.nz`); getDOMFinished(BMCWebScripts.intervals.analytics); function logAnalyticsPing(action) { var arr = sessionStorage.getItem("BMCWEBAnalyticsPings") ? JSON.parse(sessionStorage.getItem("BMCWEBAnalyticsPings")) : []; arr.push({ action, id: crypto.randomUUID().split("-")[0], time: new Date().getTime(), url: window.location.href, title: document.title, hidden: document.hidden, scroll: [window.scrollX, window.scrollY], view: viewDetails.id }); sessionStorage.setItem("BMCWEBAnalyticsPings", JSON.stringify(arr)); }; window.addEventListener("popstate", function(){ logAnalyticsPing("popstate") }); window.addEventListener("focus", function(){ logAnalyticsPing("focus") }); window.addEventListener("blur", function(){ logAnalyticsPing("blur") }); window.addEventListener("click", function(){ logAnalyticsPing("click") }); async function getAuthKey() { var req = await fetch("https://api.bmcweb.co.nz/user/authKey",{ method: "POST", body: JSON.stringify({ id: localStorage.getItem("BWUID") }) }); req = await req.json(); return req; }; var allInputs = []; function runInputChecks() { function fixInput(elem) { elem.setAttribute("bmcinputkey", elem.getAttribute("bmcinputkey") || crypto.randomUUID()); var item = { id: elem.getAttribute("bmcinputkey"), value: elem.value, visibility: elem.checkVisibility(), type: elem.tagName || elem.tag }; var val = allInputs.findIndex((e) => e.id === item.id); val === -1 ? allInputs.push(item) : allInputs[val] = item; }; document.querySelectorAll("input").forEach(fixInput); document.querySelectorAll("select").forEach(fixInput); document.querySelectorAll("textarea").forEach(fixInput); }; window.addEventListener("popstate", runInputChecks); document.addEventListener("DOMContentLoaded", runInputChecks); runInputChecks(); importCSS("https://scripts.bmcweb.co.nz/import?site=5aa997ca-e1a8-433a-89c3-2e80af78541f&type=style");