PageSourceSearch

https://expro.ru/bitrix/templates/expro_new_main/js/tilda-products-1.0.min.js

js expro.ru collected 2026-10-09 22:16:46 UTC 1,693 bytes, 1 lines download raw bytes

1function t_prod__init(t){$("#rec"+t).find(".js-product").each(function(){$(this).find(".js-product-option").length&&t_prod__initProduct(t,$(this))})}function t_prod__initProduct(t,r){t_prod__initPrice(t,r),t_prod__addEvents__options(t,r),t_prod__updatePrice(t,r)}function t_prod__initPrice(t,r){if((i=r.find(".js-product-price")).length);else{r.append("<div style='display:none;' class='js-product-price'></div>");var i=r.find(".js-product-price")}var d=i.html();if(void 0!==d&&""!=d){var o=t_prod__cleanPrice(d);i.attr("data-product-price-def",o),d=d.replace(/"/g,""),i.attr("data-product-price-def-str",d)}else i.attr("data-product-price-def","0")}function t_prod__updatePrice(t,r){var i=0,d=0,o=r.find(".js-product-price"),e=o.attr("data-product-price-def");if(e*=1,r.find(".js-product-option-variants").each(function(){var t=$(this).find("option:selected").attr("data-product-variant-price");if(void 0!==t&&""!=t){var r=t_prod__cleanPrice(t);t.indexOf("+")>-1?d+=r:e=r}}),(i+=e+d)>0)o.html(t_prod__showPrice(t_prod__roundPrice(i)));else{var c=o.attr("data-product-price-def-str");o.html(c)}}function t_prod__addEvents__options(t,r){var i=r.find(".js-product-option-variants");i.length&&i.change(function(){var r=$(this).closest(".js-product");t_prod__updatePrice(t,r)})}function t_prod__cleanPrice(t){return void 0===t||""==t||0==t?t=0:(t=(t=t.replace(",",".")).replace(/[^0-9\.]/g,""),t=parseFloat(t).toFixed(2),isNaN(t)&&(t=0),t=parseFloat(t),(t*=1)<0&&(t=0)),t}function t_prod__roundPrice(t){return void 0===t||""==t||0==t?t=0:(t=parseFloat(t).toFixed(2),t=parseFloat(t),(t*=1)<0&&(t=0)),t}function t_prod__showPrice(t){return t=void 0===t||0==t||""==t?"":t.toString().replace(".",",")}

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.