PageSourceSearch

https://www.yhg.co.jp/mailformpro4311/mfp.statics/thanks.js

js yhg.co.jp collected 2026-10-02 14:35:04 UTC 1,642 bytes, 53 lines download raw bytes

1// Thanks 
2var mfpGET = new Object();
3
4function mfpSanitizing(str){
5	var before = new Array('&','"',"'","<",">","\n","\t","\\n");
6	var after = new Array('&amp;','&quot;','&rsquo;',"&lt;","&gt;","<br />"," ","<br />");
7	for(var i=0;i<before.length;i++)
8		str = str.replace(new RegExp(before[i],'g'), after[i]);
9	return str;
10}
11function mfpClearCookie(){
12	var current_dir = location.pathname;
13	var current_dirs = new Array();
14	current_dirs = current_dir.split("/");
15	if(current_dirs[current_dirs.length-1] != ""){
16		current_dirs[current_dirs.length-1] = "";
17		current_dir = current_dirs.join("/");
18	}
19	document.cookie = '_MFP=; path=' + current_dir + '; expires=';
20}
21
22mfpClearCookie();
23if(location.search){
24	var gets = new Array();
25	gets = (location.search.substring(1,location.search.length)).split('&');
26	for(var i=0;i<gets.length;i++){
27		var get = new Array();
28		get = gets[i].split('=');
29		mfpGET[decodeURI(get[0])] = mfpSanitizing(decodeURI(get[1]));
30	}
31}
32
33if(mfpGET['no']){
34	document.write('<div id="mfp_thanks">受付番号&nbsp;<strong>'+mfpGET['no']+'</strong>&nbsp;を受け付けました</div>');
35}
36
37
38
39// Thanks Page Module Example
40function mfpJsonCall(src){
41	var script = document.createElement('script');
42	script.async = false;
43	script.type = 'text/javascript';
44	script.src = src;
45	script.charset = 'UTF-8';
46	document.body.appendChild(script);
47}
48function mfpThanksPageCallback(json){
49	if(json){
50    document.location.href = 'https://www.yhg.co.jp/contents/yh_thanks.html?email=' + json['email'];
51	}
52}
53mfpJsonCall('https://www.yhg.co.jp/mailformpro4311/mailformpro/mailformpro_yh.cgi?module=thanks&callback=mfpThanksPageCallback');

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.