o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1379639354.473978: @value"· {I" class:EFI"BundledAsset;FI"logical_path;FI""heart/jquery.betterTooltip.js;TI" pathname;FI"c/Users/cwabbott/work/innovationtime/heart/app/assets/javascripts/heart/jquery.betterTooltip.js;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-09-07T16:02:09+09:00;FI" length;FiÆ I" digest;F"%a9cbe6f5944e1ea99398572e34af3c69I" source;FI"Æ /*------------------------------------------------------------------------------- A Better jQuery Tooltip Version 1.0 By Jon Cazier jon@3nhanced.com 01.22.08 -------------------------------------------------------------------------------*/ $.fn.betterTooltip = function(options){ /* Setup the options for the tooltip that can be accessed from outside the plugin */ var defaults = { speed: 200, delay: 300 }; var options = $.extend(defaults, options); /* Create a function that builds the tooltip markup. Then, prepend the tooltip to the body */ getTip = function() { var tTip = "
" + "
" + "
" + "
" + "
"; return tTip; } $("body").prepend(getTip()); /* Give each item with the class associated with the plugin the ability to call the tooltip */ $(this).each(function(){ var $this = $(this); var tip = $('.tip'); var tipInner = $('.tip .tipMid'); var tTitle = (this.title); this.title = ""; var offset = $(this).offset(); /* Mouse over and out functions*/ $this.hover( function() { offset = $(this).offset(); tipInner.html(tTitle); setTip(offset.top, offset.left); setTimer(); }, function() { stopTimer(); tip.hide(); } ); /* Delay the fade-in animation of the tooltip */ setTimer = function() { $this.showTipTimer = setInterval("showTip()", defaults.delay); } stopTimer = function() { clearInterval($this.showTipTimer); } /* Position the tooltip relative to the class associated with the tooltip */ setTip = function(top, left){ var topOffset = tip.height(); var xTip = (left-50)+"px"; var yTip = (top-topOffset-42)+"px"; tip.css({'top' : yTip, 'left' : xTip}); } /* This function stops the timer and creates the fade-in animation */ showTip = function(){ stopTimer(); tip.animate({"opacity": "toggle"}, defaults.speed); } }); }; function showTooltip(x, y, contents) { $('
' + contents + '
').css( { position: 'absolute', display: 'none', top: y + 5, left: x + 5, padding: '10px', 'line-height': '12px', 'text-shadow': '0px -1px 1px rgba(0, 0, 0, .8)', 'max-width': '240px', color: 'white', 'font-size':'12px', 'background-color': '#c63929', border: '2px solid #951100', '-moz-border-radius': '5px', '-webkit-border-radius': '5px', 'border-radius': '5px', '-moz-box-shadow': 'inset 0px 0px 0px 1px rgba(255, 115, 100, 0.4), 0 2px 6px #333', '-webkit-box-shadow': 'inset 0px 0px 0px 1px rgba(255, 115, 100, 0.4), 0 2px 6px #333', 'box-shadow': 'inset 0px 0px 0px 1px rgba(255, 115, 100, 0.4), 0 2px 6px #333' }).appendTo("body").fadeIn(0); } ; ;FI"required_assets_digest;F"%51c5ec36dd1b51c23e0b657c2cea2a01I" _version;F"%ffd318ca8b794f42f5029101c2cf5d91