PageSourceSearch

https://www.hiroshima-u.ac.jp/themes/custom/hu_theme/js/common.js?v=1.x

js hiroshima-u.ac.jp collected 2026-10-02 08:46:39 UTC 2,271 bytes, 82 lines download raw bytes

1jQuery(function($) {
2	$(function() {
3
4		$('.dynamic-margin').each(function() {
5			var self = $(this);
6			var top = $(self.attr('data-dynamic-margin-influencers-selector')).height();
7			self.css({
8				'margin-top': top,
9				'visibility': 'visible'
10			});
11			if (self.attr('data-dynamic-margin-set-container-min-height')) {
12				self.parent().css('min-height', top + self.outerHeight());
13			}
14			$(self.attr('data-dynamic-margin-influencers-selector') + ' img').on('load', function() {
15				var top = $(self.attr('data-dynamic-margin-influencers-selector')).height();
16				self.css('margin-top', top);
17				if (self.attr('data-dynamic-margin-set-container-min-height')) {
18					self.parent().css('min-height', top + self.outerHeight());
19				}
20			});
21		});
22
23		var windowResizeTimer = false;
24		$(window).resize(function() {
25			if (windowResizeTimer !== false) {
26				clearTimeout(windowResizeTimer);
27			}
28			windowResizeTimer = setTimeout(function() {
29				$('.dynamic-margin').each(function() {
30					var self = $(this);
31					var top = $(self.attr('data-dynamic-margin-influencers-selector')).height();
32					self.css('margin-top', top);
33					if (self.attr('data-dynamic-margin-set-container-min-height')) {
34						self.parent().css('min-height', top + self.outerHeight());
35					}
36				});
37			}, 5);
38		});
39
40		$('#right-menu').sidr({
41			name : 'sidr-right',
42			side : 'right'
43		});
44
45		$("#serchBtn").click(function() {
46			$("#pcSearch").fadeIn();
47		});
48
49		$("#serchClose").click(function() {
50			$("#pcSearch").fadeOut();
51		});
52
53		$("#languageBtn").click(function() {
54			$("#pclanguage").fadeIn();
55		});
56
57		$("#languageClose").click(function() {
58			$("#pclanguage").fadeOut();
59		});
60
61		var selectNewsTab = function(index) {
62			var input = $('#selectedNewsTabIndex');
63			index = (index === undefined) ? input.val() : index;
64			input.val(index);
65			$('#newsTabs-content .newsTab').css('display','none').eq(index).css('display','block');
66			$('#newsTabs-nav li').removeClass('selected').eq(index).addClass('selected');
67		};
68
69		selectNewsTab();
70
71		$('#newsTabs-nav li').click(function() {
72			selectNewsTab($('#newsTabs-nav li').index(this));
73		});
74
75		var items = $('#hospitalTarget .item');
76		if (items.matchHeight) {
77			items.matchHeight();
78		}
79
80		$('img[usemap]').rwdImageMaps();
81	});
82});

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.