PageSourceSearch

https://www.msng.info/wp-content/themes/theme-1974/js/atama.js?ver=1.0.2

js msng.info collected 2026-09-24 08:57:41 UTC 1,670 bytes, 50 lines download raw bytes

1if (window.top != window.self) {
2	window.top.location = window.self.location;
3}
4
5jQuery(function() {
6	jQuery('.post-title-block').each(function() {
7		const postHeader = jQuery(this);
8		const postDate = postHeader.find('.post-date:first');
9
10        if (postDate.length) {
11            const postTitle = postHeader.find('.post-title:first');
12
13            if (postHeader.height() >= (postTitle.height() + postDate.height())) {
14                //重なってない
15                postDate.css('marginTop', '1px');
16            } else {
17                //重なってるから調整
18                var position = postDate.position();
19                var margin = postHeader.height()
20                    - (position.top - parseInt(postHeader.css('paddingTop')))
21                    - postDate.height()
22                    - parseInt(postDate.css('marginBottom'))
23                    - 1;
24                postDate.css('marginTop', margin + 'px');
25            }
26        }
27	});
28
29	const openers = document.getElementsByClassName('opener');
30
31	for (let i = 0; i < openers.length; i++) {
32		openers[i].addEventListener('click', (event) => {
33			const opener = event.currentTarget;
34			const target = jQuery(document.getElementById(opener.dataset.targetId));
35            const searchBox = document.getElementById('gsc-i-id1');
36
37			if (opener.dataset.status === 'closed') {
38				target.slideDown(200);
39				searchBox.focus();
40                searchBox.addEventListener('blur', () => {
41                    target.slideUp(200, () => {
42                        opener.dataset.status = 'closed';
43                    });
44                });
45				opener.dataset.status = 'open';
46			}
47		});
48
49	}
50});

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.