PageSourceSearch

https://www.goo-net.com/common_v2/js/common.js?171128

js goo-net.com collected 2026-10-01 10:29:51 UTC 16,268 bytes, 514 lines download raw bytes

1var $ = jQuery;
2
3var UA = navigator.userAgent;
4var isIE6 = (UA.indexOf('MSIE 6') > -1)?true:false;
5var isIE7 = (UA.indexOf('MSIE 7') > -1)?true:false;
6var isIE8 = (UA.indexOf('MSIE 8') > -1)?true:false;
7var isIE9 = (UA.indexOf('MSIE 9') > -1)?true:false;
8var isChrome = (UA.toLowerCase().indexOf('chrome') > -1)?true:false;
9
10$(function () {
11
12	$('#topics .tabContents > div > div').not('#aTopicsNew').hide();
13
14	// watermark
15	$('form').each(function(){
16		var input = $(this).find('.search input[type=text]');
17		var value = $(this).find('.search input[type=text]').val();
18		input
19			.focus(function(){
20				if($(this).val() == value) {
21					$(this).addClass('focus').val('');
22				}
23				if($(this).val() == '') {
24					$(this).addClass('focus');
25				}
26			})
27		 .blur(function(){
28				if($(this).val() == '') {
29					$(this).removeClass('focus').val(value);
30				}
31			});
32		$(this).find('.search input[type=button]').click(function(){
33			if ( input.val() == value || input.val() == ('') ) {
34			input.val('');
35			return false;
36		}
37		});
38		$(this).find('.search a').click(function(){
39			if ( input.val() == value || input.val() == ('')) {
40				input.val('');
41				return false;
42			}
43		});
44	});
45
46	// note_message
47	$("#main .note_message span.close").click(function(){
48		$(this).parent().parent().slideToggle();
49	});
50
51	$('a[href^=#top]').click(function() {
52	    var speed = 500; // ¥ß¥êÉÃ
53	    var href = $(this).attr("href");
54	    var target = $(href == "#" || href == "" ? 'html' : href);
55	    var position = target.offset().top;
56	    $('body,html').animate({
57	        scrollTop: position
58	    }, speed, 'swing');
59	    return false;
60	});
61
62	$('.hover').live({
63		mouseover: function(){
64			$(this).attr('src',$(this).attr('src').replace(/^(.+)_off(\.[a-z]+)$/,'$1_on$2'));
65		},
66		mouseout: function(){
67			$(this).attr('src',$(this).attr('src').replace(/^(.+)_on(\.[a-z]+)$/,'$1_off$2'));
68		}
69	});
70
71	$('.btn_hover').live({
72		mouseover: function(){
73			$(this).attr('src',$(this).attr('src').replace(/^(.+)_off(\.[a-z]+)$/,'$1_on$2'));
74		},
75		mouseout: function(){
76			$(this).attr('src',$(this).attr('src').replace(/^(.+)_on(\.[a-z]+)$/,'$1_off$2'));
77		},
78		mousedown: function(){
79			$(this).attr('src',$(this).attr('src').replace(/^(.+)_on(\.[a-z]+)$/,'$1_active$2'));
80		},
81		mouseup: function(){
82			$(this).attr('src',$(this).attr('src').replace(/^(.+)_active(\.[a-z]+)$/,'$1_off$2'));
83		}
84	});
85
86	$('.btn_roundGray,.btn_roundGrayB,.btn_roundBlue,.btn_roundBlueB,.btn_roundGreen,.btn_roundGreenB,.btn_roundRed,.btn_roundRedB,.btn_roundOrange,.btn_roundOrangeB').live({
87		mouseover: function(){
88			$(this).children().addClass('bg_hover');
89		},
90		mouseout: function(){
91			$(this).children().removeClass('bg_hover');
92		},
93		mousedown: function(){
94			$(this).children().addClass('bg_active');
95		},
96		mouseup: function(){
97			$(this).children().removeClass('bg_active');
98		}
99	});
100
101	// popup
102	$("#contents .popup_shopMovie").click(function(){
103		var thisUrl = $(this).attr('href');
104		window.open(thisUrl,'shop_movie','width=600,height=600,resizable=yes,scrollbars=yes');
105		return false;
106	});
107
108	// kantanSearch
109	var slideSpeed = 200;
110	var tabLinks = $('#kantanSearch .select ul').find('a');
111
112	tabLinks.click(function(){
113		var n = $(this).attr('href');
114		$(n).siblings('div').hide();
115		if($('#kantanSearch .outer').css('display') == 'none'){
116			$('#kantanSearch .outer').slideDown(slideSpeed);
117			$('#kantanSearch').addClass('open');
118		}else{
119			$('#kantanSearch').addClass('open');
120			if($(n).css('display') == 'block'){
121				$('#kantanSearch .outer').slideUp(slideSpeed , function(){
122					$('#kantanSearch').removeClass('open');
123				});
124			}
125		}
126		$(n).show().siblings('div').hide();
127		$(this).parents('li').addClass('current').siblings().removeClass('current');
128		return false;
129	});
130
131	$('#kantanSearch .slideSwitch').click(function(){
132		if($('#kantanSearch .outer').css('display') == 'none'){
133			$('#kantanSearch .outer').slideDown(slideSpeed);
134			$('#kantanSearch').addClass('open');
135		}else{
136			$('#kantanSearch .outer').slideUp(slideSpeed , function(){
137				$('#kantanSearch').removeClass('open');
138			});
139		}
140	});
141
142	// error box_searchOpinion
143	$('#main .box_searchOpinion .close a').click(function () {
144		var openBox = $(this).parent().parent();
145		openBox.toggle();
146		openBox.next().toggle();
147		return false;
148	});
149
150	// label img
151	if ($.browser.msie) {
152		$('label > img').click(function () {
153			$('#'+$(this).parent().attr('for') ).focus().click();
154		});
155	}
156
157
158	// close balloon
159	$('.balloonPriceOpen').click(function(){
160		if($(this).prev().css('display')=='block'){
161			$(this).prev().hide();
162		}else{
163			$('.balloonPriceInner').css('z-index','5');
164			var thisZIndex = $('.balloonPriceInner').css('z-index');
165				thisZIndex = parseInt(thisZIndex) + 5;
166			$(this).prev().css('z-index',thisZIndex);
167			$(this).prev().show();
168		}
169		return false;
170	});
171
172	$('.balloonPrice img.close').click(function(){
173		$(this).parent().parent().parent().parent().hide();
174	});
175
176	//¤«¤ó¤¿¤ó¸¡º÷summay.phpÍÑ
177	// add message
178	//$('#resultArea .itemDetail .addList .btn_roundBlueB').click(function(){
179	$('#resultArea .box_item_detail .application .btn_compareBlueZ').click(function(){
180/*		$(this).parents('.application').wrap($('<div class="txt_addMessage"></div>'));
181		$(this).parents('.txt_addMessage').append('<span class="message">¤ªµ¤¤ËÆþ¤ê¤ËÄɲä·¤Þ¤·¤¿</span>')
182		$(this).hide();
183		if(isIE6 | isIE7){
184			$(this).next().css('display','inline');
185		}else{
186			$(this).next().css('display','inline-block');
187		}
188*/
189		return false;
190	});
191  	//µì¥Ú¡¼¥¸¸þ¤±
192	$('#resultArea .itemDetail .addList .btn_roundBlueB').click(function(){
193		//$(this).parents('.application').wrap($('<div class="txt_addMessage"></div>'));
194 		$(this).parents('.itemDetail').wrap($('<div class="txt_addMessage"></div>'));
195		$(this).parents('.txt_addMessage').append('<span class="message">¤ªµ¤¤ËÆþ¤ê¤ËÄɲä·¤Þ¤·¤¿</span>')
196		$(this).hide();
197		if(isIE6 | isIE7){
198			$(this).next().css('display','inline');
199		}else{
200			$(this).next().css('display','inline-block');
201		}
202		return false;
203	});
204
205	$( window ).scroll( function (){
206		txt_addMessageDelete();
207	});
208
209	$( window ).resize( function (){
210		txt_addMessageDelete();
211	});
212
213	function txt_addMessageDelete(){
214		// ¤«¤ó¤¿¤ó¸¡º÷summary.phpÍÑ
215		if(($('#resultArea .box_item_detail').find('message'))){
216			$('div.txt_addMessage span.message').remove();
217		}
218		//µì¥Ú¡¼¥¸ÍÑ
219    		if(($('#resultArea .itemDetailArea').find('message'))){
220			$('div.txt_addMessage span.message').remove();
221		}
222	}
223
224	// close balloon
225	$('.balloonWhiteOpen a').click(function(){
226		var selectTxt= [];
227		$(this).parent().next().find('.txt li').each(function(id){
228			var txtCheck = $(this).text();
229			gf_GetByte(txtCheck);
230
231			function gf_GetByte(aStr){
232				if(aStr.length == 0){return 0;}
233				var count = 0;
234				var Str = "";
235				for(var i=0;i <aStr.length;i++){
236					Str = aStr.charAt(i);
237					Str = escape(Str);
238					if( Str.length  < 4 ){
239						count = count + 1.4;
240					}else{
241						count = count + 2.2;
242					}
243				}
244				selectTxt[id] = count;
245				return count;
246			}
247		});
248		var maxSelectTxt = Math.max.apply(null,selectTxt);
249		var selectWidth = maxSelectTxt * 6.2 + 64;
250		$(this).parent().next().find('.box_balloonWhite').css('width',selectWidth+'px');
251		$('.balloonWhiteInner').css('z-index','5');
252		var thisZIndex = $('.balloonWhiteInner').css('z-index');
253			thisZIndex = parseInt(thisZIndex) + 3;
254		$(this).parent().next().css('z-index',thisZIndex);
255		$(this).parent().next().show();
256
257
258		$(".balloonWhiteInner").on('click', function(e) {
259			e.stopPropagation();
260		});
261		$(document).click(function(){
262			$(".balloonWhiteInner").hide();
263		});
264		return false;
265	});
266
267	$('.balloonCont img.close').click(function(){
268		$(this).parents(".balloonWhiteInner").hide();
269	});
270
271
272	// #main .btnActionArea input
273	$('#main .btnActionArea input,#box_popup.btnActionArea input,#kantanSearch .btnActionArea .btnActionPoint li,#kantanSearch .btnActionArea .btnActionPoint input,#kantanSearch .btnActionArea .btnActionPoint div.check').live('click', function(){
274		// checkbox
275		if($(this).attr('type') == 'checkbox'){
276			var thisInput = $(this);
277			if($(this).parents('.box_outer').length == '0'){
278				if(thisInput.attr('checked')){
279					$(this).parents('.btnActionArea').find('.iconActionClick').each(function(){
280						$(this).fadeIn(300, function(){
281							$(this).animate({
282								top: "-20px"
283							}, 150, function(){
284								$(this).animate({
285									top: "-10px"
286								}, 150, function(){
287									$(this).animate({
288										top: "-20px"
289									}, 150, function(){
290										$(this).animate({
291											top: "-10px"
292										}, 150, function(){
293											$(this).fadeOut(800);
294										});
295									});
296								});
297							});
298						});
299					});
300				}
301			}
302		}else if( $(this).attr('type') =='text' || $(this).attr('type') =='radio'){
303		}else{
304			// li
305			if($(this).hasClass('current') == 0){
306				$(this).parents('.btnActionArea').find('.iconActionClick').each(function(){
307					$(this).fadeIn(300, function(){
308						$(this).animate({
309							top: "-20px"
310						}, 150, function(){
311							$(this).animate({
312								top: "-10px"
313							}, 150, function(){
314								$(this).animate({
315									top: "-20px"
316								}, 150, function(){
317									$(this).animate({
318										top: "-10px"
319									}, 150, function(){
320										$(this).fadeOut(800);
321									});
322								});
323							});
324						});
325					});
326				});
327			}
328		}
329	});
330	// #main .btnActionArea select
331	$('#main .btnActionArea select,#kantanSearch .btnActionArea .btnActionPoint select').live('change', function(){
332		if($(this).parents('.box_outer').length == '0'){
333			$(this).parents('.btnActionArea').find('.iconActionClick').each(function(){
334				$(this).fadeIn(300, function(){
335					$(this).animate({
336						top: "-20px"
337					}, 150, function(){
338						$(this).animate({
339							top: "-10px"
340						}, 150, function(){
341							$(this).animate({
342								top: "-20px"
343							}, 150, function(){
344								$(this).animate({
345									top: "-10px"
346								}, 150, function(){
347									$(this).fadeOut(800);
348								});
349							});
350						});
351					});
352				});
353			});
354		}
355	})
356
357	// checkBox Allcheck
358	$('#main .allCheckArea label input').click(function(){
359		var thisInput = $(this);
360		var inputClass = thisInput.attr('class');
361			inputClass = inputClass.slice(13);
362		if(thisInput.attr('checked')){
363			$('.input10check_'+inputClass+' .itemDetail input[type=checkbox]').attr('checked','checked');
364			$('.input10check_'+inputClass+' .itemDetail .itemcheck').css('background','#ffdb7d');
365			$('.input10check_'+inputClass+' .allCheckArea label input').attr('checked','checked');
366		}else{
367			$('.input10check_'+inputClass+' .itemDetail input[type=checkbox]').removeAttr('checked');
368			$('.input10check_'+inputClass+' .itemDetail .itemcheck').css('background','none');
369			$('.input10check_'+inputClass+' .allCheckArea label input').removeAttr('checked');
370		}
371	});
372
373	if (isIE6) {
374		$('#main #scrollTit').bgiframe();
375	}
376
377	// facebook
378	var facebookCode = '<iframe src="//www.facebook.com/plugins/like.php?href='+encodeURIComponent(document.URL)+'&amp;send=false&amp;layout=button_count&amp;width=110&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:21px;" allowTransparency="true"></iframe>';
379	$('ul.sns li.facebook').append(facebookCode);
380
381	// newGlobalNavi20130322
382	$('#header_v2 #mainLink1in li').hover(function() {
383		$(this).children('div').show();
384		$(this).children("a.openTxt").css("background-color","#ffffff");
385		$(this).children("a.openTxt").css("color","#e60012");
386	}, function() {
387		$(this).children('div').hide();
388		$(this).children("a.openTxt").css("background-color","transparent");
389		$(this).children("a.openTxt").css("color","#000000");
390	});
391	
392	//¸ÇÄê¥Ð¥Ê¡¼
393	$(".tdrive_banner span").click(function(){
394		$(".tdrive_banner").css("display","none");
395	});
396	
397	});
398
399	$(function() {
400		$("#header_v2 .main_link_style dd ul li").hover(function() {
401			$(".pullDown").bgiframe();
402		});
403});
404
405/**
406 * ===========================================
407 * ÄɲÃ20130716(header_v2 hover pullDownÍÑ)
408 * ===========================================
409 **/
410
411$(function() {
412	$('#header_v2 .main_link_style li').hover(function() {
413        var $this = $(this);
414        if($this.children("div.pullDown").size() > 0) {
415    		$(this).children('div').show();
416    		$this.children("a.openTxt").addClass('mouseover');
417        } else {
418    		$this.children("a.openTxt").addClass('mouseover_nodown');
419        }
420	}, function() {
421        var $this = $(this);
422        if($this.children("div.pullDown").size() > 0) {
423    		$(this).children('div').hide();
424    		$this.children("a.openTxt").removeClass('mouseover');
425        } else {
426    		$this.children("a.openTxt").removeClass('mouseover_nodown');
427        }
428	});
429});
430
431/**
432 * ===========================================
433 * ÄɲÃ20150703(area footerÍÑ)
434 * ===========================================
435**/
436$(function(){
437	var btn = ".area_link_more",
438		boxParents = ".smallBoxParents",
439		boxParents_inner = ".smallBoxParents_inner",
440		boxParents_inner_first  = ".first_child",
441		searchLinkBox = ".searchLinkBox .areaCommonList";
442
443	// ½é´ü²½
444	function areaInit(){
445		$(".smallBoxParents_inner:nth-child(1)").addClass("first_child");
446		$(boxParents_inner_first).find("li:nth-child(n+11)").addClass("area_item_more");
447	}
448
449	// 10·ï°Ê²¼¤Î¾ì¹ç¡¢¤µ¤é¤Ë¸«¤ë¤òÈóɽ¼¨
450	$(searchLinkBox).each(function(){
451		var numList = $(this).children("li").length;
452		if(numList <= 10){
453			$(this).parent().next().hide();
454		} else{
455			$(this).parent().next().show();
456		}
457	});
458
459	$(btn).on("click",function(){
460		if($(this).parents(boxParents).hasClass("close")){
461			$(this).prevAll(boxParents_inner).show();
462			$(this).children().text("ÊĤ¸¤ë");
463			$(this).addClass("area_link_close").removeClass("area_link_more");
464		} else{
465			$(this).prevAll(boxParents_inner).hide();
466			$(this).prevAll(boxParents_inner_first).show();
467			$(this).children().text("¤µ¤é¤Ë¸«¤ë");
468			$(this).addClass("area_link_more").removeClass("area_link_close");
469		}
470		$(this).prevAll(boxParents_inner_first).find("li:nth-child(n+11)").toggleClass("area_item_more");
471		$(this).parents(boxParents).toggleClass("close");
472		return false;
473	});
474
475	areaInit();
476});
477
478/* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
479 * Licensed under the MIT License (LICENSE.txt).
480 *
481 * Version 2.1.2
482 */
483(function(a){a.fn.bgiframe=(a.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(d){d=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},d);var c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+d.src+'"style="display:block;position:absolute;z-index:-1;'+(d.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(d.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":b(d.top))+";left:"+(d.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":b(d.left))+";width:"+(d.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":b(d.width))+";height:"+(d.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":b(d.height))+';"/>';return this.each(function(){if(a(this).children("iframe.bgiframe").length===0){this.insertBefore(document.createElement(c),this.firstChild)}})}:function(){return this});a.fn.bgIframe=a.fn.bgiframe;function b(c){return c&&c.constructor===Number?c+"px":c}})(jQuery);
484
485/***
486 * getRedirectPath()
487 * ÀÅŪ¥Ú¡¼¥¸¤ÎPC ¢Î ¥¹¥Þ¥Ûɽ¼¨ÀÚÂØPHP¤ÎpathÀ¸À®
488 *
489 * Ʊ¥Ú¡¼¥¸¤Î¥¹¥Þ¥ÛÈÇ¥Ú¡¼¥¸¤òɽ¼¨¤¹¤ë²èÌ̤ξì¹ç¤Ï¡¢
490 * pattren¤ËÂоݥڡ¼¥¸¤¬»ØÄê¤Ç¤­¤ëURL¤Î°ìÉô¤òÄɵ­
491 * Îã¡Ëvar pattern = '/area|ޥޥޥ|ޥޥޥ/'
492 *
493 * Äɵ­»þ¤Ï¡¢redirect_pc.php¤Ë¤âÄɲ乤ë
494 ***/
495/*del 20170713 xa_sunj GOO_OPE_PRJ-3467*/
496/*function getRedirectPath() {
497    var pattern = '/area|newcar';
498    var path    = '/php/redirect/redirect_pc.php';
499    var url     = location.href;
500    if(url.search(pattern) != -1){
501        var result = url.match(pattern)[0];
502        if (result == "newcar") {
503        	return path + "?page=newcar";
504        }
505        var param  = '';
506        var params = url.substr(url.indexOf(result)+1).split('/');
507
508        if(params.length > 1){
509          param = '?page='+params[0]+'&param='+params[1];
510        }
511        path = path+param;
512    }
513    return path;
514}*/

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.