Here is the code on the redirect page template <!DOCTYPE html> <html> <head> <script type="text/javascript"> document.write(unescape("%3Cscript src='//munchkin.marketo.net/munchkin-beta.js' type='text/javascript'%3E%3C/script%3E")); </script> <script> Munchkin.init('744-KEV-407'); // your Munchkin ID and options, obviously! </script> <script> (function(redirectTarget){ var allowedOrigins = [ ' http://pages.brainshark.com ', ' http://www.brainshark.com ', ' https://brainshark.com ', ' https://www.brainshark.com/resources/ ' ' http://offers.brainshark.com/ ', ], // which domains are allowed for redirection redirectMs = 3500, // how long before redirecting progressMs = 500, // how long between updates of the "progress meter" progressChar = '•', // progress character (HTML bullet) errNoAsset = 'Asset URL not found.', // message when no asset in hash errInvalidAsset = 'Asset URL not allowed.', // when asset not our domain progress = setInterval(function(){ if (redirectTarget) { document.body.insertAdjacentHTML('beforeend',progressChar); } else { clearInterval(progress), clearTimeout(redirect); document.body.insertAdjacentHTML('beforeend',errNoAsset); } }, progressMs), redirect = setTimeout(function(){ var redirectLoc = document.createElement('a'); redirectLoc.href = redirectTarget; redirectLoc.origin = redirectLoc.origin || [redirectLoc.protocol, '//', redirectLoc.hostname, ['http:','http:80','https:','https:443'] .indexOf(redirectLoc.protocol+redirectLoc.port) != -1 ? '' : ':' + redirectLoc.port ].join(''); clearInterval(progress); if (allowedOrigins.indexOf(redirectLoc.origin) != -1) { document.location.href = redirectTarget; } else { document.body.insertAdjacentHTML('beforeend',errInvalidAsset); } }, redirectMs); })(document.location.hash.substring(1)); </script> <meta charset="utf-8"> <meta class="mktoString" mktoName="Variable 1" id="var1" default="This is a variable"> <title></title> <style> body {background:#fff;} </style> </head> <body> </body> </html>
... View more