PageSourceSearch

https://opencart1c.ru/index.php?route=journal2/assets/js

js opencart1c.ru collected 2026-10-09 22:46:37 UTC 3,248 bytes, 126 lines download raw bytes

1Journal.contactPrivacy = parseInt('0', 10);
2Journal.contactPrivacyError = '';
3
4Journal.notificationTimer = parseInt('1500', 10);
5
6Journal.quickviewText = 'Быстрый просмотр';
7
8Journal.scrollToTop = parseInt('1', 10);
9
10Journal.searchInDescription = true;
11
12Journal.galleryZoom = true;
13Journal.galleryThumb = true;
14Journal.galleryThumbHide = true;
15Journal.galleryThumbWidth = parseInt('100', 10);
16Journal.galleryThumbHeight = parseInt('100', 10);
17Journal.galleryThumbSpacing = parseInt('7', 10);
18Journal.galleryBarsDelay = parseInt('5000', 10);
19
20Journal.infiniteScrollStatus = false;
21Journal.infiniteScrollLoadingText = 'Загружается...';
22Journal.infiniteScrollNoMoreItemsText = 'You\ve reached the end.';
23Journal.infiniteScrollLoadMoreItemsText = 'Больше продуктов';
24Journal.infiniteScrollLoadMoreItemsOffset = parseInt('3', 10);
25Journal.hasCountdownEnabled = true;
26Journal.hasStickyScroll = 1;
27
28
29Journal.BASE_HREF = 'url(' + $('base').attr('href') + ')';
30
31$(document).ready(function () {
32
33$(".product-page .rating a").click(function() {
34    $('html, body').animate({
35        scrollTop: $("#tabs").offset().top - 50
36    }, 600);
37});
38
39if ($('html').hasClass('filter-on-mobile')) {
40$('.journal-sf').before($('<div class="open-filter" style="display:none">Open Filters</div>'));
41$('.open-filter').on('click', function () {
42var $filter = $('.journal-sf .box').first();
43if ($filter.hasClass('is-visible')) {
44$('.side-column .journal-sf .box').slideUp(300);
45$('.sf-reset').fadeOut(200);
46$filter.removeClass('is-visible');
47} else {
48$('.side-column .journal-sf .box').slideDown(300);
49$('.sf-reset').fadeIn(200);
50$filter.addClass('is-visible');
51}
52});
53}
54
55Journal.productPage();
56
57  Journal.enableStickyHeader(0);
58
59  $('header').addClass('menu-cart-off');
60
61  $(window).scroll( function() {
62  if ($(window).scrollTop() > $('.journal-cart').offset().top){
63  $('header').addClass('phone-sticky-cart');
64  }
65  else{
66  $('header').removeClass('phone-sticky-cart');
67  }
68
69  if ($(window).scrollTop() > $('.journal-cart').offset().top + 40){
70  $('header').addClass('phone-sticky-menu');
71  }
72  else{
73  $('header').removeClass('phone-sticky-menu');
74  }
75  });
76
77
78  $('.product-tabs').insertAfter('.product-info');
79
80  Journal.enableProductOptions();
81  Journal.updatePrice = true;
82
83  Journal.enableSideBlocks();
84
85  Journal.searchAutoComplete();
86
87  Journal.enableQuickView();
88  Journal.quickViewStatus = true;
89
90  if ($('html').hasClass('product-page') || $('html').hasClass('quickview')) {
91  Journal.enableCloudZoom('inner');
92  }
93
94  Journal.productPageGallery();
95
96
97  $(window).scroll(function () {
98  if ($(this).scrollTop() > 300) {
99  $('.scroll-top').fadeIn(200);
100  } else {
101  $('.scroll-top').fadeOut(200);
102  }
103  });
104
105  $('.scroll-top').click(function () {
106  $('html, body').animate({scrollTop: 0}, 700);
107  });
108
109
110$('#top-modules > .hide-on-mobile').parent().addClass('hide-on-mobile');
111$('#bottom-modules > .hide-on-mobile').parent().addClass('hide-on-mobile');
112
113$('#top-modules .gutter-on').parent().addClass('gutter');
114$('#bottom-modules .gutter-on').parent().addClass('gutter');
115
116if (Journal.infiniteScrollStatus && $('.main-products').length) {
117Journal.infiniteScroll();
118}
119
120$(window).resize();
121
122Journal.init();
123});
124
125/* Custom JS */
126

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.