Changeset 2083

Show
Ignore:
Timestamp:
11/02/06 19:40:32
Author:
miyagawa
Message:

count down

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Mixxi/trunk/root/about.tt

    r2082 r2083  
    11[% INCLUDE head.tt meta_refresh = url.url %] 
    2 Long URL: [% url.url | html %] (Redirect in 10 seconds)<br /> 
    3 Short URL: <a href="[% c.uri_for('/') %][% url.canon_path | html %]">[% c.uri_for('/') %][% url.canon_path | html %]</a><br /> 
     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> 
     6Long URL: [% url.url | html %]<br /> 
     7Short URL: <a href="[% c.uri_for('/') %][% url.canon_path | html %]">[% c.uri_for('/') %][% url.canon_path | html %]</a></p> 
    48 
    59<p><img src="[% c.uri_for('/qr/') %][% url.canon_path | html %]" /></p> 
     
    711<p><a href="[% c.uri_for('/url') %]">Create your own NOW!</a></p> 
    812 
     13<script language="JavaScript"> 
     14var timer = 10; 
     15setTimeout(countDown, 1000); 
     16function 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 
    925[% INCLUDE footer.tt %]