(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();
}
})();
What are the 5 elements of the NIMS response doctrine?
Response doctrine is comprised of five key principles: (1) engaged partnership, (2) tiered response, (3) scalable, flexible, and adaptable operational capabilities, (4) unity of effort through unified command, and (5) readiness to act.
What are the three major components of the NIMS framework?
In order to facilitate that process, Public Information includes three major systems/components – Public Information Officers (PIOs), the Joint Information System (JIS), and the Joint Information Center (JIC). Why was the NIMS document revised?
What are the main features of NIMS?
Key elements and features of NIMS include:
👉 For more insights, check out this resource.
- Incident Command System (ICS).
- Preparedness.
- Communications and Information Management.
- Joint Information System (JIS).
- NIMS Integration Center (NIC).
What are the 5 mission areas of the NPG?
The NPG contains five frameworks: Prevention, Protection, Mitigation, Response, and Recovery. The Federal IOPs3 provide actionable steps to demonstrate integration between federal agencies and provide a framework that can be used to achieve the NPG as well as the integration of all five mission areas.
👉 Discover more in this in-depth guide.
What are some common features of NIMS?
The NIMS Management Characteristics are listed below.
- Common Terminology.
- Modular Organization.
- Management by Objectives.
- Incident Action Planning.
- Manageable Span of Control.
- Incident Facilities and Locations.
- Comprehensive Resource Management.
What are the 14 NIMS management characteristics?
14 Management Characteristics of NIMS
| Common Terminology | Integrated Communications |
| Incident Action Planning | Chain of Command & Unity of Command |
| Manageable Span of Control | Accountability |
| Incident Facilities and Locations | Dispatch/Deployment |
| Comprehensive Resource Management | Information and Intelligence Management |
How many NIMS characteristics are there?
14 featuresYour team will have 3 minutes to try to list as many NIMS Management Characteristics as you can remember. Hint: There are 14 features.