PageSourceSearch

http://tokyo-inn.co.jp/js/search.js

js tokyo-inn.co.jp collected 2026-10-07 04:13:01 UTC 2,172 bytes, 81 lines download raw bytes

1$(function(){
2
3	var rsv = {
4		$form : $('#obj_search'),
5		$date : [$('#obj_year'), $('#obj_day')],
6		$datepicker : $('#datepicker')
7	}
8
9	rsv.$form.submit(function(){
10		var target = this;
11		ga(function(tracker) {
12			var linker = new window.gaplugins.Linker(tracker);
13			target.action = linker.decorate(target.action);
14		});
15	});
16
17	//datepicker
18	rsv.$datepicker.datepicker({
19		monthNames : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
20		monthNamesShort : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
21		dayNames : ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],
22		dayNamesMin : ['日','月','火','水','木','金','土'],
23		dateFormat : 'yy/mm/dd',
24		nextText : '次へ', 
25		prevText : '前へ',
26		showOtherMonths : true,
27		selectOtherMonths : true,
28		firstDay : 0,
29		isRTL : false,
30		showMonthAfterYear : true,
31		yearSuffix : 'å¹´',
32		numberOfMonths : 2,
33		minDate : '+0d',
34		onSelect : function(dateText, inst) {
35			var arrDate = dateText.split('/');
36			rsv.$date[0].val(arrDate[0] + '-' + arrDate[1]);
37			rsv.$date[1].val(arrDate[2]);
38		}
39	});
40
41	rsv.$form.find('.select li').click(function(){
42		var index = $(this).index() + 1;
43		$(this).addClass('active').siblings().removeClass('active').parent().prev().find('em').html(index);
44		$(this).parent().next().val(index);
45		$(this).parent().slideToggle(300).prev().removeClass('active');
46	});
47
48	$doc.click(function(){
49		if(rsv.$form.find('.accordion').is('.active')) {
50			rsv.$form.find('.accordion').removeClass('active').next().slideUp();
51		}
52	});
53
54	rsv.$form.find('.accordion').click(function(e){
55		$(this).parent().parent().siblings().find('.accordion').removeClass('active').next().slideUp();
56	    e.stopPropagation();	    
57	});
58
59	$w.superResize({
60		//resize
61		resizeAfter : function(){
62			if(abi.sp) {
63				rsv.$datepicker.datepicker("option", "numberOfMonths", 1);
64			}else {
65				rsv.$datepicker.datepicker("option", "numberOfMonths", 2);
66			}
67		}
68	});
69
70});
71
72//検索
73function submitForm(el) {
74	$(el).submit();
75	return false;
76}
77
78function change(act) {
79	document.search_frm.action = act;
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.