<!-- YOUR PIPELINE ROI LINK -->
<!-- Add the class "external-disclosure-link" to any link you want to trigger the popup -->
<a href="https://pipelineroi.com" class="external-disclosure-link">Visit Pipeline ROI</a>
<!-- DISCLOSURE POPUP MODAL -->
<div id="disclosureModal" class="disclosure-overlay" role="dialog" aria-modal="true" aria-labelledby="modalTitle">
<div class="disclosure-modal">
<h3 id="modalTitle">You Are Leaving Our Website</h3>
<p>
You are about to visit <strong>Pipeline ROI</strong>, a third-party website not operated or controlled by us. We are not responsible for the content, privacy policies, or security practices of external websites.
</p>
<div class="disclosure-actions">
<button type="button" class="btn-cancel" id="cancelRedirect">Stay Here</button>
<a href="#" id="confirmRedirect" class="btn-continue" target="_blank" rel="noopener noreferrer">Continue to Pipeline ROI</a>
</div>
</div>
</div>
<!-- JAVASCRIPT TO HANDLE THE POPUP -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const modal = document.getElementById("disclosureModal");
const confirmBtn = document.getElementById("confirmRedirect");
const cancelBtn = document.getElementById("cancelRedirect");
const externalLinks = document.querySelectorAll(".external-disclosure-link");
// Open modal when link is clicked
externalLinks.forEach(function (link) {
link.addEventListener("click", function (event) {
event.preventDefault(); // Stop immediate navigation
const targetUrl = this.getAttribute("href");
confirmBtn.setAttribute("href", targetUrl); // Set the URL on the continue button
modal.style.display = "flex";
});
});
// Close modal when "Stay Here" is clicked
cancelBtn.addEventListener("click", function () {
modal.style.display = "none";
});
// Close modal after clicking "Continue"
confirmBtn.addEventListener("click", function () {
modal.style.display = "none";
});
// Close modal if user clicks outside the box
modal.addEventListener("click", function (event) {
if (event.target === modal) {
modal.style.display = "none";
}
});
});
</script>
<