mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
17 lines
484 B
JavaScript
17 lines
484 B
JavaScript
//jQuery for child window where parent window has jquery-nap-1.0.0.js running
|
|
//These functions add a listener to the child window and call the parent window when movement detected
|
|
|
|
$(window).mousemove(function() {
|
|
parent.jQuery.fn.nap.interaction();
|
|
});
|
|
$(window).keyup(function() {
|
|
parent.jQuery.fn.nap.interaction();
|
|
});
|
|
$(window).mousedown(function() {
|
|
parent.jQuery.fn.nap.interaction();
|
|
});
|
|
|
|
$(window).scroll(function() {
|
|
parent.jQuery.fn.nap.interaction();
|
|
});
|