PHP 8.3.31
Preview: file.js Size: 1.49 KB
/opt/cpanel/ea-wappspector/vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/Template/js/file.js

  $(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());
     }
    });
  });

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
61.10 KB lrw-r--r-- 2024-08-22 04:31:57
Edit Download
148.17 KB lrw-r--r-- 2024-08-22 04:31:57
Edit Download
1.49 KB lrw-r--r-- 2024-08-22 04:31:57
Edit Download
87.56 KB lrw-r--r-- 2024-08-22 04:31:57
Edit Download
212.71 KB lrw-r--r-- 2024-08-22 04:31:57
Edit Download
20.74 KB lrw-r--r-- 2024-08-22 04:31:57
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).