Subversion Repositories wimsdev

Rev

Rev 9612 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. !if $wims_read_parm=$empty
  3.   !set tmp=wimstopbox
  4. !else
  5.   !set tmp=!word 1 of $wims_read_parm
  6. !endif
  7. <div class="wims_topback">
  8.     <a id="back-to-top" href="#$tmp" title="$wims_name_top_page"><span class="hidden_text">$wims_name_top_page</span></a>
  9. </div>
  10. !if $jquery_defined=yes
  11.   <script>
  12.     $$('#back-to-top').on('click', function(e) {
  13.       e.preventDefault();
  14.       $$('html,body').animate({
  15.         scrollTop: 0
  16.       }, 700);
  17.     });
  18.   </script>
  19. !endif