PageSourceSearch

https://www.lojaintt.com.br/common/js/product-page.js?v=1790278114

js lojaintt.com.br collected 2026-09-26 10:09:16 UTC 889 bytes, 29 lines download raw bytes

1var productPage = {};
2
3// URLs
4
5// Static variables
6productPage.optionSectionSelector = 'section.options-section div.options li';
7
8// Product page functions
9productPage.handleSelectedProductOption = function () {
10    const urlParams = new URLSearchParams(window.location.search);
11    const selectedProductOptionId = urlParams.get('opcaoProdutoSelecionada');
12
13    const selectedProductOption = $(productPage.optionSectionSelector).find(
14        `span.color[data-sku="${selectedProductOptionId}"]`
15    );
16    if (!selectedProductOption.length) {
17        return
18    }
19
20    selectedProductOption.click();
21}
22
23// Execution at file load time
24$(function () {
25    if (!$('input#exibiropcoesprodutonaslistas').length || $('input#exibiropcoesprodutonaslistas').val() != 's') {
26        return;
27    }
28    lazyLoadService.addFunctionToQueueAfterInteraction(productPage.handleSelectedProductOption);
29});

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.