PageSourceSearch

https://www.augustcap.com/wp-content/themes/august-capital/js/scripts-global.js?ver=1790307278

js augustcap.com collected 2026-09-25 04:06:05 UTC 7,162 bytes, 323 lines download raw bytes

1/* global functions */
2
3/*
4(function ($) {
5	
6	$.check_overlay_display = function(){
7		
8		// see if a cookie has been set
9		if($.cookie("overlay2")){
10			
11			$('#overlay').remove();
12			
13		}else{
14			
15			$('div#overlay').removeClass('white');
16			$('div#overlay').animate({ "opacity": "1" },1000);
17			$('div#big-outer').css({ "opacity": "0" });
18			
19			// hide the overlay after 3 seconds
20			setTimeout(function(){
21				
22				var expires = new Date();
23				expires.setMinutes( expires.getMinutes() + 1 );
24				$.cookie('overlay2', 'acsss', {expires: expires, path: '/'});
25				
26				$('div#overlay').addClass('hidden');
27				$('div#big-outer').animate({ "opacity": "1" },2000);
28				
29			}, 3000);
30			
31			
32		}
33		
34	}
35
36	
37})(jQuery);
38
39jQuery(window).ready(function($) { 
40	
41	$.check_overlay_display();
42});
43*/
44
45
46
47
48
49(function ($) {
50
51	$.fade_port_items = function(){
52		
53		$('.md-port').each(function(){
54			$(this).addClass('faded');
55		});
56		
57		setTimeout(function(){
58			$('.md-port').each(function(){
59				$(this).removeClass('faded');
60			});			
61		},1750);		
62		
63	}	
64
65})(jQuery);
66
67
68
69
70(function ($) {
71
72	$.detect_each_team_grid_pos = function(){
73		
74		$('.investor-grid').each(function(){
75			
76			var main_grid_width = $(this).outerWidth()- 10;
77			var main_grid_one_third = (main_grid_width / 3);
78			var main_grid_two_thirds = main_grid_one_third * 2;
79			
80			//console.log('Team Investor outer container width: '+main_grid_width);
81			//console.log('Team Investor One Third: '+main_grid_one_third);
82			//console.log('Team Investor Two Thirds: '+main_grid_two_thirds);
83			
84			$('.investor-grid-item').each(function(){
85				
86				var investor_grid_id = $(this).attr('investor_grid_id');
87				var investor_grid_item_left = $(this).position().left;
88				//console.log('Grid ID: '+investor_grid_id+' Position: '+investor_grid_item_left);
89				
90					// item on the left
91					if(investor_grid_item_left =="0"){
92						
93						//console.log('Grid ID: '+investor_grid_id+' On Left ');
94						
95						var tooltip_class = 'investor-grid-left';
96					}
97					
98					// item in the middle
99					if(investor_grid_item_left > main_grid_one_third && investor_grid_item_left < main_grid_two_thirds){
100						
101						//console.log('Grid ID: '+investor_grid_id+' In Middle ');
102						
103						var tooltip_class = 'investor-grid-middle';
104						
105					}
106					
107					// item on the right
108					if(investor_grid_item_left > main_grid_two_thirds){
109						
110						//console.log('Grid ID: '+investor_grid_id+' On Right ');
111						var tooltip_class = 'investor-grid-right';
112						
113					}
114					
115					
116				$(this).removeClass('investor-grid-left investor-grid-middle investor-grid-right');	
117					
118				// now add the class to the container
119				$(this).addClass(tooltip_class);	
120				
121			});
122			
123		});
124		
125	}
126
127})(jQuery);
128
129(function ($) {
130    $.fn.inlineStyle = function (prop) {
131         var styles = this.attr("style"),
132             value;
133         styles && styles.split(";").forEach(function (e) {
134             var style = e.split(":");
135             if ($.trim(style[0]) === prop) {
136                 value = style[1];           
137             }                    
138         });   
139         return value;
140    };
141}(jQuery));
142
143
144(function ($) {
145	
146		$.detect_each_grid_pos = function(){
147		
148		$('.grid').each(function(){
149			
150			var main_grid_width = $(this).outerWidth();
151			var main_grid_half_width = (main_grid_width / 2) - 11;
152			var main_grid_quarter_width = (main_grid_half_width / 2);
153			var main_grid_three_quarter_width = (main_grid_half_width + main_grid_quarter_width);
154
155			$('.grid-item').each(function(){
156				
157				var grid_item_width = $(this).attr('box_size');
158				var grid_id = $(this).attr('grid_id');
159				var grid_item_left = $(this).position().left;
160				var grid_l = $(this).inlineStyle("left");
161
162				if(!grid_item_width) {
163					return;
164				}
165					
166				// work out whether they are generally on the left or right
167				if(grid_item_left > main_grid_half_width) {
168				
169					var grid_side = "right";	
170					
171				} else {
172					
173					var grid_side = "left";
174				}
175					
176				//----------------------//
177				/* left item conditions */
178				if(grid_side=="left"){
179					
180					// small items
181					if(grid_item_width=="bsmall"){
182						
183						// small left column 1
184						if(grid_item_left=="0"){ // it's in column 1 on the left
185							
186							var tooltip_class = "grid-sm-left-1";
187							
188						}else{ // it's in the second column on the left
189							
190							var tooltip_class = "grid-sm-left-2";
191						}
192						
193					}
194					
195					// large items
196					if(grid_item_width=="blarge"){
197						
198						if(grid_item_left=="0"){
199							
200							var tooltip_class = "grid-lge-left";
201						}
202						
203					}
204					
205				} // end left items conditions	
206						
207				//-----------------------//
208				/* right item conditions */
209				if(grid_side=="right"){
210					
211					// small items
212					if(grid_item_width=="bsmall"){
213							
214						// small right column 1
215						if(grid_item_left > main_grid_half_width  && grid_item_left < main_grid_three_quarter_width){
216							
217							var tooltip_class = "grid-sm-right-1";
218						}
219						// small right column 2
220						if(grid_item_left > main_grid_three_quarter_width){
221							
222							var tooltip_class = "grid-sm-right-2";
223						}
224						
225					}
226					
227					// large items
228					if(grid_item_width=="blarge"){
229						
230						if(grid_item_left > main_grid_half_width){
231							
232							var tooltip_class = "grid-lge-right";	
233							
234						}
235						
236					}
237					
238				} // end right items conditions	
239						
240				//-------------------------------//
241				/* large centred item conditions */	
242				
243				if(grid_item_width=="blarge"){
244					
245					if(grid_item_left > "0" && grid_item_left < main_grid_half_width){
246						
247						$(this).removeClass('grid-lge-right');
248						$(this).removeClass('grid-lge-left');
249						var tooltip_class = "grid-lge-centre";
250						
251					}
252				}										
253				
254				// remove any previously added classes
255				$(this).removeClass('grid-sm-left-1 grid-sm-left-2 grid-sm-right-1 grid-sm-right-2 grid-lge-left grid-lge-right grid-lge-centre');
256				
257				// now add the new tooltip class
258				$(this).addClass(tooltip_class);
259				
260			});
261			
262		});
263
264	}
265
266
267
268})(jQuery);
269
270
271// global function to add toolip class to body
272(function ($) {
273
274	$.add_tooltip_lock_to_body_class = function(){
275		
276		$('body').addClass('tooltip-open');
277	}
278
279})(jQuery);
280
281
282// global function to remove toolip class from body
283(function ($) {
284
285	$.remove_tooltip_lock_from_body_class = function(){
286		
287		$('body').removeClass('tooltip-open');
288		
289		// remove toolip open class
290		//alert('remove tooltip open class');
291		$('body div.port-toolip').each(function(){
292			$('.port-toolip').removeClass('visible');	
293		});
294		
295		$('.port-toolip-inner').each(function(){
296			$('.port-toolip-inner').removeClass('visible');	
297		});
298	}
299
300})(jQuery);
301
302(function ($) {
303
304	$.switch_portfolio_layout = function(){
305
306	//var $grid = $('.grid');
307
308	// switch portfolio grid layout
309		$('[data-p-view--list]').on('click', function() {
310			$('.grid-item').addClass('grid-item--list');
311			//$grid.isotope('destroy');
312		});
313
314		$('[data-p-view--grid]').on('click', function() {
315			$('.grid-item').removeClass('grid-item--list');
316			//$grid.isotope();
317		});
318
319	}
320
321	$.switch_portfolio_layout();
322
323})(jQuery);

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.