root/Mixxi/trunk/root/about.tt

Revision 2083 (checked in by miyagawa, 13 years ago)

count down

Line 
1 [% INCLUDE head.tt meta_refresh = url.url %]
2
3 <p>Redirecting in <span id="timer">10</span> seconds. <img src="[% c.uri_for('/static/images/') %]spinner_mac.gif" style="valign:middle" /></p>
4
5 <p>
6 Long URL: [% url.url | html %]<br />
7 Short URL: <a href="[% c.uri_for('/') %][% url.canon_path | html %]">[% c.uri_for('/') %][% url.canon_path | html %]</a></p>
8
9 <p><img src="[% c.uri_for('/qr/') %][% url.canon_path | html %]" /></p>
10
11 <p><a href="[% c.uri_for('/url') %]">Create your own NOW!</a></p>
12
13 <script language="JavaScript">
14 var timer = 10;
15 setTimeout(countDown, 1000);
16 function countDown() {
17   timer = timer - 1;
18   if (timer <= 0) return;
19   document.getElementById('timer').innerHTML = timer;
20   setTimeout(countDown, 1000);
21 }
22 </script>
23
24
25 [% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the browser.