PageSourceSearch

https://www.penguinstrategies.com/hubfs/hub_generated/template_ass…/1740628149022/template_custom.js

js penguinstrategies.com collected 2026-09-28 10:29:45 UTC 3,387 bytes, 101 lines download raw bytes

1$(document).ready(function(){
2   
3   //menu show hide function
4    $('#menu-toggle-button').click(function(){
5        $(this).toggleClass('active');
6    	$('.vertical-menu-wrapper').toggleClass('visible'); 
7    });
8    
9    $('body').click(function(evt){    
10        if(!$(evt.target).closest('#menu-toggle-button, .vertical-menu > ul').length){
11    		$('.vertical-menu-wrapper').removeClass('visible');
12    		$('#menu-toggle-button').removeClass('active');
13    	}
14    });
15    
16    
17    // Pricing Page Plan Boxes
18    
19    if($('.plan-pricing-box').length > 0 )
20    {
21        $('.plan-pricing-box a').on('click',function(){
22        	$('.plan-pricing-box a').removeClass('active');
23        	$('.plan-pricing-box a').text('select');
24        	var planType = $(this).attr('data-value');
25        	$(this).addClass('active');
26        	$(this).text('selected');
27        	console.log(planType);
28        	$('.pricing-form').find('input[name="pricing_plan_type"]').attr('value',planType);
29        	
30        	var headerOffset = jQuery('.header-container-wrapper').outerHeight(true);
31        	var scrollTo=jQuery('#servicesList').offset().top - ( headerOffset );
32        	window.scrollTo(0,scrollTo);
33        	
34        });
35    }
36    
37    if($('#CustomForm').length > 0)
38    {
39        $('#monthly_ongoing_services .checkbox-section input[type="checkbox"]').on('click', function(){
40            var monthlyServices = [];
41            $('#monthly_ongoing_services .checkbox-section :checkbox:checked').each(function(i){
42                monthlyServices[i] = $(this).val();
43            });
44            
45        	console.log("monthlyServices = "+monthlyServices.toString());
46            
47            $('.pricing-form').find('input[name="ongoing_monthly_services"]').attr('value',monthlyServices.toString());
48        });
49        
50        $('#one_time_services .checkbox-section input[type="checkbox"]').on('click', function(){
51            var oneTimeServices = [];
52            $('#one_time_services .checkbox-section :checkbox:checked').each(function(i){
53                oneTimeServices[i] = $(this).val();
54            });
55        	console.log("oneTimeServices = "+oneTimeServices.toString());
56        	$('.pricing-form').find('input[name="one_time_service"]').attr('value',oneTimeServices.toString());
57        });
58    }
59    
60    
61    //Home page service box
62    
63    /*$('.service-box-outer').mouseleave(function(){
64    	$('.service-box-wrapper.front').show();
65        $('.service-box-wrapper.back').removeClass('slide-in-fwd-center');
66    });
67
68    $('.service-box-outer').mouseenter(function(){
69    	$(this).find('.front').hide();
70        $(this).find('.service-box-wrapper.back').addClass('slide-in-fwd-center');
71    });*/
72  
73
74  if ($(".double_company .portfolio-content").length > 0) {
75    $(".double_company .portfolio-content").each(function(){
76      var heights = $(".double_company .portfolio-content").map(function (){
77        return $(this).outerHeight();
78      }).get(),
79
80          maxHeight = Math.max.apply(null, heights);
81      $(".double_company .portfolio-contentr").css('min-height',maxHeight,'px');
82    });
83  }
84        
85    
86});
87
88
89$(window).scroll(function(){
90    
91  //menu show hide function    
92  var sticky = $('.header-container-wrapper'),
93      scroll = $(window).scrollTop();
94
95  if(scroll >= 100){ 
96	$(sticky).addClass('fixed');
97  }else{
98	 $(sticky).removeClass('fixed');
99  }
100    
101});

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.