PageSourceSearch

https://ehime-np.co.jp/article/resource/pagination.js?8

js ehime-np.co.jp collected 2026-09-24 17:39:12 UTC 1,477 bytes, 48 lines download raw bytes

1(function($) {
2
3	$(function(){
4
5		// -- 定数 ------------------------------------------------------------------
6
7		// -- 状態変数 --------------------------------------------------------------
8
9		// -- キャッシュオブジェクト ------------------------------------------------
10
11		// -- イベント --------------------------------------------------------------
12		$('.js_pagination .js_page a').click(function() {
13			var $this, $page, $form;
14			var gotoPage, currentPage, href;
15
16			$this = $(this);
17			$page = $this.closest('.js_page');
18			$form = $page.closest('.js_pagination');
19
20			gotoPage = $page.attr('data-page');
21			if (gotoPage === 'next' || gotoPage === 'prev') {
22				currentPage = parseInt($page.siblings('.this').attr('data-page'), 10);
23				gotoPage = (gotoPage === 'next') ? (currentPage + 1) : (currentPage - 1);
24			}
25
26			$form.find('.js_to_page').val(gotoPage);
27
28			href = $form.attr('action');
29			// href += (/\?/.test(href)) ? '&' : '?';
30			// href += 'page=' + gotoPage;
31			$form.attr('action', href).submit();
32			return false;
33		});
34
35		// Submit時に不要なGETパラメータを無効にする
36		$('form.js_pagination').submit(function() {
37			var method = $(this).attr('method');
38			if (method !== 'POST' && method !== 'post') {
39				$(this).find(':input').each(function(index) {
40					if ($(this).val() == '') {
41						$(this).prop('disabled', true);
42					}
43				});
44			}
45		});
46	});
47
48})(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.