PageSourceSearch

https://atlanttumen.ru/bitrix/templates/aspro-allcorp3medc/js/phones.js

js atlanttumen.ru collected 2026-09-28 18:14:26 UTC 1,114 bytes, 28 lines download raw bytes

1$(document).ready(function () {
2  $('.phones__inner').hover(
3      function(e) {
4          let rect = $(this)[0].getBoundingClientRect();
5          let $dropdown = $(this).find('.phones__dropdown');
6          if ($dropdown.length) {
7              let dropdown_rect = $dropdown[0].getBoundingClientRect();
8              let dropdown_top = -20;
9              let dropdown_left = -16;
10  
11              if (dropdown_rect.right > document.body.clientWidth) {
12                  $dropdown.css('left', (document.body.clientWidth - dropdown_rect.right + dropdown_left) + 'px');
13              }
14              // else {
15              //     $dropdown.css('left', dropdown_left + 'px');
16              // }
17  
18              if ($(this).closest('.footer__phone').length){
19                  if ((window.scrollY + rect.y + dropdown_top + $dropdown[0].scrollHeight) <= document.body.clientHeight) {
20                      $dropdown.removeClass('phones__dropdown--top');
21                  } else {
22                      $dropdown.addClass('phones__dropdown--top');
23                  }
24              }
25          }
26      }
27  );
28});    

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.