PageSourceSearch

https://www.grandlodgefl.com/wp-content/themes/glf/js/color_switch.js

js grandlodgefl.com collected 2026-10-02 08:25:30 UTC 3,682 bytes, 99 lines download raw bytes

1// JavaScript Document
2
3jQuery(document).ready(function(e) {
4
5	var fontResizer_value = jQuery('#fontResizer_value').val();
6    var fontResizer_ownid = jQuery('#fontResizer_ownid').val();
7    var fontResizer_ownelement = jQuery('#fontResizer_ownelement').val();
8    var fontResizer_resizeSteps = jQuery('#fontResizer_resizeSteps').val();
9    var fontResizer_cookieTime = jQuery('#fontResizer_cookieTime').val();
10    var fontResizer_maxFontsize = jQuery('#fontResizer_maxFontsize').val();
11    var fontResizer_minFontsize = jQuery('#fontResizer_minFontsize').val();
12    var fontResizer_element = fontResizer_value;
13	var baseUrl = document.location.origin;
14	
15	var styleTheme = jQuery.cookie('styleTheme');
16	//alert(styleTheme);
17	if(styleTheme){
18		if(styleTheme == 0){
19			jQuery("[href*='change.css']").remove();
20			
21		}
22		if(styleTheme == 1){
23			jQuery("[href*='change.css']").remove();
24			jQuery('head').append('<link rel="stylesheet" type="text/css" media="screen" href="'+baseUrl+'/wp-content/themes/glf/css/orange-change.css">');
25			
26		}
27		if(styleTheme == 2){
28			jQuery("[href*='change.css']").remove();
29			jQuery('head').append('<link rel="stylesheet" type="text/css" media="screen" href="'+baseUrl+'/wp-content/themes/glf/css/green-change.css">');
30			
31		}
32		if(styleTheme == 3){
33			jQuery("[href*='change.css']").remove();
34			jQuery('head').append('<link rel="stylesheet" type="text/css" media="screen" href="'+baseUrl+'/wp-content/themes/glf/css/purple-change.css">');
35			
36		}
37		
38	}
39		
40		
41	jQuery('#color01').click(function(e) {
42		//setCookie('styleTheme', 0 , 86400);
43		var newColor = 0;
44		jQuery.cookie('styleTheme', newColor, {expires: parseInt(fontResizer_cookieTime), path: '/'});
45        jQuery("[href*='change.css']").remove();
46		
47		
48    });
49	
50	jQuery('#color02').click(function(e) {
51		//setCookie('styleTheme', 1 , 86400);
52		var newColor = 1;
53		jQuery.cookie('styleTheme', newColor, {expires: parseInt(fontResizer_cookieTime), path: '/'});
54		jQuery("[href*='change.css']").remove();
55        jQuery('head').append('<link rel="stylesheet" type="text/css" media="screen" href="'+baseUrl+'/wp-content/themes/glf/css/orange-change.css">');
56		
57    });
58	
59	jQuery('#color03').click(function(e) {
60		//setCookie('styleTheme', 2 , 86400);
61		var newColor = 2;
62		jQuery.cookie('styleTheme', newColor, {expires: parseInt(fontResizer_cookieTime), path: '/'});
63		jQuery("[href*='change.css']").remove();
64        jQuery('head').append('<link rel="stylesheet" type="text/css" media="screen" href="'+baseUrl+'/wp-content/themes/glf/css/green-change.css">');
65		
66	});
67	
68	jQuery('#color04').click(function(e) {
69		//setCookie('styleTheme', 3 , 86400);
70		var newColor = 3;
71		jQuery.cookie('styleTheme', newColor, {expires: parseInt(fontResizer_cookieTime), path: '/'});
72		jQuery("[href*='change.css']").remove();
73        jQuery('head').append('<link rel="stylesheet" type="text/css" media="screen" href="'+baseUrl+'/wp-content/themes/glf/css/purple-change.css">');
74		
75    });
76	
77	
78	
79	
80function getCookie(Name) { 
81	var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
82	if (document.cookie.match(re)) //if cookie found
83	return document.cookie.match(re)[0].split("=")[1] //return its value
84	return null
85}
86
87function setCookie(name, value, days) {
88	var expireDate = new Date()
89	//set "expstring" to either future or past date, to set or delete cookie, respectively
90	var expstring=(typeof days!="undefined")? expireDate.setDate(expireDate.getDate()+parseInt(days)) : expireDate.setDate(expireDate.getDate()-5)
91	document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/";
92}
93 
94function deleteCookie(name){
95	setCookie(name, "moot")
96}
97
98    
99});

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.