/home/suroeste/public_html/gorbus.transportessuroeste.com/suroeste/_lib/lib/js
NameSizeModeActions
bluebird.min.js815300644editdlrm
daterangepicker.min.js326080644editdlrm
frameControl.js31100644editdlrm
GoJS.js3930644editdlrm
GoJS_.js3930644editdlrm
hotkeys.inc.js102440644editdlrm
hotkeys_setup.js16700644editdlrm
jquery.fieldSelection.js26840644editdlrm
jquery.fileupload.js376890644editdlrm
jquery.iframe-transport.js77470644editdlrm
jquery.mask.min.js83270644editdlrm
jquery.scInput.js500520644editdlrm
jquery.scInput2.js425560644editdlrm
menu_structure.js6140644editdlrm
moment.min.js514650644editdlrm
multigrab.js238140644editdlrm
nm_form_mobile.js640290644editdlrm
nm_mobile.js861910644editdlrm
nm_modal_panes.jquery.js110900644editdlrm
nm_position.js18270644editdlrm
nm_touchfix.jquery.js23610644editdlrm
scInput.js17900644editdlrm
sc_custom_scrollbar.js158400644editdlrm
sortable.jquery.js22240644editdlrm
sortable.js1514540644editdlrm
sortable.min.js441360644editdlrm
toastr.js155680644editdlrm
Edit: /home/suroeste/public_html/gorbus.transportessuroeste.com/suroeste/_lib/lib/js/nm_position.js (1827B)
function sc_position(anchor, content) { sc_doHorizontalPosition(anchor, content); sc_doVerticalPosition(anchor, content); content.show(); } function sc_positionHorizontal(anchor, content) { sc_doHorizontalPosition(anchor, content); content.show(); } function sc_positionVertical(anchor, content) { sc_doVerticalPosition(anchor, content); content.show(); } function sc_doHorizontalPosition(anchor, content) { let windowWidth = $(window).width(); let anchorLeftRelative = anchor.offset().left - $(window).scrollLeft(); let anchorRightRelative = anchorLeftRelative + anchor.outerWidth(); let anchorLeftAbsolute = anchor.offset().left; let anchorRightAbsolute = anchorLeftAbsolute + anchor.outerWidth(); let contentWidth = content.outerWidth(); if (anchorLeftRelative + contentWidth > windowWidth) { content.css('left', (anchorRightAbsolute - contentWidth) + 'px'); } else { content.css('left', anchorLeftAbsolute + 'px'); } } function sc_doVerticalPosition(anchor, content) { let windowHeight = $(window).height(); let anchorTopRelative = anchor.offset().top - $(window).scrollTop(); let anchorBottomRelative = anchorTopRelative + anchor.outerHeight(); let anchorTopAbsolute = anchor.offset().top; let anchorBottomAbsolute = anchorTopAbsolute + anchor.outerHeight(); let contentHeight = content.outerHeight(); if (anchorBottomRelative + contentHeight > windowHeight) { content.css('top', (anchorTopAbsolute - contentHeight) + 'px'); } else { content.css('top', anchorBottomAbsolute + 'px'); } } function scrollToElement(el) { $([document.documentElement, document.body]).animate({ scrollTop: $(el).offset().top - 100 }, 200); }