PageSourceSearch

https://find-way.com.ua/plugins/system/joomshopkit/js/custom.js

js find-way.com.ua collected 2026-10-02 13:25:23 UTC 3,859 bytes, 121 lines download raw bytes

1jQuery(function(){
2jQuery("button.list-btn.login").click(function(){
3jQuery(this).next().trigger("click");
4});
5jQuery("button.list-btn.buy").click(function(){
6jQuery(".list-btn.button.buy").trigger("click");
7});
8jQuery("button.list-btn.wl").click(function(){
9jQuery(".list-btn.button.wl").trigger("click");
10});
11jQuery("button.list-btn.cp").click(function(){
12jQuery(".list-btn.button.cp:not('.compare_dnone')").trigger("click");
13});
14if (jQuery(".btn.list-btn.button.remove_comp:not('.compare_dnone')").length){
15jQuery("button.list-btn.cp").attr("data-original-title","Перейти к сравнению");
16} 
17if (jQuery(".btn.list-btn.button.remove_comp.compare_dnone").length){
18jQuery("button.list-btn.cp").attr("data-original-title","Добавить к сравнению");
19}
20jQuery('#rpBrooksTab a').click(function(e){
21e.preventDefault();
22jQuery(this).tab('show');
23});
24
25jQuery(".to-list").click(function(e){
26	jQuery(e.target).parent().prepend("<i class='animate-spin icon-brooksus-spinner'></i>")
27	jQuery.ajax({
28 url: window.location.href,
29 type: "POST",
30 data: {toView: "toList"},
31 success: function(data) { if (data="toList") window.location.reload(); }
32});
33});
34jQuery(".to-grid").click(function(e){
35jQuery(e.target).parent().prepend("<i class='animate-spin icon-brooksus-spinner'></i>")
36jQuery.ajax({
37 url: window.location.href,
38 type: "POST",
39 data: {toView: "toGrid"},
40 success: function(data) { if (data="toGrid") window.location.reload(); }
41});
42});
43
44var len_zoo = jQuery('script[src*="plugins/system/joomshopkit/js/zoomsl-3.0.min.js"]').length;
45var len_elz = jQuery('script[src*="plugins/system/joomshopkit/js/jquery.elevatezoom.min.js"]').length;	
46var len_owl = jQuery('script[src*="/js/owl.carousel.js"]').length;	
47if ((len_zoo===1 || len_elz===1) && !jQuery('body.js-zoomer-off').length){
48jQuery(document).ajaxComplete(function(event, xhr, settings){
49if (settings.url.indexOf('ajax_attrib_select_and_price')!=-1){	
50initDataListZoom();
51initDataZoom();
52}
53});
54}
55if (len_owl===1){
56jQuery(document).ajaxComplete(function(event, xhr, settings){
57if (settings.url.indexOf('ajax_attrib_select_and_price')!=-1){	
58initMinCarusel();
59}
60});
61initMinCarusel();
62}
63if(isTouchDevice()===true) {
64    //jQuery("[rel='tooltip']").tooltip("destroy");
65				jQuery(".attrib").css("display","block");
66} else {
67jQuery('body').tooltip({
68    selector: '[rel=tooltip]'
69});
70}
71});
72
73function isTouchDevice(){
74    return true == ("ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch);
75}
76
77function initMinCarusel(){
78jQuery(".jshop_img_thumb").wrapAll("<div class='owl-carousel owl-height'></div>");
79var owl = jQuery(".jshop.productfull .owl-carousel");
80owl.owlCarousel({
81    loop:false,
82    margin:5,
83    nav:true,
84				navText:['<i class="icon-brooksus-left-open"></i>','<i class="icon-brooksus-right-open"></i>'],
85				autoWidth:false,
86				autoplay:true,
87				autoplaySpeed:1000,
88				center:false,
89				stagePadding:0,
90				dots:false,
91				dotData:false,
92				dotsEach:false,
93				lazyLoad:false,
94				autoplayHoverPause:true,
95				//slideBy:'page',
96				responsive:{
97        0:{
98            items:3
99        },
100        600:{
101            items:3
102        },
103        1000:{
104            items:3
105        }
106    }
107});
108owl.on('mousewheel', '.owl-stage', function (e) {
109    if (e.deltaY>0) {
110        owl.trigger('next.owl');
111    } else {
112        owl.trigger('prev.owl');
113    }
114    e.preventDefault();
115});
116
117jQuery(".jshop.productfull .owl-item img").css("border","none");
118jQuery(".jshop.productfull .owl-carousel .owl-stage-outer").css("background-color","#ffffff");
119jQuery(".jshop.productfull .owl-prev").appendTo(".jshop.productfull .owl-stage-outer");
120jQuery(".jshop.productfull .owl-next").appendTo(".jshop.productfull .owl-stage-outer");
121}

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.