PageSourceSearch

https://www.myrec.com/wp-content/themes/myrecmain/js/index_content.js?v=3

js myrec.com collected 2026-10-01 10:38:33 UTC 4,214 bytes, 142 lines download raw bytes

1function calculateFee(revenue){
2	$revenueInt = parseInt(revenue.replace(/\D/g,''));
3	$fee = 3445;
4	if ($revenueInt <= 100000){$fee = 3445;}
5	else if($revenueInt > 100000 && $revenueInt <=150000){$fee = 3845;}
6	else if($revenueInt > 150000 && $revenueInt <=200000){$fee = 4250;}
7	else if($revenueInt > 200000 && $revenueInt <=250000){$fee = 4650;}
8	else if($revenueInt > 250000 && $revenueInt <=300000){$fee = 5050;}
9	else if($revenueInt > 300000 && $revenueInt <=350000){$fee = 5350;}
10	else if($revenueInt > 350000 && $revenueInt <=400000){$fee = 5860;}
11	else if($revenueInt > 400000 && $revenueInt <=450000){$fee = 6260;}
12	else if($revenueInt > 450000 && $revenueInt <=500000){$fee = 6660;}
13	else if($revenueInt > 500000 && $revenueInt <=550000){$fee = 7065;}
14	else if($revenueInt > 550000 && $revenueInt <=600000){$fee = 7465;}
15	else if($revenueInt > 600000 && $revenueInt <=650000){$fee = 7870;}
16	else if($revenueInt > 650000 && $revenueInt <=700000){$fee = 8270;}
17	else if($revenueInt > 700000 && $revenueInt <=750000){$fee = 8675;}
18	else if($revenueInt > 750000 && $revenueInt <=800000){$fee = 9075;}
19	else if($revenueInt > 800000 && $revenueInt <=850000){$fee = 9480;}
20	else if($revenueInt > 850000 && $revenueInt <=900000){$fee = 9880;}
21	else if($revenueInt > 900000 && $revenueInt <=950000){$fee = 10285;}
22	else if($revenueInt > 950000 && $revenueInt <=1000000){$fee = 10685;}
23	else if($revenueInt > 1000000 && $revenueInt <=1500000){$fee = 11830;}
24	else if($revenueInt > 1500000 && $revenueInt <=2000000){$fee = 12975;}
25	else if($revenueInt > 2000000 && $revenueInt <=2500000){$fee = 14120;}
26	else if($revenueInt > 2500000 && $revenueInt <=3000000){$fee = 15260;}
27	else if($revenueInt > 3000000 && $revenueInt <=3500000){$fee = 16410;}
28	else if($revenueInt > 3500000 && $revenueInt <=4000000){$fee = 17550;}
29	else{$fee = 17550 + (Math.ceil((($revenueInt - 4000000) / 500000)) * 1150);}
30	return "$" + $fee;
31}
32
33function getHeightDifference (parent, child){
34	$parent_height = parent.height();
35	$child_height = child.height();
36	return (($parent_height - $child_height)/ 2) + $child_height;
37}
38
39function getHeaderHeight(viewport, navigation){
40	return (viewport - navigation);
41}
42
43$lg = 992;
44$md = 768;
45$sm = 576;
46
47
48function is_mobile(viewportWidth, mobileBreakpoint){
49	return viewportWidth < mobileBreakpoint;
50}
51
52function is_internal(header){
53	return $(header).hasClass('internal-header');
54}
55
56function on_resize(){
57
58	if(is_mobile($viewport_width, $md)){
59		
60		$nav_height = $nav.outerHeight();
61
62		$nav.addClass('position-fixed top-0');
63		$('#fees').css('scroll-margin-top',$nav_height);
64
65		$('.subtitle br').replaceWith(' ');
66
67		$header.height(getHeaderHeight($viewport_height, $nav_height));
68		$header.css('margin-top',$nav_height);
69
70		
71
72		$fee_link.click(function(){
73			$('#main-nav .navbar-collapse').removeClass('show');
74		});
75
76		if(!is_internal($header)){
77			$header.removeClass('space-web-LR').addClass('space-web-TB');
78		}
79		else{
80			$('header').css('height','auto');
81		}
82	}
83	else{
84		if(is_internal($header)){
85			$('header').css('height','auto');
86		}
87	}
88}
89
90$(document).ready(function(){
91	$fee_link = $('#main-nav a[href="/#fees"]');
92
93	// DELETE WHEN LIVE
94	//$fee_link.attr('href','/#fees');
95	// END DELETE WHEN LIVE
96	
97	$viewport_width = $(window).width();
98	$viewport_height = $(window).height();
99	$header = $('header');
100	$nav = $('#main-nav');
101	$nav_ul = $('#menu-main-navigation');
102
103	
104
105	if(!$nav_ul.hasClass('navbar-nav')){
106		$nav_ul.addClass('navbar-nav ms-auto');
107	}
108
109	on_resize();
110
111	$(window).resize(function(){
112		$viewport_width = $(window).width();
113		on_resize();
114	});
115
116
117	
118	$('#calculateRevenueButton').click(function(){
119		$revenue = $('#calculateRevenueField').val();
120		if($revenue == ""){
121			alert("Let's start with a number!");
122		}
123		else{
124			$(".feeOutput").text(calculateFee($revenue));
125			$(".displayFeeGroup").slideDown();
126		}
127		
128	});
129
130	$(".case").hover(function(){
131		$(this).find(".case-caption").fadeToggle();
132	});
133
134	$('.dropdown-center').on('show.bs.dropdown', function() {
135		$(this).find('.dropdown-menu').first().stop(true, true).slideDown();
136	});
137	$('.dropdown-center').on('hide.bs.dropdown', function() {
138		$(this).find('.dropdown-menu').first().stop(true, true).slideUp();
139	});
140  
141
142});

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.