PageSourceSearch

https://fireisland.com/wp-content/plugins/business-directory//main.js?ver=7.0.5

js fireisland.com collected 2026-09-24 17:43:08 UTC 6,168 bytes, 161 lines download raw bytes

1/*
2*  Autofill Function
3*/
4var bizdir_yourInfo_autofill = "For us to contact you...";
5var bizdir_description_autofill = "Please enter a brief (800 characters or less) description of the organization (text only, no HTML, line breaks, or formatting)...";
6var bizdir_cat_description_autofill = "Please enter a brief (800 characters or less) description of the category (text only, no HTML, line breaks, or formatting)...";
7var bizdir_keywords_autofill = "Words for the organization to be found by...";
8var bizdir_companyInfo_autofill = "To be displayed with your listing...";
9var bizdir_geoInfo_autofill = "For geographical searching...";
10var bizdir_categoryInfo_autofill = "The name of the category...";
11
12function bizdir_clearAutoFill(id,type) {
13	if(id == null || id == "" || type == null || type == "")
14		return;
15	var input = document.getElementById(id);
16	if(input != null && type != null)
17		switch(type) {
18			case "YourInfo": if(input.value == bizdir_yourInfo_autofill) input.value = ""; input.style.color = "#000000"; break;
19			case "Description": if(input.value == bizdir_description_autofill) input.value = ""; input.style.color = "#000000"; break;
20			case "Cat_Description": if(input.value == bizdir_cat_description_autofill) input.value = ""; input.style.color = "#000000"; break;
21			case "Keywords": if(input.value == bizdir_keywords_autofill) input.value = ""; input.style.color = "#000000"; break;
22			case "CompanyInfo": if(input.value == bizdir_companyInfo_autofill) input.value = ""; input.style.color = "#000000"; break;
23			case "GeoInfo": if(input.value == bizdir_geoInfo_autofill) input.value = ""; input.style.color = "#000000"; break;
24			case "CategoryInfo": if(input.value == bizdir_categoryInfo_autofill) input.value = ""; input.style.color = "#000000"; break;
25		}
26}
27
28function bizdir_clearAllAutoFill() {
29	//Clear text fields
30	var all_inputs = document.getElementsByTagName('input');
31	for(var i=0;i<all_inputs.length;i++) {
32		var input = all_inputs[i];
33		switch(input.getAttribute('bizdir_autofill')) {
34			case 'YourInfo': 
35				if(input.value == bizdir_yourInfo_autofill || input.value == "" || input.value == null) {
36					input.value = "";
37					input.style.color = "#000000"; 
38				}
39			break;
40			case 'Keywords': 
41				if(input.value == bizdir_keywords_autofill || input.value == "" || input.value == null) {
42					input.value = "";
43					input.style.color = "#000000"; 
44				}
45			break;
46			case 'CompanyInfo':
47				if(input.value == bizdir_companyInfo_autofill || input.value == "" || input.value == null) {
48					input.value = "";
49					input.style.color = "#000000";
50				}
51			break;
52			case 'GeoInfo':
53				if(input.value == bizdir_geoInfo_autofill || input.value == "" || input.value == null) {
54					input.value = "";
55					input.style.color = "#000000";
56				}
57			break;
58            case 'CategoryInfo':
59                if(input.value == bizdir_categoryInfo_autofill || input.value == "" || input.value == null) {
60					input.value = "";
61					input.style.color = "#000000";
62				}
63            break;
64		}
65	}
66	var all_textareas = document.getElementsByTagName('textarea');
67	for(var i=0;i<all_textareas.length;i++) {
68		var input = all_textareas[i];
69		if(
70		   	input.getAttribute('bizdir_autofill') == 'Description' && 
71			(input.value == "" || input.value == null || input.value == bizdir_description_autofill)
72		) {
73			input.style.color = '#000000';
74			input.value = "";
75		} else if(
76		   	input.getAttribute('bizdir_autofill') == 'Cat_Description' && 
77			(input.value == "" || input.value == null || input.value == bizdir_cat_description_autofill)
78		) {
79			input.style.color = '#000000';
80			input.value = "";
81		}
82	}
83}
84
85function bizdir_populateAutofill() {
86	var override = arguments[0] == true;
87	var all_inputs = document.getElementsByTagName('input');
88	for(var i=0;i<all_inputs.length;i++) {
89		var input = all_inputs[i];
90		switch(input.getAttribute('bizdir_autofill')) {
91			case 'YourInfo': 
92				if(override || input.value == bizdir_yourInfo_autofill || input.value == "" || input.value == null) {
93					input.value = bizdir_yourInfo_autofill;
94					input.style.color = "#999999"; 
95				}
96			break;
97			case 'Keywords': 
98				if(override || input.value == bizdir_keywords_autofill || input.value == "" || input.value == null) {
99					input.value = bizdir_keywords_autofill;
100					input.style.color = "#999999"; 
101				}
102			break;
103			case 'CompanyInfo':
104				if(override || input.value == bizdir_companyInfo_autofill || input.value == "" || input.value == null) {
105					input.value = bizdir_companyInfo_autofill;
106					input.style.color = "#999999";
107				}
108			break;
109			case 'GeoInfo':
110				if(override || input.value == bizdir_geoInfo_autofill || input.value == "" || input.value == null) {
111					input.value = bizdir_geoInfo_autofill;
112					input.style.color = "#999999";
113				}
114			break;
115            case 'CategoryInfo':
116                if(override || input.value == bizdir_categoryInfo_autofill || input.value == "" || input.value == null) {
117					input.value = bizdir_categoryInfo_autofill;
118					input.style.color = "#999999";
119				}
120            break;
121		}
122	}
123	var all_textareas = document.getElementsByTagName('textarea');
124	for(var i=0;i<all_textareas.length;i++) {
125		var input = all_textareas[i];
126		if(
127		   	input.getAttribute('bizdir_autofill') == 'Description' && 
128			(input.value == "" || input.value == null || input.value == bizdir_description_autofill || override)
129		) {
130			input.style.color = '#999999';
131			input.value = bizdir_description_autofill;
132		} else if(
133		   	input.getAttribute('bizdir_autofill') == 'Cat_Description' && 
134			(input.value == "" || input.value == null || input.value == bizdir_cat_description_autofill || override)
135		) {
136			input.style.color = '#999999';
137			input.value = bizdir_cat_description_autofill;
138		}
139	}
140}
141/*
142* ON LOAD
143*/
144function bizdir_onload() {
145	bizdir_populateAutofill();
146	var bizdir_submit = document.getElementById("bizdir_submit")
147	if(bizdir_submit != null)
148		bizdir_submit.disabled = false;
149}
150
151window.onload = bizdir_onload;
152/*
153*  HELPER FUNCTIONS
154*/
155function clearMessage() {
156	var messages = document.getElementById('bizdir_messages');
157	if(messages != null) {
158		messages.className = '';
159		messages.innerHTML = '';
160	}
161}

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.