PageSourceSearch

https://bintel.com.ua/js/functions.js

js bintel.com.ua collected 2026-10-02 13:07:27 UTC 1,833 bytes, 72 lines download raw bytes

1function replaceCheckbox(el) {
2	el.css("display", "none");
3
4	if (el.is(":checked")) {
5		var sClass="styledCheckbox checked";
6		var state=1;
7	} else {
8		var sClass="styledCheckbox";
9		var state=0;
10	}
11
12	el.after('<div elId="'+el.attr("id")+'" state="'+state+'" class="'+sClass+'"></div>');
13
14	$(".styledCheckbox").live('click', function() {
15		if ($(this).attr("state") == 0) {
16			$(this).attr("state", 1);
17			$("#"+$(this).attr("elId")).attr("checked", "checked");
18			$(this).addClass("checked");
19		} else {
20			$(this).attr("state", 0);
21			$("#"+$(this).attr("elId")).removeAttr("checked");
22			$(this).removeClass("checked");
23		}
24	});
25}
26
27function updateSymLength(max) {
28	if (symbolsNum >= 2000) {
29		str = $("#photoDescrTextarea").val();
30		$("#photoDescrTextarea").val(str.substring(0, 2000));
31		$("#infoSymbolsLeft").html('0');
32		return false;
33	} else {
34		symbolsNum = $("#photoDescrTextarea").val().length;
35		$("#infoSymbolsLeft").html((2000-symbolsNum));
36	}
37}
38
39$(document).ready(function() {
40	/*$(".root-category-item").mouseenter(function() {
41		$(this).find(".submenu-lvl1").show();
42	}).mouseleave(function() {
43		$(this).find(".submenu-lvl1").hide();
44	});
45
46	$(".submenu-lvl1-item").mouseenter(function() {
47		$(this).find(".submenu-lvl2").show();
48	}).mouseleave(function() {
49		$(this).find(".submenu-lvl2").hide();
50	});*/
51
52	var articlePurchaseForm = $("#get-article-purchase-data-form");
53
54	articlePurchaseForm.on('submit', function(event) {
55		if (!articlePurchaseForm[0].checkValidity()) {
56			return false;
57		}
58
59		event.preventDefault();
60
61		$.ajax({
62			type: 'POST',
63			url: articlePurchaseForm.attr("action"),
64			data: new FormData(articlePurchaseForm[0]),
65			processData: false,
66			success: function(data) {
67	            $("#purchase-form-container").html(data);
68	            $("#purchase-form").submit();
69	        },
70		});
71	});
72});

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.