PageSourceSearch

https://yellowcherry.uk/wp-content/custom_codes/15691-js-body-closing.js?ver=66

js yellowcherry.uk collected 2026-10-08 06:42:30 UTC 1,192 bytes, 29 lines download raw bytes

1const input = document.querySelector(".page-id-5355 #request_title");
2let errorMessage;
3
4if(input){
5
6
7	document.addEventListener('DOMContentLoaded', function() {	
8
9		errorMessage = "<small class='support-error-message' style='color:red!important;font-size:16px!important;padding-top:5px!important;'>* Due to our security systems, please do not include phrases such as: 'out of office' or 'on holiday' in the subject line.</small>";
10		input.insertAdjacentHTML("afterend", errorMessage);
11		document.querySelector(".support-error-message").style.display = "none";
12	}, false);
13
14	input.addEventListener("input", function(){
15		//make sure entries are lower case in the array
16		const phrases = ["out of office", "on holiday"];
17		let text = input.value;
18
19		if (phrases.some(phrase=>text.toLowerCase().includes(phrase))) {
20			document.querySelector(".support-error-message").style.display = "block";
21			document.querySelector(".page-id-5355 #crm_form_submit").style.pointerEvents = "none";
22		}
23		else {
24			errorMessage = "";
25			document.querySelector(".support-error-message").style.display = "none";
26			document.querySelector(".page-id-5355 #crm_form_submit").style.pointerEvents = "auto";
27		}
28	});
29}

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.