PageSourceSearch

https://nagomi-group.jp/_lib/owl/address.js

js nagomi-group.jp collected 2026-10-08 00:04:26 UTC 1,392 bytes, 43 lines download raw bytes

1$(document).ready(function(){
2	$(document).on('click','.zip2addr',function(){
3		var closest=$(this).closest('.input_address');
4
5		$.getJSON(
6			"/_lib/owl/address/zip2addr.html"
7			,{zip:closest.find('input.zip1').val()+closest.find('input.zip2').val()}
8			, function(){}
9		).success(function(data) {
10			closest.find('select.prefectures').val(data['prefecture']);
11
12			closest.find('input.address1').val(data['address1']+data['address2']);
13
14			$.ajax({
15				url:'/_lib/owl/address/select_city_options.html'
16					+'?pref='+encodeURIComponent(data['prefecture'])
17					+'&selected='+encodeURIComponent(data['address1'])
18				,type: 'GET'
19				,contentType: "application/x-www-form-urlencoded;charset=UTF-8"
20				,success:function(data){
21					closest.find('select.city').html(data);
22				}
23			});
24			
25			closest.find('input.address').val(data['address2']);
26		}).error(function(jqXHR, textStatus, errorThrown) {
27			alert("郵便番号から住所の取得が出来ませんでした。");
28		});
29	});
30
31	$(document).on('change','.input_address select.prefectures',function(){
32		var closest=$(this).closest('.input_address');
33		$.ajax({
34			url:'/_lib/owl/address/select_city_options.html?pref='+encodeURIComponent($(this).val())
35			,type: 'GET'
36			,contentType: "application/x-www-form-urlencoded;charset=UTF-8"
37			,success:function(data){
38				closest.find('select.city').html(data);
39			}
40		});
41		
42	});
43});

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.