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.