PageSourceSearch

https://www.dorothearestorations.com/includes/functions.js

js dorothearestorations.com collected 2026-10-02 19:51:14 UTC 1,529 bytes, 65 lines download raw bytes

1
2//Advanced Email Check credit-
3//By JavaScript Kit (http://www.javascriptkit.com)
4//Over 200+ free scripts here!
5
6function checkemail(emailToCheck){
7var str=emailToCheck;
8var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
9if (filter.test(str))
10testresults=true
11else{
12testresults=false
13}
14return (testresults)
15}
16
17
18//Autofill function
19function autoFill(id, v){
20	$(id).css({ color: "#777" }).attr({ value: v }).focus(function(){
21		if($(this).val()==v){
22			$(this).val("").css({ color: "#333" });
23		}
24	}).blur(function(){
25		if($(this).val()==""){
26			$(this).css({ color: "#777" }).val(v);
27		}
28	});
29}
30
31function showBox(boxRef,margin)
32{
33	if (margin==null) margin=100;
34	//$('.window').hide();
35	//Get the screen height and width
36	var maskHeight = $(document).height();
37	var maskWidth = $(window).width();
38
39	//Set height and width to mask to fill up the whole screen
40	$(boxRef).next('.mask').css({'width':maskWidth,'height':maskHeight});
41	
42	//transition effect		
43	$(boxRef).next('.mask').fadeTo("fast",0.5);	
44
45	//Get the window height and width
46	var winH = $(window).height();
47	var winW = $(window).width();
48	
49	$(boxRef).css('height',winH-margin);
50	
51	//Set the popup window to center
52	$(boxRef).css('top',  winH/2-$(boxRef).height()/2);
53	$(boxRef).css('left', winW/2-$(boxRef).width()/2);
54
55	//$(boxRef).css('height','200px');
56	//transition effect
57	$(boxRef).fadeIn(200); 
58}
59
60function closeBox(boxRef)
61{
62	$(boxRef).next('.mask').hide();
63	$(boxRef).hide();
64	$(boxRef+' .boxcontents').html('');
65}

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.