PageSourceSearch

https://marukawamiso.com/wp/wp-content/themes/marukawa/js/about.js?20260924220634

js marukawamiso.com collected 2026-09-24 22:06:59 UTC 3,713 bytes, 127 lines download raw bytes

1// JavaScript Document
2$(function() {
3  $('#post img')
4  .each(function(){
5	$(this).wrap("<span class=\"post-imgbox\"></span>");
6  })
7  
8  $('#post h3:first').addClass("mT0");
9});
10
11
12
13// ITEM PAGE ERORR ($KAZ[] == "0")
14$(function(){
15	$("#cartin_form").submit(function(){
16
17		if ($("#select_cool").length > 0) { // #select_coolが存在する場合
18			if ($("#select_cool").val() == "Y") {
19				$(".COO").val("Y");
20			} else {
21				$(".COO").val("");
22			}
23		}
24	
25		//エラーの初期化
26		$("p.error").remove();
27		$("dl dd").removeClass("error");
28		var item_count = 0;
29		
30		$("#cartin_form select").filter(".validate").each(function(){
31			if ($(this).val() != ""){
32				item_count = 1;
33			}
34		}) ;
35		
36		// 桶がないか調べる、麹市販菌がないか調べる、酒ページじゃないか調べる
37		var oke_flag = 0 ;
38		var kouji_flag = 0 ;
39		
40		var sake_flag = "" ;
41		if ( $("#sake_page").val()=="Y" ){ sake_flag = "Y" ; }
42		
43		$("#cartin_form .NAM").each(function(){
44			var temp_arr = $(this).val().split("木桶");
45			if (temp_arr[0] == "桶職人の手作り"){
46				oke_flag = 0; // ← 桶のアラートを出すにはここを0以外にする
47			}
48			if ( $(this).val().match(/市販菌/) ) {
49				kouji_flag = 1; // ← 市販菌のアラートを出すにはここを0以外にする
50			}
51		}) ;
52
53		
54		var msg = "" ;
55		if (item_count == 0){
56			$(".sub-button").prepend("<p class='error' style= \"color:red\">数量を指定して下さい</p>");
57			return false;
58			
59		} else if(oke_flag){ // 桶があった場合の確認メッセージ
60			msg = "桶職人の手作り木桶は、受注生産のため約2ヶ月~3ヶ月ほどお時間をいただいております。\n\n他の商品を一緒にご注文される場合、\nすべて木桶と同時発送となります。\n\n分割発送をご希望の場合には、\nお手数ですが木桶とは別に\nご注文いただきますようお願い申し上げます。\n\n買い物かごに入れてもよろしいですか?" ;
61			if (confirm(msg)){
62		
63				//エラーの場合の処理
64				if($("p.error").size() > 0){
65					$('html,body').animate({ scrollTop: $("p.error:first").offset().top-400},'slow');
66					$("p.error").parent().addClass("error");
67					return false;
68				}
69			
70			} else {
71				return false ;
72			}
73	
74	
75		} else if(kouji_flag){ // 麹があった場合の確認メッセージ
76			msg = "この麹は従来の麹とは異なり、市販の麹菌(味噌菌)を使って作られた麹になります。これまで同様、味噌、甘酒、塩麹作りにお使いいただけます。\n\nこのままお買い物カゴに入れてもよろしいですか?" ;
77			if (confirm(msg)){
78		
79				//エラーの場合の処理
80				if($("p.error").size() > 0){
81					$('html,body').animate({ scrollTop: $("p.error:first").offset().top-400},'slow');
82					$("p.error").parent().addClass("error");
83					return false;
84				}
85			
86			} else {
87				return false ;
88			}
89		} else if (sake_flag=="Y"){
90			if (confirm("お客様は二十歳以上でしょうか?")){
91			
92			} else {
93				return false;
94			}
95		}
96		
97	}) ;
98	
99	$("#cartin_form_set").submit(function(){
100	
101		var sake_flag = $("#sake_page").val() ;
102		
103		if (sake_flag=="Y"){
104			if (confirm("お客様は二十歳以上でしょうか?")){
105			
106			} else {
107				return false;
108			}
109		}
110		
111	}) ;
112
113	
114	
115	// 成分チャート表示	
116    $(".graph-view-btn div").click(function() {
117        $(this).addClass("on");
118        $(this).siblings().removeClass("on");
119    });
120    $(".graph-view-btn #btn-graph-view").click(function() {
121        $(".item-list-graph").show() ;
122    });
123    $(".graph-view-btn #btn-item-view").click(function() {
124        $(".item-list-graph").hide() ;
125    });
126	
127})

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.