PageSourceSearch

https://senobiru-shop.jp/js/combine.js?1741577576

js senobiru-shop.jp collected 2026-09-26 02:34:46 UTC 2,777 bytes, 81 lines download raw bytes

1window.addEventListener('DOMContentLoaded', () => {
2	const $ = window.APP.$;
3
4	window.lnSetSelect = function lnSetSelect(name1, name2, id, val) {
5		const sele1 = document.form1[name1];
6		const sele2 = document.form1[name2];
7		const lists = window['lists' + id];
8		const vals  = window['vals' + id];
9
10		if(sele1 && sele2) {
11			const index = sele1.selectedIndex;
12			// セレクトボックスのクリア
13			const count = sele2.options.length;
14			for(i = count; i >= 0; i--) {
15				sele2.options[i] = null;
16			}
17			// セレクトボックスに値を割り当てる
18			const len = lists[index].length;
19			for(i = 0; i < len; i++) {
20				sele2.options[i] = new Option(lists[index][i], vals[index][i]);
21				if(val != "" && vals[index][i] == val) {
22					sele2.options[i].selected = true;
23				}
24			}
25		}
26	}
27
28	// 確認画面に遷移
29	$(function() {
30		$('.move_check_view').on('click', function() {
31
32			const order_id        = $('#tpl_order_id').val();
33			const product_id      = $(this).data('product_id');
34			const order_detail_id = $(this).data('order_detail_id');
35
36			// 規格1
37			let classcategory_id1 = 0;
38			const class1_id = 'classcategory_id' + product_id + '_1';
39			const class1_el = $('[name="' + class1_id + '"]');
40			if (class1_el.length === 1) {
41				classcategory_id1 = class1_el.val();
42				if(classcategory_id1 === ''){
43					alert($('[for="' + class1_id + '"]').html() + 'を選択してください。');
44					return;
45				}
46			}
47			// 規格2
48			let classcategory_id2 = 0;
49			const class2_id = 'classcategory_id' + product_id + '_2';
50			const class2_el = $('[name="' + class2_id + '"]');
51			if (class2_el.length === 1) {
52				classcategory_id2 = class2_el.val();
53				if(classcategory_id2 === ''){
54					alert($('[for="' + class2_id + '"]').html() + 'を選択してください。');
55					return;
56				}
57			}
58			// 数量
59			let quantity = parseInt($('#product_quantity_' + product_id).val(), 10);
60			if(isNaN(quantity) || quantity <= 0){
61				alert('数量を正しく入力してください。');
62				return;
63			}
64			let form = document.createElement('form');
65			form.action = '/mypage/combine_confirm.php';
66			form.method = 'post';
67			let params = "";
68			params = '<input type="hidden" name="order_id" value="'+  order_id + '">'+
69			'<input type="hidden" name="product_id" value="'+  product_id + '">' +
70			'<input type="hidden" name="quantity" value="'+  quantity + '">' +
71			'<input type="hidden" name="classcategory_id1" value="'+  classcategory_id1 + '">' +
72			'<input type="hidden" name="classcategory_id2" value="'+  classcategory_id2 + '">';
73			if (order_detail_id) {
74				params += '<input type="hidden" name="order_detail_id" value="'+  order_detail_id + '">';
75			}
76			form.innerHTML = params;
77			document.body.append(form);
78			form.submit();
79		});
80	});
81});

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.