diff --git a/docs/_static/redirect.js b/docs/_static/redirect.js new file mode 100644 index 0000000..ef64464 --- /dev/null +++ b/docs/_static/redirect.js @@ -0,0 +1,44 @@ +/** + * Global redirect script for all documentation pages + * Redirects to the new domain while preserving the path + */ +(function() { + // Create and inject the migration notice banner + var banner = document.createElement('div'); + banner.id = 'migration-notice'; + banner.style.cssText = 'position: fixed; top: 0; left: 0; right: 0; background-color: #ff9800; color: white; padding: 20px; text-align: center; z-index: 9999; font-size: 18px; font-weight: bold;'; + banner.innerHTML = '⚠️ This page has been migrated to Adobe Developer Platform. You will be redirected in 10 seconds...'; + document.body.insertBefore(banner, document.body.firstChild); + + // Configure your new domain + var NEW_DOMAIN = 'https://developer.adobe.com/acrobat-sign'; + + // Get current path + var currentPath = window.location.pathname; + var pathMatch = currentPath.match(/\/acrobat-sign\/(.*)$/); + var relativePath = pathMatch ? pathMatch[1] : currentPath.replace(/^\//, ''); + + // Construct new URL + var newUrl = NEW_DOMAIN; + + // Countdown logic + var secondsLeft = 10; + var countdownElement = document.getElementById('countdown'); + + var countdownInterval = setInterval(function() { + secondsLeft--; + if (countdownElement) { + countdownElement.textContent = secondsLeft; + } + if (secondsLeft <= 0) { + clearInterval(countdownInterval); + } + }, 1000); + + // Redirect after 10 seconds + setTimeout(function () { + window.location.replace(newUrl); + }, 10000); +})(); + + diff --git a/docs/acrobat_sign_events/index.html b/docs/acrobat_sign_events/index.html index 42ab156..6cc0ec9 100644 --- a/docs/acrobat_sign_events/index.html +++ b/docs/acrobat_sign_events/index.html @@ -710,6 +710,7 @@