PageSourceSearch

https://mlr-pharma.ru/bitrix/templates/concept_hameleon/js/size-resize.js

js mlr-pharma.ru collected 2026-09-29 19:15:36 UTC 1,178 bytes, 65 lines download raw bytes

1/*for footer in slide menu*/
2function size_slide_menu()
3{
4  
5  var win_h = $(window).height();
6  var tit_h = $('.slide-menu .head-wrap').outerHeight();
7  var cont_h = $('.slide-menu .menu-content').outerHeight();
8  var foot_h = $('.slide-menu .foot-wrap').outerHeight();
9
10  var total_h = tit_h + cont_h + foot_h;
11
12  if(win_h > total_h)
13  {
14    $('.slide-menu .inner').css({'min-height': win_h + 'px'});
15  }
16
17  else
18  {
19    $('.slide-menu .inner').css({'min-height': total_h + 'px'});
20  }
21
22}
23
24/*for resize modal video*/
25function resize_video_modal() 
26{
27    var win_height = $(window).height();
28    var modal = 505;
29    
30    if($(window).width() < 767)
31    {
32      modal = 300;
33    }
34    
35    if(win_height>modal)
36    {
37      var margin_top = (win_height - modal)/2;
38      $("div.video-modal.in div.modal-dialog").css({'margin-top': margin_top + 'px'});
39    }
40    else
41    {
42      $("div.video-modal.in div.modal-dialog").css({'margin-top': 0 + 'px'});
43    }
44   
45}
46
47$(document).ready(
48  function()
49  {
50  	resize_video_modal();
51	  size_slide_menu();
52    
53  }
54);
55
56
57/* $(window).resize(
58//   function()
59//   {
60//   	size_slide_menu();
61//   	resize_video_modal();
62    
63// 	}
64// );*/
65

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.