PageSourceSearch

https://www.stylenote.co.jp/wp/wp-content/themes/evolve/library/media/js/fields.js?ver=5.9

js stylenote.co.jp collected 2026-10-02 18:42:55 UTC 5,486 bytes, 161 lines download raw bytes

1// FIELDS
2
3jQuery(document).ready(function(){
4			
5			// init fields
6				
7			if(jQuery('#search-text').val() !=  '')
8				jQuery('#search_label span').hide();
9				
10				if(jQuery('#comment-author').val() !=  '')
11				jQuery('#comment-name_label span').hide();
12        
13				if(jQuery('#comment-email').val() !=  '')
14				jQuery('#comment-email_label span').hide();     
15        
16				if(jQuery('#comment-url').val() !=  '')
17				jQuery('#comment-url_label span').hide();     
18        
19				if(jQuery('#comment-text').val() !=  '')
20				jQuery('#comment-text_label span').hide();                 
21
22			// on focus
23			
24			jQuery('#search_label input').focus(function() {
25				jQuery('#search_label span').fadeTo(100, 0.5);
26				
27				if(jQuery('#search-text').val() !==  '')
28				jQuery('#search_label span').hide();
29			});
30			
31						jQuery('#comment-name_label input').focus(function() {
32				jQuery('#comment-name_label span').fadeTo(100, 0.5);
33				
34				if(jQuery('#comment-author').val() !==  '')
35				jQuery('#comment-name_label span').hide();
36        
37      });  
38        
39						jQuery('#comment-email_label input').focus(function() {
40				jQuery('#comment-email_label span').fadeTo(100, 0.5);
41				
42				if(jQuery('#comment-email').val() !==  '')
43				jQuery('#comment-email_label span').hide();        
44			});
45      
46						jQuery('#comment-url_label input').focus(function() {
47				jQuery('#comment-url_label span').fadeTo(100, 0.5);
48				
49				if(jQuery('#comment-url').val() !==  '')
50				jQuery('#comment-url_label span').hide();        
51			});   
52      
53						jQuery('#comment-text_label textarea').focus(function() {
54				jQuery('#comment-text_label span').fadeTo(100, 0.5);
55				
56				if(jQuery('#comment-text').val() !==  '')
57				jQuery('#comment-text_label span').hide();        
58			});            
59			
60			//on keydown
61			
62			jQuery('#search_label input').keydown(function() {
63				if(jQuery('#search-text').val() !==  '')
64				jQuery('#search_label span').hide();
65			});
66			
67				jQuery('#comment-name_label input').keydown(function() {
68				if(jQuery('#comment-author').val() !==  '')
69				jQuery('#comment-name_label span').hide();
70      });  
71				jQuery('#comment-email_label input').keydown(function() {
72				if(jQuery('#comment-email').val() !==  '')
73				jQuery('#comment-email_label span').hide();
74                
75			});
76      
77				jQuery('#comment-url_label input').keydown(function() {
78				if(jQuery('#comment-url').val() !==  '')
79				jQuery('#comment-url_label span').hide();
80                
81			});    
82      
83				jQuery('#comment-text_label textarea').keydown(function() {
84				if(jQuery('#comment-text').val() !==  '')
85				jQuery('#comment-text_label span').hide();
86                
87			});          
88			
89			//on click
90			jQuery('#search_label').click(function() {
91				jQuery('#search-text').trigger('focus');
92				if(jQuery('#search-text').val() !==  '')
93				jQuery('#search_label span').hide();
94			});
95					jQuery('comment-name_label').click(function() {
96				jQuery('#comment-author').trigger('focus');
97				if(jQuery('#comment-author').val() !== '')
98				jQuery('#comment-name_label span').hide();
99      });  
100					jQuery('comment-email_label').click(function() {
101				jQuery('#comment-email').trigger('focus');
102				if(jQuery('#comment-email').val() !== '')
103				jQuery('#comment-email_label span').hide();        
104			});
105					jQuery('comment-url_label').click(function() {
106				jQuery('#comment-url').trigger('focus');
107				if(jQuery('#comment-url').val() !== '')
108				jQuery('#comment-url_label span').hide();        
109			});   
110      
111					jQuery('comment-text_label').click(function() {
112				jQuery('#comment-text').trigger('focus');
113				if(jQuery('#comment-text').val() !== '')
114				jQuery('#comment-text_label span').hide();        
115			});          
116			
117			//on blur
118
119			jQuery('#search-text').blur(function() {
120				if( jQuery('#search-text').val() ==  '') {
121					jQuery('#search_label span').show();
122					jQuery('#search_label span').fadeTo(100, 1);
123				}
124				if(jQuery('#search-text').val() !==  '')
125				jQuery('#search_label span').hide();
126			});
127					jQuery('#comment-author').blur(function() {
128				if( jQuery('#comment-author').val() ==  '') {
129					jQuery('#comment-name_label span').show();
130					jQuery('#comment-name_label span').fadeTo(100, 1);
131				}
132				if(jQuery('#comment-author').val() !==  '')
133				jQuery('#comment-name_label span').hide();
134     	});  
135					jQuery('#comment-email').blur(function() {
136				if( jQuery('#comment-email').val() ==  '') {
137					jQuery('#comment-email_label span').show();
138					jQuery('#comment-email_label span').fadeTo(100, 1);
139				}
140				if(jQuery('#comment-email').val() !==  '')
141				jQuery('#comment-email_label span').hide();        
142			});
143					jQuery('#comment-url').blur(function() {
144				if( jQuery('#comment-url').val() ==  '') {
145					jQuery('#comment-url_label span').show();
146					jQuery('#comment-url_label span').fadeTo(100, 1);
147				}
148				if(jQuery('#comment-url').val() !==  '')
149				jQuery('#comment-url_label span').hide();        
150			});   
151					jQuery('#comment-text').blur(function() {
152				if( jQuery('#comment-text').val() ==  '') {
153					jQuery('#comment-text_label span').show();
154					jQuery('#comment-text_label span').fadeTo(100, 1);
155				}
156				if(jQuery('#comment-text').val() !==  '')
157				jQuery('#comment-text_label span').hide();        
158			});           
159		});
160		
161// FIELDS

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.