PageSourceSearch

https://www.tanomail.com/common-tano/js/by-d/sh/doiyoShoKakuninModal.js?v=20260910-434

js tanomail.com collected 2026-09-25 20:37:14 UTC 2,596 bytes, 93 lines download raw bytes

1$(document).ready(function() {
2
3	var checked = false;
4	var target;
5	var doiyoShoInfoList = [];
6	var index = 0;
7	var lastIndex = 0;
8
9	doiyoShoKakuninModal = {
10		checked:function () {
11			// チェック済判定
12			if(checked) {
13				// チェック済
14				checked = false;
15				return true;
16			}
17			// チェック未 
18			return false;
19		},
20		setTarget:function (_target) {
21			// ターゲット設定
22			target = _target;
23		},
24		setData:function (_doiyoShoInfoList) {
25			// インデックス初期化
26			index = 0;
27			lastIndex = _doiyoShoInfoList.length - 1;
28			// データ設定
29			doiyoShoInfoList = _doiyoShoInfoList;
30		},
31		firstCheck:function () {
32			// チェック済判定
33			if(checked) {
34				// チェック済
35				return true;
36			}
37			// チェック未 
38			return false;
39		}
40	}
41
42	// 初期表示処理
43	tano.d.cm_sh.sh_modal.init_modal_function['doiyo-sho-kakunin-modal'] = function() {
44
45		// 許諾メッセージ設定
46		dispdoiyoShoInfo();
47
48		// カートに入れるボタン押下処理
49		$("#cartinBuy").on("click", function() {
50			if (index == lastIndex) {
51				// すべての許諾メッセージを確認した場合
52				checked = true;
53				$(".tano-modal-close:visible:first").trigger("click");
54				$(target).trigger("click");
55			} else {
56				// 次の許諾メッセージを表示
57				index ++;
58				$(".tano-modal-close:visible:first").trigger("click");
59				setTimeout(function(){
60					$("#tano-d-sh-doiyo-sho-kakunin-modal-link").trigger("click");
61				},700);
62			}
63			return false;
64		});
65	}
66
67	// 許諾メッセージ表示
68	function dispdoiyoShoInfo() {
69		var doiyoShoInfo = doiyoShoInfoList[index];
70		// 商品名
71		$("#tano-d-od-sho-kakunin-main-doiyo-sho-nm").text(doiyoShoInfo.shoNm);
72		// 商品名リンク
73		$("#tano-d-od-sho-kakunin-main-doiyo-sho-nm").attr('href', '/product/' + doiyoShoInfo.chumonNo + '/');
74		// 同意書題名
75		var doishoTitle = doiyoShoInfo.doishoTitle;
76		if(!doishoTitle || doishoTitle.trim() === ""){
77			$('#tano-d-od-sho-kakunin-main-doisho-title').hide();
78		} else {
79			$("#tano-d-od-sho-kakunin-main-doisho-title").html(doishoTitle);
80		}
81		// 同意契約書情報
82		$("#tano-d-od-sho-kakunin-main-doi-keiyaku-info").html(doiyoShoInfo.doiKeiyakuInfo);
83	}
84
85	//ダウンロード販売 使用許諾(モーダル)の同意チェック
86	$('body').on('change', "#agreementBuy", function () {
87		if ($(this).prop('checked')) {
88			$('#cartinBuy').prop('disabled', false).attr('src', '/common-tano/img/btn-l-cart.png');
89		} else {
90			$('#cartinBuy').prop('disabled', true).attr('src', '/common-tano/img/btn-l-disabled.png');
91		}
92	});
93});

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.