PageSourceSearch

https://s.clickpay.com/wp-content/themes/clickpay/js/functions.js

js clickpay.com collected 2026-09-24 11:50:31 UTC 5,463 bytes, 181 lines download raw bytes

1/* Custom jQuery Functions can go here */
2$(document).ready(function() {
3	// STORIES PAGE:
4	function setClass(div) {
5		$(div).removeClass('col-sm-12 storyHeader').addClass('col-sm-4 story');
6	}
7
8	function hideDiv(div) {
9		$(div).animate({ height:0, width:0, margin:0, opacity:0 })
10	}
11
12	function showHeader(div) {
13		$(div).removeClass('col-sm-4 story').addClass('col-sm-12 storyHeader').animate({ height:'410px', width:'100%', marginRight:'10px', marginBottom:'10px', opacity:1 });
14		$(div).find('div.storyText').show().animate({ opacity:0 });
15		$(div).find('div.storyHeaderText').show().animate({ opacity:1 });
16	}
17
18
19	//function sendForm1(){
20	$("form#salesforce1").submit(function(e){
21
22		var formData ={
23			'first_name'    : $('input[name=first_name]').val(),
24			'last_name'     : $('input[name=last_name]').val(),
25			'email'         : $('input[name=email]').val(),
26			'company'       : $('input[name=company]').val(),
27			'oid'           : $('input[name=oid]').val(),
28			'lead_source'    : $('select[name=lead_source]').val(),			
29			'00N36000008lXnM'    :  $('input[name=00N36000008lXnM]').val(),
30			'00N36000008lXiR'    :  $('input[name=00N36000008lXiR]').val(),
31			'00N3600000EgbrE'    :  $('input[name=00N3600000EgbrE]').val(),
32
33		};
34
35		$.ajax({
36				url         : "http://inf.clickpay.com/l/265342/2016-11-21/2bhf",
37				// url         : "https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8",
38				type        : "POST",
39				data        : formData
40			})
41
42		   .done(function(data) {
43					 // log data to the console so we can see
44					console.log(data); 
45
46				  });
47		   e.preventDefault();
48
49		});
50	 $("form#salesforce1").submit();
51	//}
52
53	//send form 2
54	$("form#salesforce2").submit(function(e){
55
56		var formData ={
57			'first_name'    : $('input[name=first_name]').val(),
58			'last_name'     : $('input[name=last_name]').val(),
59			'email'         : $('input[name=email]').val(),
60			'company'       : $('input[name=company]').val(),
61			'phone'         : $('input[name=phone]').val(),
62			'oid'           : $('input[name=oid]').val(),
63			'lead_source'   : $('select[name=lead_source]').val(),
64			'00N36000008lXnM'    :  $('input[name=00N36000008lXnM]').val(),
65			'00N36000008lXiR'    :  $('input[name=00N36000008lXiR]').val(),
66			'00N3600000EgbrE'    :  $('input[name=00N3600000EgbrE]').val(),
67		};
68
69		$.ajax({
70				url         : "http://inf.clickpay.com/l/265342/2016-11-21/2bhf",
71				// url         : "https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8",
72				type        : "POST",
73				data        : formData
74			})
75
76		   .done(function(data) {
77					// log data to the console so we can see
78					console.log(data); 
79
80				  });
81		   e.preventDefault();
82
83		});
84	 $("form#salesforce2").submit();
85
86
87	// Support Wizard
88	var $wizard = $('#support-wizard'),
89		$openWizard = $('.open-wizard'),
90		$wizardDesc = $('#support-wizard #wizard-desc'),
91		$closeWizard = $('#support-wizard #close-me'),
92		$wizardSlider = $('#support-wizard .wizard-slider'),
93		$wizardToggle = $('#wizard-toggle');
94	
95	var wizardSliderConfig = {
96		arrows: false,
97		draggable: false,
98		fade: true,
99		adaptiveHeight: true
100	};
101
102	$openWizard.on('click', function(e) {
103		e.preventDefault();
104		
105		var $this = $(this),
106			wizardStart = $this.data('wizard-start') || 'resident';
107		
108		$('html').addClass('wizard-open');
109		
110		
111		$wizard.fadeIn('fast', function() { 
112			$wizardSlider.on('init', function() {
113				$wizardDesc.html('Contact Us');
114				$('#support-wizard #wizard-' + wizardStart).addClass('visible');
115				$('#wizard-toggle #toggle-button .toggle-item.toggle-' + wizardStart).addClass('visible');
116			}).slick(wizardSliderConfig);
117		});
118	});
119	
120	$wizardSlider.on({
121		beforeChange : function(event, slick, currentSlide, nextSlide) {
122			if (nextSlide === 0) {
123				$wizardDesc.html('Contact Us');
124			} else {
125				$wizardDesc.html('<div class="wizard-back" data-wizard-to="0">Back</div>');
126			}
127			$('#toggle-switcher').removeClass('open-switcher');
128		}
129	});
130	
131	
132	$closeWizard.on('click', function(e) {
133		e.preventDefault();
134		
135		$wizard.fadeOut('fast', function() {
136			$wizardSlider.slick('destroy');
137			$('html').removeClass('wizard-open');
138			$('#support-wizard .wizard-content').removeClass('visible');
139			$('#wizard-toggle #toggle-button .toggle-item').removeClass('visible');
140		});
141	});
142	
143	$wizard.on({
144		click: function() {
145			$closeWizard.trigger('click');
146		}
147	}, '.background-shade');
148	
149	$wizard.on({
150		mouseleave: function() {
151			$('#toggle-switcher').removeClass('open-switcher');
152		}
153	}, '#wizard-toggle');
154	
155	$(document).on('click', '[data-wizard-to]', function() {
156		var $this = $(this),
157			goTo = parseInt($this.data('wizard-to')) || 0;
158		$('#support-wizard .wizard-content.visible .wizard-slider').slick('slickGoTo', goTo);
159	});
160	
161	$(document).on('click', '[data-toggle-wizard]', function() {
162		var $this = $(this),
163			goTo = $this.data('toggle-wizard') || 'manager';
164		
165			$('#support-wizard .wizard-content').removeClass('visible');
166			$('#support-wizard .wizard-content .wizard-slider').slick('slickGoTo', 0);
167			$('#wizard-' + goTo + '.wizard-content').addClass('visible');
168
169			$('#wizard-toggle #toggle-button .toggle-item').removeClass('visible'); 
170			$('#wizard-toggle #toggle-button .toggle-item.toggle-' + goTo).addClass('visible');
171		
172			$('#wizard-toggle #toggle-switcher').removeClass('open-switcher');
173	});
174	
175	$wizardToggle.on('click', '#toggle-button', function() {
176		$(this).siblings('#toggle-switcher').toggleClass('open-switcher');
177	});
178	
179	
180
181});

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.