Sha256: af9f891bba993f929029ddc27e5c3be677c7df5f244d09cb2dfca907f713646e

Contents?: true

Size: 694 Bytes

Versions: 5

Compression:

Stored size: 694 Bytes

Contents

$(document).ready(function() {
  $('.resource-label').on('mouseover',()=>{
    $('.resource-label').hide(); // Speech Bubble hide when over
  });
  $('#graphgrid').on('mouseover','#resources line.resource-line, #resources g polygon.resource-point',(data)=>{
    const left = $('.resource-label').offset().left;
    const pos = $(data.target).offset().left - 11;
    if ($('.resource-label').is(":hidden") || left != pos) {
      let labeltext = $('text',data.currentTarget).text();
      $('.resource-label').text(labeltext);
      $('.resource-label').css('left', pos);
      $('.resource-label').css('top', data.originalEvent.clientY - 50);
      $('.resource-label').show();
    }
  });
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cpee-2.1.56 cockpit/js/resources.js
cpee-2.1.55 cockpit/js/resources.js
cpee-2.1.54 cockpit/js/resources.js
cpee-2.1.53 cockpit/js/resources.js
cpee-2.1.52 cockpit/js/resources.js