PageSourceSearch

https://lapri.info/sites/all/modules/ajax_register/js/ajax-register.js?tjh68w

js lapri.info collected 2026-10-08 13:29:43 UTC 875 bytes, 26 lines download raw bytes

1(function ($) {
2
3Drupal.behaviors.ajaxRegister = {
4  attach: function (context){
5
6    // Make modal window height scaled automatically.
7    $('.ctools-modal-content, #modal-content', context).height('auto');
8
9    // Position code lifted from http://www.quirksmode.org/viewport/compatibility.html
10    if (self.pageYOffset) { // all except Explorer
11      var wt = self.pageYOffset;
12    }
13    else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
14      var wt = document.documentElement.scrollTop;
15    }
16    else if (document.body) { // all other Explorers
17      var wt = document.body.scrollTop;
18    }
19
20    // Fix CTools bug: calculate correct 'top' value.
21    var mdcTop = wt + ( $(window).height() / 2 ) - ($('#modalContent', context).outerHeight() / 2);
22    $('#modalContent', context).css({top: mdcTop + 'px'});
23  }
24}
25
26})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.