PHP Classes

File: tests/_reports/coverage/.js/file.js

Recommend this page to a friend!
  Classes of Vurghus Minar   PHP Configuration Loader   tests/_reports/coverage/.js/file.js   Download  
File: tests/_reports/coverage/.js/file.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Configuration Loader
Load configuration from YAML files into arrays
Author: By
Last change:
Date: 7 years ago
Size: 1,453 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); $target.data('popover-hover', true); // popover already displayed if ($target.next('.popover').length) { return; } // show the popover $target.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($target); } }) .addClass('popover-initialized'); }, 'mouseleave.popover': function () { hidePopover($(this)); } }); });