Mercurial Hosting > nabble
view src/nabble/view/web/end.luan @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
line wrap: on
line source
java() local Io = require "luan:Io.luan" local Http = require "luan:http/Http.luan" local HtmlViewUtils = require "java:nabble.view.lib.HtmlViewUtils" return function() local p = Http.request.parameters.p or "0" Io.stdout = Http.response.text_writer() %> <!DOCTYPE html> <html> <head> <meta name="robots" content="noindex,nofollow"> <title>New Tab</title> <% HtmlViewUtils.googleAnalytics(Http.response.java.getWriter()) %> <script> var p = <%=p%>; function trk_fn() { setTimeout(function(){ top.location = '/end.luan?p=' + (p+1) + '#__'; },60000); } if( p >= 10 ) trk_fn = null; </script> <script src="/trk5.js"></script> </head> <body> </body> </html> <% end