PageSourceSearch

https://www.phd2published.com/wp-content/themes/OneCommunity/js/jQFunctions.js?ver=1.0

js phd2published.com collected 2026-10-03 21:38:10 UTC 7,370 bytes, 228 lines download raw bytes

1jQuery(document).ready(function(){ 
2    jQuery("#navigation-320 div.menu").hide(); 
3    jQuery('#navigation-320').click(function(){
4    jQuery("#navigation-320 div.menu").slideToggle();
5    }); 
6});
7
8jQuery(function(){
9jQuery("#object-nav, #subnav").wrapAll("<div id='mytabs' />");
10});
11
12
13
14jQuery(function(){
15    var content_height = jQuery('#content').height();
16    var sidebar_height = jQuery('#sidebar').height();
17    console.log("CH: "+content_height);
18    console.log("SH: "+sidebar_height);
19    if (content_height < sidebar_height) {
20       jQuery('#content').css('border-right', 'none');
21       jQuery('#sidebar').css('border-left', '1px solid #eaeaea');
22       jQuery('#item-body').css('margin-right', '-16px');
23    }
24}); 
25
26
27jQuery(document).ready(function()
28{
29    jQuery(".hoverText").focus(function(srcc)
30    {
31        if (jQuery(this).val() == jQuery(this)[0].title)
32        {
33            jQuery(this).removeClass("hoverTextActive");
34            jQuery(this).val("");
35        }
36    });
37    
38    jQuery(".hoverText").blur(function()
39    {
40        if (jQuery(this).val() == "")
41        {
42            jQuery(this).addClass("hoverTextActive");
43            jQuery(this).val(jQuery(this)[0].title);
44        }
45    });
46    
47    jQuery(".hoverText").blur();        
48});
49
50
51
52
53
54(function(jQuery){
55 jQuery.fn.extend({
56 
57 	customStyle : function(options) {
58	  if(!jQuery.browser.msie || (jQuery.browser.msie&&jQuery.browser.version>6)){
59	  return this.each(function() {
60	  
61			var currentSelected = jQuery(this).find(':selected');
62			jQuery(this).after('<span class="customStyleSelectBox"><span class="customStyleSelectBoxInner">'+currentSelected.text()+'</span></span>').css({position:'absolute', opacity:0,fontSize:jQuery(this).next().css('font-size')});
63			var selectBoxSpan = jQuery(this).next();
64			var selectBoxWidth = parseInt(jQuery(this).width()) - parseInt(selectBoxSpan.css('padding-left')) -parseInt(selectBoxSpan.css('padding-right'));			
65			var selectBoxSpanInner = selectBoxSpan.find(':first-child');
66			selectBoxSpan.css({display:'inline-block'});
67			selectBoxSpanInner.css({width:selectBoxWidth, display:'inline-block'});
68			var selectBoxHeight = parseInt(selectBoxSpan.height()) + parseInt(selectBoxSpan.css('padding-top')) + parseInt(selectBoxSpan.css('padding-bottom'));
69			jQuery(this).height(selectBoxHeight).change(function(){
70				// selectBoxSpanInner.text(jQuery(this).val()).parent().addClass('changed');   This was not ideal
71			selectBoxSpanInner.text(jQuery(this).find(':selected').text()).parent().addClass('changed');
72				// Thanks to Juarez Filho & PaddyMurphy
73			});
74			
75	  });
76	  }
77	}
78 });
79})(jQuery);
80
81jQuery(function(){
82
83jQuery('select#activity-filter-by, select#forums-order-by, select#members-order-by, #top-bar select#search-which, select#members-friends, select#blogs-order-by, select#notifications-sort-order-list').customStyle();
84
85});
86
87
88
89
90(function(jQuery) {
91
92    jQuery.organicTabs = function(el, options) {
93    
94        var base = this;
95        base.jQueryel = jQuery(el);
96        base.jQuerynav = base.jQueryel.find(".tabs-nav, .tabs-nav2");
97                
98        base.init = function() {
99        
100            base.options = jQuery.extend({},jQuery.organicTabs.defaultOptions, options);
101            
102            // Accessible hiding fix
103            jQuery(".hidden-tab").css({
104                "position": "relative",
105                "top": 0,
106                "left": 0,
107                "display": "none"
108            }); 
109            
110            base.jQuerynav.delegate("li > a", "click", function() {
111            
112                // Figure out current list via CSS class
113                var curList = base.jQueryel.find("a.current").attr("href").substring(1),
114                
115                // List moving to
116                    jQuerynewList = jQuery(this),
117                    
118                // Figure out ID of new list
119                    listID = jQuerynewList.attr("href").substring(1),
120                
121                // Set outer wrapper height to (static) height of current inner list
122                    jQueryallListWrap = base.jQueryel.find(".list-wrap"),
123                    curListHeight = jQueryallListWrap.height();
124                jQueryallListWrap.height(curListHeight);
125                                        
126                if ((listID != curList) && ( base.jQueryel.find(":animated").length == 0)) {
127                                            
128                    // Fade out current list
129                    base.jQueryel.find("#"+curList).fadeOut(base.options.speed, function() {
130                        
131                        // Fade in new list on callback
132                        base.jQueryel.find("#"+listID).fadeIn(base.options.speed);
133                        
134                        // Adjust outer wrapper to fit new list snuggly
135                        var newHeight = base.jQueryel.find("#"+listID).height();
136                        jQueryallListWrap.animate({
137                            height: newHeight
138                        });
139                        
140                        // Remove highlighting - Add to just-clicked tab
141                        base.jQueryel.find(".tabs-nav li a, .tabs-nav2 li a").removeClass("current");
142                        jQuerynewList.addClass("current");
143                            
144                    });
145                    
146                }   
147                
148                // Don't behave like a regular link
149                // Stop propegation and bubbling
150                return false;
151            });
152            
153        };
154        base.init();
155    };
156    
157    jQuery.organicTabs.defaultOptions = {
158        "speed": 700
159    };
160    
161    jQuery.fn.organicTabs = function(options) {
162        return this.each(function() {
163            (new jQuery.organicTabs(this, options));
164        });
165    };
166    
167})(jQuery);
168
169
170
171        jQuery(function() {
172            jQuery("#tabs-container").organicTabs({
173                "speed": 500
174            });
175        });
176
177
178        jQuery(function() {
179            jQuery("#tabs-container2").organicTabs({
180                "speed": 500
181            });
182        });
183
184
185
186jQuery(function(){
187jQuery("#content h3:empty").remove();
188jQuery(".thumbnail span:empty").remove();
189})
190
191
192jQuery(document).ready(function() { 
193    jQuery('#banner').oneByOne({
194		className: 'oneByOne1',
195		showButton: true,  
196		showArrow: false, 	            
197		easeType: 'random'
198	});  
199}); 
200
201
202jQuery(function() {
203jQuery('table tr.sticky div.topic-title a.forum-post-title').before('<span class="sticky-label"></span>');
204jQuery('table tr.status-closed div.topic-title a.forum-post-title').before('<span class="closed-label"></span>');
205});
206
207
208/**
209 * Protect window.console method calls, e.g. console is not defined on IE
210 * unless dev tools are open, and IE doesn't define console.debug
211 */
212(function() {
213  if (!window.console) {
214    window.console = {};
215  }
216  // union of Chrome, FF, IE, and Safari console methods
217  var m = [
218    "log", "info", "warn", "error", "debug", "trace", "dir", "group",
219    "groupCollapsed", "groupEnd", "time", "timeEnd", "profile", "profileEnd",
220    "dirxml", "assert", "count", "markTimeline", "timeStamp", "clear"
221  ];
222  // define undefined methods as noops to prevent errors
223  for (var i = 0; i < m.length; i++) {
224    if (!window.console[m[i]]) {
225      window.console[m[i]] = function() {};
226    }    
227  } 
228})();

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.