gliojs icon indicating copy to clipboard operation
gliojs copied to clipboard

Detect "top" event several times

Open fatihayyildiz opened this issue 9 years ago • 1 comments

Hi,

I am working with this project but when mouse leaves from top,callback function fire one time for each page (which is expected). But I am trying to detect every top leave event. For example second time when mouse to page out I want to fire callback function. How do I reach this ?

Thanks

fatihayyildiz avatar Jan 16 '17 14:01 fatihayyildiz

Hi. I also needed to reinit the plugin. No feature is available in the current code, but you can modify the plugin js. In glio.js line 20 we have the init: function() if you add before glio.methods = Array.prototype.slice.call(arguments); something like this: glio.statusTop = 'inactive' it will reset the popup everytime you call init.

here is what my fragment looks like: init: function ( ) { glio.statusTop = 'inactive' // return a Array with the methods glio.methods = Array.prototype.slice.call(arguments); And everytime I want to show the popup again I just call glio.init('...yoursettingshere...')

Jalokim avatar Jul 12 '17 13:07 Jalokim