tripal_search_unigene.js 502 B

1234567891011121314151617181920
  1. //
  2. // Copyright 2009 Clemson University
  3. //
  4. if (Drupal.jsEnabled) {
  5. $(document).ready(function(){
  6. // Move to the result top
  7. var result_top = document.getElementById('tripal_search_unigene-result-top');
  8. if (result_top) {
  9. var target_offset = $("#tripal_search_unigene-result-top").offset();
  10. var target_top = target_offset.top;
  11. if (navigator.userAgent.indexOf('MSIE 8.0') !=-1) {
  12. target_top -= 60;
  13. }
  14. $('html, body').animate({scrollTop: target_top}, 1000);
  15. }
  16. });
  17. }