0
|
1 java()
|
|
2 local Io = require "luan:Io.luan"
|
|
3 local Http = require "luan:http/Http.luan"
|
|
4 local HtmlViewUtils = require "java:nabble.view.lib.HtmlViewUtils"
|
|
5
|
|
6
|
|
7 return function()
|
|
8 local p = Http.request.parameters.p or "0"
|
|
9 Io.stdout = Http.response.text_writer()
|
|
10 %>
|
|
11 <!DOCTYPE html>
|
|
12 <html>
|
|
13 <head>
|
|
14 <meta name="robots" content="noindex,nofollow">
|
|
15 <title>New Tab</title>
|
|
16 <% HtmlViewUtils.googleAnalytics(Http.response.java.getWriter()) %>
|
|
17 <script>
|
|
18 var p = <%=p%>;
|
|
19 function trk_fn() {
|
|
20 setTimeout(function(){
|
|
21 top.location = '/end.luan?p=' + (p+1) + '#__';
|
|
22 },60000);
|
|
23 }
|
|
24 if( p >= 10 )
|
|
25 trk_fn = null;
|
|
26 </script>
|
|
27 <script src="/trk5.js"></script>
|
|
28 </head>
|
|
29 <body>
|
|
30 </body>
|
|
31 </html>
|
|
32 <%
|
|
33 end
|