Team:Freiburg/Templates/html/js.html

From 2014.igem.org

(Difference between revisions)
Line 157: Line 157:
     });
     });
 +
</script>
 +
 +
<script src="/Team:Freiburg/js/jquery.qtip.min.js?action=raw&ctype=text/javascript"></script>
 +
<script>
 +
  $('.ttip').each(function(){
 +
    var $this = $(this);
 +
    $(this).qtip({
 +
      content: {
 +
        text: $($this.data('content')).html(),
 +
        title: $this.data('title'),
 +
      },
 +
      style: { classes: 'qtip-dark' },
 +
      hide: {
 +
        fixed: true,
 +
        delay: 350,
 +
        effect: function() {
 +
          $(this).fadeTo(100, 0);
 +
        }
 +
      },
 +
      show: {
 +
        effect: function() {
 +
          $(this).fadeTo(100, 1);
 +
        }
 +
      }
 +
    });
 +
  })
</script>
</script>

Revision as of 12:04, 13 October 2014