(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();
}
})();
Ricky Tomlinson Wife: Is Ricky Tomlinson Married?: Born on September 26, 1939, Ricky Tomlinson, also known as Eric Tomlinson is an English actor.
He developed a passion for acting at a younger age and has been consistent throughout his career, becoming one of the most sought-after English actors.
A plasterer by trade, Tomlinson has worked on various building sites for many years and as an actor, he has starred in several television and films.
Ricky Tomlinson Wife: Is Ricky Tomlinson Married?
As of December 2023, Ricky Tomlinson has been married twice. In 1962, he married Marlene Tomlinson. They separated/divorced in 1986. Presently, it’s unknown to us why they split.
👉 For more insights, check out this resource.
In 1993, the English actor met social worker Rita Cummiskey, whom he married ten years later (January 4, 2003) and now works as his manager. They have been married for 20 years since 2003.
Tomlinson is best known for his television roles as Bobby Grant in the soap opera Brookside, DCI Charlie Wise in Cracker, and Jim Royle in The Royle Family.
👉 Discover more in this in-depth guide.
He played the titular character in the 2001 football mockumentary Mike Bassett: England Manager and appeared in Raining Stones and Hillsborough
The latter, a made-for-TV film about the families of the victims of the Hillsborough disaster, in which he portrayed John Glover, the father of victim Ian Glover.
His television appearances include; Play for Today, Crown Court, Boys from the Blackstuff, The Bill, Brookside, Dear Sarah, Cracker, The Fix, Dockers, Cold Feet, Hooves of Fire, Where the Buffalo Roam, Nice Guy Eddie, and Roughnecks.
His other television credits include; My Beautiful Son, Playing the Field, Nice Guy Eddie, Down to Earth, Stepdad, The Royle Family, Great Night Out, In the Flesh, The Last Dragonslayer, Matopulas, Clocking Off, and The Witchfinder.
In films, Tomlinson has starred in Out of Order, Riff-Raff, Butterfly Kiss, Bob’s Weekend, Life is All You Get, Preaching to the Perverted, Mojo, Nasty Neighbours, Lounge Act, Al’s Lads, The Virgin of Liverpool, Plenty More Fish, and Nativity!.
This year, he appeared at Eurovision 2023 reciting a poem dedicated to the Beatles. Tomlinson is also a keen banjo and harmonica player and has played the instruments in many episodes of The Royle Family.