PHP Classes

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

Recommend this page to a friend!
  Classes of Okanlawon Anuoluwapo   Crud HTTP PHP Curl Request   vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Template/js/file.js   Download  
File: vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Template/js/file.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Crud HTTP PHP Curl Request
Send HTTP requests to perform CRUD operations
Author: By
Last change:
Date: 8 months 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()); } }); });