PageSourceSearch

https://www.yoasobiweb.com/js/x_form.js

js yoasobiweb.com collected 2026-10-07 00:08:27 UTC 1,675 bytes, 81 lines download raw bytes

1$(function() {
2	// locked
3	locked = false;
4
5	// form
6	$fm = $('#fm');
7
8
9	// a.btn_del
10	$('a.btn_del').click(function(){
11		if(!confirm("このデータを削除してよろしいですか?")){
12			return false;
13		}
14	});
15
16	// button
17	$("button, input:button, input:submit", $fm).click(function(){
18		$(this).blur();
19	});
20
21	if($("#fm input[name=preview]").length){
22		// button
23		$("#fm input[name=preview]").click(function(){
24
25			var site_url = $fm.find("input[name=site_url]").val();
26			var prev_action = $fm.find("input[name=preview_action]").val();
27
28			$("input[name=action]").val(prev_action);
29
30			//別窓を出し、その別窓にpost情報を渡す
31			window.open("http://www.orgdevelop.localhost/", "preview", ' scrollbars=yes');
32
33			var doc = window.document.prev_form;
34
35			doc.target = "preview";
36			doc.method = "post";
37			doc.action = site_url + prev_action + ".html";
38			doc.submit();
39		});	
40
41		// submit
42		$("#fm input[name=confirm]").click(function(){
43
44			var deff_action = $fm.find("input[name=deff_action]").val();
45			$("input[name=action]").val(deff_action);
46			$("#fm").attr("action", "./");
47
48			$fm.submit(function(){
49				if (!locked) {
50					locked = true;
51					$fm.ajaxSubmit({
52						dataType: 'script',
53						success: function(res){
54							locked = false;
55							//alert(res);
56						}
57					});
58				}
59				return false;
60			});
61		});
62	} else {
63
64		$fm.submit(function(){
65			if (!locked) {
66				locked = true;
67				$fm.ajaxSubmit({
68					dataType: 'script',
69					success: function(res){
70						locked = false;
71						//alert(res);
72					}
73				});
74			}
75			return false;
76		});
77	}
78
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.