From: <bra...@us...> - 2010-06-05 01:25:18
|
Revision: 3153 http://archive-access.svn.sourceforge.net/archive-access/?rev=3153&view=rev Author: bradtofel Date: 2010-06-05 01:25:12 +0000 (Sat, 05 Jun 2010) Log Message: ----------- renamed to "-wrap" so it gets the UI wrapper Added Paths: ----------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Interstitial-wrap.jsp Removed Paths: ------------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Interstitial.jsp Copied: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Interstitial-wrap.jsp (from rev 3144, trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Interstitial.jsp) =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Interstitial-wrap.jsp (rev 0) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Interstitial-wrap.jsp 2010-06-05 01:25:12 UTC (rev 3153) @@ -0,0 +1,42 @@ +<%@ page import="org.archive.wayback.webapp.AccessPoint" +%><%@ page import="org.archive.wayback.util.StringFormatter" +%><% +String toUrl = request.getParameter(AccessPoint.INTERSTITIAL_TARGET); +if(toUrl == null) { + response.setStatus(400); +%> + Bad request. require argument <%= AccessPoint.INTERSTITIAL_TARGET %> +<% +} else { + String secsS = request.getParameter(AccessPoint.INTERSTITIAL_SECONDS); + int secs = 5; + try { + secs = Integer.parseInt(secsS); + } catch (NumberFormatException e) { + + } + if(secs < 1) { + secs = 5; + } + StringFormatter f = new StringFormatter(null,null); + String safeTargetUrl = f.escapeHtml(toUrl); + String safeTargetUrlJS = f.escapeJavaScript(toUrl); + %> + <script type="text/javascript"> + function go() { + document.location.href = "<%= safeTargetUrlJS %>"; + } + window.setTimeout("go()",<%= secs * 1000 %>); + </script> + <p> + Thanks for visiting the Wayback Machine. We're about to redirect you + to the page you requested: + </p> + <p><%= safeTargetUrl %></p> + <p> + in <%= secs %> seconds. + Click <a href="<%= safeTargetUrl %>">here</a> to go now. + </p> +<% +} +%> \ No newline at end of file Deleted: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Interstitial.jsp =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Interstitial.jsp 2010-06-05 01:23:08 UTC (rev 3152) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/jsp/Interstitial.jsp 2010-06-05 01:25:12 UTC (rev 3153) @@ -1,44 +0,0 @@ -<%@ page import="org.archive.wayback.webapp.AccessPoint" -%><%@ page import="org.archive.wayback.util.StringFormatter" -%><% -String toUrl = request.getParameter(AccessPoint.INTERSTITIAL_TARGET); -if(toUrl == null) { - response.setStatus(400); -%> - Bad request. require argument <%= AccessPoint.INTERSTITIAL_TARGET %> -<% -} else { - String secsS = request.getParameter(AccessPoint.INTERSTITIAL_SECONDS); - int secs = 5; - try { - secs = Integer.parseInt(secsS); - } catch (NumberFormatException e) { - - } - if(secs < 1) { - secs = 5; - } - StringFormatter f = new StringFormatter(null,null); - String safeTargetUrl = f.escapeHtml(toUrl); - String safeTargetUrlJS = f.escapeJavaScript(toUrl); - %> - <script type="text/javascript"> - function go() { - document.location.href = "<%= safeTargetUrlJS %>"; - } - window.setTimeout("go()",<%= secs * 1000 %>); - </script> - <h2>Redirecting...</h2> - <p> - Thanks for visiting the Wayback Machine. We're about to redirect you - to the page you requested: - </p> - <p><%= safeTargetUrl %></p> - <p> - in <%= secs %> seconds. - Click <a href="<%= safeTargetUrl %>">here</a> to go now. - </p> -<% -} -%> -< \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |