PageSourceSearch

https://www.ubs-sumitrust.com/wp-content/themes/UBS47/assets/js/library/contact-form7-confirm.js

js ubs-sumitrust.com collected 2026-10-06 05:34:13 UTC 2,202 bytes, 51 lines download raw bytes

1$(document).ready(function(){
2	
3	var $wpcf7 = $(".wpcf7");
4	var $cfConfirm = $(".wpcf7c-btn-confirm");
5	if($wpcf7.length > 0) { // contactfrom7がある時
6		if($wpcf7.find('.wpcf7-form-control-wrap').length > 0) {
7			$cfConfirm.on("click", function() { // 確認ボタンをクリック
8				var $cfwrap = $wpcf7.find('.wpcf7-form-control-wrap')
9				$cfwrap.each(function(index, el) { // フォームが複数ある時用
10					$this = $(el);
11					if ($this.find("textarea").length > 0) { // textarea
12						var thisVal = $this.find("textarea").val(); // textareaのvalを取得
13						thisVal = thisVal.replace(/\n/g, "<br />"); // textareaの改行を補完
14					}else if ($this.find("select").length > 0) { // select
15						var thisVal = $this.find("option:selected").val(); // selectのvalを取得
16					}else if ($this.find('input[type="checkbox"]').length > 0) { // checkbox
17						var thisVal;
18						$this.find('input[type="checkbox"]:checked').each(function(i, ele) { // 選択されたcheckboxを取得
19							if (i === 0) { // 取得したval用にspanタグを生成
20								thisVal = "<span class='confirm'>"
21								thisVal += $(ele).val();
22							}else{
23							thisVal += "</span><span class='confirm'>";
24							thisVal += $(ele).val();
25							}
26							if (i == ele.length - 1) {
27								thisVal += "</span>";
28							}
29						});
30					}else if ($this.find('input[type="radio"]').length > 0) { // 選択されたradioを取得
31						var thisVal = $this.find('input[type="radio"]:checked').val(); // 選択されたradioのvalを取得
32					}else{
33						var thisVal = $this.find("input").val(); // 入力されたinputのvalを取得
34					}
35					if (!$this.next(".confirm").length > 0) { // 確認画面用のval表示用のspanを生成
36						$this.after('<span class="confirm"></span>');
37					}
38					// console.log(thisVal);
39					$this.next(".confirm").empty(); // confirmの中身を空っぽに
40					$this.next(".confirm").html(thisVal); // confirmの中にvalを入れる
41				});
42			});
43		}
44	}
45	
46	var $wpcf_back = $(".wpcf7c-btn-back");
47	$wpcf_back.on("click", function(){
48		$(".wpcf7-form").removeClass('custom-wpcf7c-confirmed'); // 確認画面で付与される.failedを削除
49	});
50
51});

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.