Каталог файловtilda-catalog-1.1.js
301 script.src = 'https://static.tildacdn.' + t_store__getRootZone() + '/js/' + fileName + '.min.js';302 script.onerror = function () {303 console.error('Failed to load tilda-catalog-pagination: ', this.src);304 };305 document.head.appendChild(script);306 }307 308 if (!document.head.querySelector('link[href*="' + fileName + '"]')) {309 link = document.createElement('link');310 link.rel = 'stylesheet';311 link.type = 'text/css';312
История файла и сравнение версий
link.href = 'https://static.tildacdn.' + t_store__getRootZone() + '/css/' + fileName + '.min.css';
314 document.head.appendChild(link); 318 t_onFuncLoad('t_throttle', function () { 319 window.addEventListener( 321 t_throttle(function () { 323 if (options.prodCard && options.prodCard.blockId == '1025') { 324 t_store_unifyCardsWidth(recid); 326 t_store_loadMoreBtn_display(recid); 327 if (options.sidebar || Object.keys(options.filters || {}).length > 1) { 328 t_store_moveSearhSort(recid, options); 330 if (options.showPagination && options.showPagination === 'on') { 331 t_store_onFuncLoad('t_store_pagination_display', function () { 332 t_store_pagination_display(recid); 339 var tStore = rec.querySelector('.t-store'); 342 tStore.addEventListener('displayChanged', function () { 343 setTimeout(function () { 344 t_store_unifyCardsWidth(recid); 349 if (options.popup_opts.fixedButton) { 350 t_store_fixedPopupButton(recid, options); 355 * Pushes a new state to the history object 357 * @param {object} state - The state object that you want to store 358 * @param {string} [title] - The title of the page, affect to Safari 359 * @param {string} [url] - The URL to which the browser will navigate 361function t_store_history_pushState(state, title, url) { 363 if (typeof history.pushState !== 'undefined') { 364 window.history.pushState(state, title, url); 367 console.error(error); 372 * Initialize the product from Snippet 374 * @param {string} recid 375 * @param {object} options 376 * @param {object} product - the options of product 379function t_store_productInit(recid, options, product) { 380 t_onReady(function () { 381 const allRecords = document.getElementById('allrecords'); 384 t_store__setupEndpoint(); 386 t_store_snippet_initProduct(recid, options, product); 390function t_store_snippet_initProduct(recid, options, product) { 391 var rec = document.querySelector('#rec' + recid); 392 var el_product = rec.querySelector('.t-store__product-snippet.js-store-product'); 393 el_product.setAttribute('data-card-size', 'large'); 394 var urlSearch = t_store_snippet_getJsonFromUrl(); 396 if (options.popup_opts.popupContainer === '100') { 397 var productContainer = el_product.querySelector('.t-container'); 398 productContainer.classList.add('t-container_fluid'); 399 productContainer.style.maxWidth = '100%';