PageSourceSearch

https://www.tprinternational.com/wp-content/themes/tprinternational/js/custom.js?ver=1.2.3

js tprinternational.com collected 2026-10-07 00:53:34 UTC 2,605 bytes, 90 lines download raw bytes

1jQuery(document).ready(function( $ ) {
2
3	//* add class to header on scroll
4	toggle_fixed_header();
5	$( document ).on( "scroll", toggle_fixed_header);
6	
7	function toggle_fixed_header() {
8		var y = $( document ).scrollTop();
9		if ( y > 0 ) {
10			$( ".site-header" ).addClass( "fixed" );
11		} else {
12			$( ".site-header" ).removeClass( "fixed" );
13		}
14	}
15
16	//* search box toggle
17	$( document ).on( "click", ".dashicons-search", function(){
18			$( ".site-header .widget-area .widget_search" ).slideToggle( "slow" );
19	});
20
21	//* home technology panel left/right padding
22	function technology_right_padding() {
23			var total_width = $( window ).width();
24			var wrap_width = $( '.wrap' ).width();
25			var both_side_paddings =  total_width - wrap_width;
26
27			//* right side
28			var right_side_padding = both_side_paddings / 2;
29			if ( window.innerWidth > 1450 ) {
30					right_side_padding = right_side_padding - 156;
31			} else {
32					right_side_padding = right_side_padding / 2;
33			}
34			$( ".home-technology-panel .cont" ).css({ "padding-right": right_side_padding });
35
36			//* left side
37			var left_side_padding = both_side_paddings / 2;
38	//     if ( window.innerWidth > 1450 ) {
39	//         left_side_padding = left_side_padding - 64;
40	//     }else {
41					//left_side_padding = left_side_padding / 2;
42			//}
43			$( ".headline-panel-cell, .tech-boxes" ).css({ "padding-left": left_side_padding });
44	}
45
46	//* call function on widnow load and resize
47	$( window ).on( "load", function(){
48			technology_right_padding();
49	});
50	$( window ).on( "resize", function(){
51			technology_right_padding();
52	});
53
54	//* About page tabs
55	$( document ).ready( function( $ ){
56
57		$( ".sow-tab-icon-image" ).each( function(){
58				this.src = this.src.replace( "-150x150", "" );
59		});
60		
61		var subTitles = "";
62		
63		$( "#leadership-tab-section .sow-tabs-panel h5" ).each( function(){
64			subTitles = [];
65			subTitles = $( "#leadership-tab-section .sow-tabs-panel h5 em" ).map( function(){
66				return $( this ).text();
67			}).get();
68		});
69		
70		$( "#leadership-tab-section .sow-tabs-title" ).each( function( i ){
71			$( this ).append( "<h5 class='sub-title'>"+ subTitles[i] +"</h5>" );
72		});
73		
74		//Remove dimension from the “src” attribute using jQuery
75		$(".sow-tabs-title img").each(function(){
76			$(this).attr('src',$(this).attr('src').replace('-150x150', ''));
77		});
78
79	});
80
81	//* mobile header
82	$( document ).on( "click", ".menu-icon", function(){
83			$( this ).addClass( "active" );
84			$( ".primary-navigation" ).slideToggle( "slow" );
85	});
86	$( document ).on( "click", ".menu-icon.active", function(){
87			$( this ).removeClass( "active" );
88	});
89
90});

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.