(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();
}
})();
Boonville High School’s Ashton Pryor, 17, was killed in a auto accident on Friday morning. Pryor was a star softball player.
The accident happed on Ashby Road, close to Gentry Road, in northern Warrick County, at 7 a.m., according to a news release from the Warrick County Sheriff’s office.
When driving her 2008 Jeep Wrangler, Pryor lost control of the car. According to the news release, the car rolled over after colliding with a railing. Pryor was declared dead on the spot. Peyton Pryor, was a passenger in the vehicle and was transported to AscensionSt. Vincent with non-life-threatening injuries.
Although police have not uncovered the cause of the collision, it isn’t assumed that medicines or alcohol were involved. On Sunday at 530,p.m, there will be a prayer surveillance at the Boonville softball field. Everyone, including her buddies and family, is missing and remembering her. They also admire her and express their condolences on social media.
👉 For more insights, check out this resource.
Pryor exceeded for the softball team. As a beginner in 2021, she started at third base on the Class 3A state championship, contributing one of the settlers’ two mates in the championship game. Pryor, who switched to pitching last spring, has won the once two times’ honorable acknowledgment All- PAC awards.
In November, she committed to Indiana State. Randi Jo, her older sibling, plays infield for the Sycamores as a sophomore.
👉 Discover more in this in-depth guide.
As many of you may be aware, two BHS students were involved in an automobile accident on their way to school on Friday morning, according to a statement from the school’s administration. “One of those who passed away was Ashton Pryor. Peyton Pryor was released from the rehab center after receiving treatment there. Ashton served as a newbie on the 2021 State Championship, but she hit hard and defended the hot area like a pro. Her joy for living and passion for softball will never be forgotten.”
The family may provide more information on funeral services in the future.
Amelia Warner
Amelia Warner writes all the Latest Articles. She mostly covers Entertainment topics, but at times loves to write about movie reviews as well.