PageSourceSearch

https://www.rcv.co.uk/wp-content/plugins/stars-testimonials-with-s…/js/read-more.js?ver=6.4.13

js rcv.co.uk collected 2026-10-09 18:23:11 UTC 2,338 bytes, 56 lines download raw bytes

1(function (factory) {
2    "use strict";
3    if (typeof define === 'function' && define.amd) {
4        define(['jquery'], factory);
5    }
6    else if(typeof module !== 'undefined' && module.exports) {
7        module.exports = factory(require('jquery'));
8    }
9    else {
10        factory(jQuery);
11    }
12}(function ($, undefined) {
13    $(document).ready(function(){
14        $(document).on("click", ".stars-testimonials .stars-read-more", function(e){
15            e.preventDefault();
16            addStarsPopupCode();
17            var htmlContent = $(this).closest(".premio-read-more-content").find(".read-more-content").html();
18            $("#stars-content-area").html(htmlContent);
19            $("#star-testimonial-box").addClass("active");
20            setTimeout(function(){
21                $(".star-testimonial-content-area").addClass("active");
22            }, 100);
23        });
24
25        $(document).on("click", "#star-testimonial-box", function(){
26
27            $("#star-testimonial-content-area").removeClass("active");
28            setTimeout(function(){
29                $("#star-testimonial-box").removeClass("active");
30            }, 100);
31        });
32
33        $(document).on("click", ".close-stars-testimonial", function(e){
34            e.stopPropagation();
35            e.preventDefault();
36            $("#star-testimonial-content-area").removeClass("active");
37            setTimeout(function(){
38                $("#star-testimonial-box").removeClass("active");
39            }, 100);
40        });
41
42        $(document).on("click", "#star-testimonial-content", function(e){
43            e.stopPropagation();
44        });
45    });
46
47    function addStarsPopupCode() {
48        if(!$("#star-testimonial-box").length) {
49            $("body").append("<div id='star-testimonial-box' class='star-testimonial-box'></div>");
50            $("#star-testimonial-box").append("<div id='star-testimonial-content' class='star-testimonial-content'></div>");
51            $("#star-testimonial-content").append("<div id='star-testimonial-content-area' class='star-testimonial-content-area'></div>");
52            $("#star-testimonial-content-area").append("<a href='#' class='close-stars-testimonial'><span></span></a>");
53            $("#star-testimonial-content-area").append("<div id='stars-content-area' class='stars-content-area'></div>");
54        }
55    }
56}));

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.