PageSourceSearch

https://peptideprime.co/wp-content/plugins/review-manager/assets/js/mrm-script.js?ver=7.1.3

js peptideprime.co collected 2026-10-08 07:39:34 UTC 4,195 bytes, 130 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3    var rmtop = $("#rmtop");
4    var rmbottom = $("#rmbottom");
5    var slidesPerPage = 1; //globaly define number of elements per page
6    var syncedSecondary = true;
7
8    rmtop.owlCarousel({
9        items: 1,
10        slideSpeed: 2000,
11        nav: true,
12        autoplay: false,
13        dots: false,
14        loop: true,
15        responsiveRefreshRate: 200,
16        navText: ["<img src='/wp-content/plugins/review-manager/assets/images/angle-pre.png'>", "<img src='/wp-content/plugins/review-manager/assets/images/angle-next.png'>"],
17    }).on('changed.owl.carousel', syncPosition);
18
19    rmbottom
20            .on('initialized.owl.carousel', function () {
21                rmbottom.find(".owl-item").eq(0).addClass("current");
22                rmtop.find(".active").addClass("current"); // added by mrm
23            })
24            .owlCarousel({
25                items: slidesPerPage,
26                dots: false,
27                nav: false,
28                smartSpeed: 200,
29                slideSpeed: 500,
30                responsive: {
31                    0: {
32                        items: 1
33                    },
34                    1024: {
35                        items: 1
36                    },
37                    1200: {
38                        items: 4
39                    }
40                },
41                slideBy: slidesPerPage, //alternatively you can slide by 1, this way the active slide will stick to the first item in the second carousel
42                responsiveRefreshRate: 100
43            }).on('changed.owl.carousel', syncPosition2);
44
45    function syncPosition(el) {
46        //if you set loop to false, you have to restore this next line
47        //var current = el.item.index;
48
49        //if you disable loop you have to comment this block
50        var count = el.item.count - 1;
51        var current = Math.round(el.item.index - (el.item.count / 2) - .5);
52
53        if (current < 0) {
54            current = count;
55        }
56        if (current > count) {
57            current = 0;
58        }
59
60        //end block
61
62        rmbottom
63                .find(".owl-item")
64                .removeClass("current")
65                .eq(current)
66                .addClass("current");
67        var onscreen = rmbottom.find('.owl-item.active').length - 1;
68        var onscreen = rmtop.find('.owl-item.active').length - 1; // Added MRM
69        var start = rmbottom.find('.owl-item.active').first().index();
70        var end = rmbottom.find('.owl-item.active').last().index();
71
72        if (current > end) {
73            rmbottom.data('owl.carousel').to(current, 100, true);
74        }
75        if (current < start) {
76            rmbottom.data('owl.carousel').to(current - onscreen, 100, true);
77        }
78        
79        
80        rmtop.find(".owl-item").removeClass("current"); // added by mrm
81        rmtop.find(".active").addClass("current"); // added by mrm
82        
83    }
84
85    function syncPosition2(el) {
86        if (syncedSecondary) {
87            var number = el.item.index;
88            rmtop.data('owl.carousel').to(number, 100, true);
89        }
90    }
91
92    rmbottom.on("click", ".owl-item", function (e) {
93        e.preventDefault();
94        var number = $(this).index();
95        rmtop.data('owl.carousel').to(number, 300, true);
96        
97        
98         rmtop.find(".owl-item").removeClass("current"); // added by mrm
99         rmtop.find(".active").addClass("current"); // added by mrm
100         
101    });
102
103// Popup
104
105    /*
106    $(".rm-onclick").on('click', function () {
107        var itemid = $(this).attr('itemid');
108        $("#rm-modal-" + itemid).addClass('model-open');
109    });
110   
111    $(".rm-close-btn, .bg-overlay").click(function () {
112        $(".rm-model").removeClass('model-open');
113    });
114    */
115    
116    
117    $(".rm-onclick").on('click', function () {
118        var itemid = $(this).attr('itemid');
119        $("#rm-modal-" + itemid).addClass('model-open');
120    });
121    
122    
123    
124    $(".rm-close-btn, .rm-bg-overlay").click(function () {
125        $(".rm-model").removeClass('model-open');
126    });
127    
128    
129    
130});

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.