(function () {
// 1) Basic bot filter (extend if you like)
function isBot() {
return /(bot|crawl|spider|google|bing|slurp|yandex|facebook|linkedin|pinterest|preview|whatsapp|discord|telegram|headless|puppeteer)/i
.test(navigator.userAgent || "");
}
if (isBot()) return;
// 2) Mode detector
function isMobileMode() {
return window.matchMedia("(max-width: 767px)").matches ||
/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent || "");
}
// 3) Your ad configs (swap keys/sizes to match your network units)
const AD = {
mobile: { key: "aa6d52a6037d0558c2a19dc52b6aa824", width: 320, height: 50 }, // 320x50
desktop: { key: "a49752dcde88f4fde5987d25efbb7168", width: 468, height: 60 } // 468x60
};
// 4) Create container if it doesn't exist
function ensureContainer() {
let container = document.getElementById("ad-container");
if (!container) {
container = document.createElement("div");
container.id = "ad-container";
container.style.display = "none";
document.body.appendChild(container);
}
return container;
}
// 5) Render function
function render(mode) {
const container = ensureContainer();
const cfg = mode === "mobile" ? AD.mobile : AD.desktop;
// Set global atOptions for ad network
window.atOptions = {
key: cfg.key,
format: "iframe",
height: cfg.height,
width: cfg.width,
params: {}
};
// Clear previous ad/script then inject
container.innerHTML = "";
container.style.display = "block";
const s = document.createElement("script");
s.src = `//selfportraitproved.com/${cfg.key}/invoke.js`;
s.async = true;
container.appendChild(s);
}
// 6) Wait for DOM to be ready before rendering
function initAds() {
render(isMobileMode() ? "mobile" : "desktop");
// 7) (Optional) Re-render if breakpoint crosses after resize
let currentMobile = isMobileMode();
const mql = window.matchMedia("(max-width: 767px)");
if (mql.addEventListener) {
mql.addEventListener("change", (e) => {
const nowMobile = e.matches;
if (nowMobile !== currentMobile) {
currentMobile = nowMobile;
render(currentMobile ? "mobile" : "desktop");
}
});
} else if (mql.addListener) { // older browsers
mql.addListener((e) => {
const nowMobile = e.matches;
if (nowMobile !== currentMobile) {
currentMobile = nowMobile;
render(currentMobile ? "mobile" : "desktop");
}
});
}
}
// 8) Execute when DOM is ready
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", initAds);
} else {
initAds();
}
})();
Steven Paulson Obituary, Death – It is with heavy hearts that we remember the life of Steven R. Paulson, a beloved husband, father, and a true motorcycle enthusiast. Born on January 10, 1955, in Madison, Wisconsin, he was the son of Richard B. Paulson and Eleanor V. Paulson. Steve’s life was one marked by enduring love, resilience, and a passion for the open road. One of the most beautiful chapters of Steve’s life began on March 30, 1974, when he married his middle school sweetheart, Paula L. Garfoot. Their love story was a testament to the power of lifelong commitment and devotion. For over 40 years, he proudly introduced Paula as “My Bride,” a reflection of the deep love and connection they shared.
Tragically, Steve’s life was cut short as a result of injuries sustained while doing what he loved most – riding his cherished 2003 Harley Ultra Classic. He was not just a motorcycle enthusiast; he was an experienced rider with 44 years of riding under his belt. Steve’s passion for motorcycles was a defining aspect of his identity, and he found pure joy and freedom on the open road. Steve’s journey was one marked by resilience. In 2013, he faced and triumphed over kidney cancer, a testament to his strength and determination. He also battled heart disease with the same unwavering spirit, proving that he was a fighter through and through.
Beyond his love for motorcycles, Steve had a creative side. He enjoyed winemaking and took pride in beer making, with his label affectionately named “Grama No Toes” in honor of Paula’s grandmother, Clara. In celebrating Steve’s life, we remember a man whose spirit was as untamed as the wind on the open road. His love for Paula, his passion for motorcycles, and his resilience in the face of adversity are the enduring legacies that he leaves behind. The memory of Steve R. Paulson reminds us to cherish our loved ones, pursue our passions with vigor, and to embrace each day as a new adventure on life’s open highway.