PageSourceSearch

https://u-shin-ltd.com/Portals/0/js/placeholder/placeholder.js

js u-shin-ltd.com collected 2026-10-02 19:04:35 UTC 781 bytes, 26 lines download raw bytes

1(function($){
2
3	$(function(){
4		if($('.searchWrap .txtSearch').val()!=''){
5			$('span.placeholder').css('display', 'none');
6		}else{
7			$('span.placeholder').css('display', 'block');
8		}
9
10		$('span.placeholder').on('click', function(e){
11			$('.searchWrap .txtSearch').focus();
12		});
13		$('.searchWrap .txtSearch').on('focus', function(e){
14			// 入力欄にフォーカスが当たったらプレースホルダーを非表示
15			if($(this).val()===''){
16				$('span.placeholder').css('display', 'none');
17			}
18		}).on('blur', function(e){
19			// フォーカスが外れて入力値が空だったらプレースホルダー表示
20			if($('.searchWrap .txtSearch').val()===''){
21				$('span.placeholder').css('display', 'block');
22			}
23		});
24	});
25
26})(jQuery);

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.