PHP Classes

File: src/vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Template/js/file.js

Recommend this page to a friend!
  Classes of walid laggoune   QPHP   src/vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Template/js/file.js   Download  
File: src/vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Template/js/file.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: QPHP
Exchange messages with a queue server using Swoole
Author: By
Last change:
Date: 2 years ago
Size: 1,529 bytes
 

Contents

Class file image Download
$(function() { var $window = $(window) , $top_link = $('#toplink') , $body = $('body, html') , offset = $('#code').offset().top , hidePopover = function ($target) { $target.data('popover-hover', false); setTimeout(function () { if (!$target.data('popover-hover')) { $target.popover('hide'); } }, 300); }; $top_link.hide().click(function(event) { event.preventDefault(); $body.animate({scrollTop:0}, 800); }); $window.scroll(function() { if($window.scrollTop() > offset) { $top_link.fadeIn(); } else { $top_link.fadeOut(); } }).scroll(); $('.popin') .popover({trigger: 'manual'}) .on({ 'mouseenter.popover': function () { var $target = $(this); var $container = $target.children().first(); $target.data('popover-hover', true); // popover already displayed if ($target.next('.popover').length) { return; } // show the popover $container.popover('show'); // register mouse events on the popover $target.next('.popover:not(.popover-initialized)') .on({ 'mouseenter': function () { $target.data('popover-hover', true); }, 'mouseleave': function () { hidePopover($container); } }) .addClass('popover-initialized'); }, 'mouseleave.popover': function () { hidePopover($(this).children().first()); } }); });