PageSourceSearch

https://vezuchii.ru/assets/js/landing/calculator.js

js vezuchii.ru collected 2026-10-05 00:19:52 UTC 1,554 bytes, 45 lines download raw bytes

1function init(num){
2	$('#slider_'+num+'_1').scpSlider();
3		$('#slider_'+num+'_2').scpSlider();
4		$('#slider_'+num+'_3').scpSlider();
5		$('#slider_'+num+'_3').scpSlider('disable');
6		$('#checkbox_gruz_'+num+'').on('change', function(){
7			if($('#checkbox_gruz_'+num+'')[0].checked){
8				$('#slider_'+num+'_3').scpSlider('enable');
9			}else{
10				$('#slider_'+num+'_3').scpSlider('disable');
11			}
12			$('#cost_'+num+'').html(calc(num)+' руб.');
13
14		});
15		$('#checkbox_sbor_'+num+'').on('change', function(){
16			if($('#checkbox_gruz_'+num)[0].checked){
17				$('#slider_'+num+'_3').scpSlider('enable');
18			}else{
19				$('#slider_'+num+'_3').scpSlider('disable');
20			}
21			$('#cost_'+num+'').html(calc(num)+' руб.');
22		});
23		$('#slider_'+num+'_1').on('slide', function(e){
24			$('#cost_'+num+'').html(calc(num)+' руб.')
25		});
26		$('#slider_'+num+'_2').on('slide', function(e){
27			$('#cost_'+num+'').html(calc(num)+' руб.')
28		});
29		$('#slider_'+num+'_3').on('slide', function(e){
30			$('#cost_'+num+'').html(calc(num)+' руб.')
31		});	
32}
33		function calc(num){
34			var mashines = [600,800,900];
35			var hours = parseInt($('#slider_'+num+'_1').scpSlider('val'));
36			var dis = parseInt($('#slider_'+num+'_2').scpSlider('val'));
37			var gruz = $('#checkbox_gruz_'+num)[0].checked?parseInt($('#slider_'+num+'_3').scpSlider('val')):0;
38			var sbor = $('#checkbox_sbor_'+num)[0].checked?1200:0;
39			return hours * mashines[num-1] + dis*30 + gruz*300*hours +sbor*((300*hours)/1200);
40		}
41		$(document).ready(function(){
42			for(var i=1; i<4; i++){
43				init(i);
44			}
45		});

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.