PageSourceSearch

https://maritagolden.com/wp-content/plugins/wp-ultimate-review/assets/public/script/content-page.js?ver=2.4.3

js maritagolden.com collected 2026-09-24 21:54:16 UTC 3,962 bytes, 162 lines download raw bytes

1(function ($) {
2    'use strict';
3
4    $(function () {
5        /**
6         * Review Form
7         */
8        var $reviewForm = $('#xs_review_form_public_data');
9
10        if ( $reviewForm.length && typeof Storage !== 'undefined' && localStorage.getItem('review_form') ) {
11            $('html, body').animate({
12                scrollTop: $('#xs-user-review-box').offset().top - 30
13            }, 1200);
14
15            localStorage.removeItem('review_form');
16        }
17
18        $reviewForm.on('submit', function () {
19            var $el = $(this);
20
21            if (typeof Storage !== 'undefined') {
22                localStorage.setItem('review_form', '1');
23            }
24        });
25    });
26}(jQuery));
27
28
29/* Ratting script */
30jQuery(function () {
31
32    jQuery('#xs_review_stars li').on('mouseover', function () {
33        var onStar = parseInt(jQuery(this).data('value'), 10); // The star currently mouse on
34        jQuery(this).parent().children('li.star-li').each(function (e) {
35            if(e < onStar) {
36                jQuery(this).addClass('hover');
37            }
38            else {
39                jQuery(this).removeClass('hover');
40            }
41        });
42
43    }).on('mouseout', function () {
44        jQuery(this).parent().children('li.star-li').each(function (e) {
45            jQuery(this).removeClass('hover');
46        });
47    });
48
49
50    jQuery('#xs_review_stars li').on('click', function () {
51        var onStar = parseInt(jQuery(this).data('value'), 10); // The star currently selected
52        var stars = jQuery(this).parent().children('li.star-li');
53
54        for(i = 0; i < stars.length; i++) {
55            jQuery(stars[i]).removeClass('selected');
56        }
57
58        for(i = 0; i < onStar; i++) {
59            jQuery(stars[i]).addClass('selected');
60        }
61
62        var displayId = jQuery(this).parent().parent().children('input#ratting_review_hidden');
63        displayId.val(onStar);
64
65        var msg = "";
66        if(onStar > 1) {
67            msg = "<strong>" + onStar + "</strong>";
68        }
69        else {
70            msg = "<strong>" + onStar + " </strong>";
71        }
72        responseMessage(msg);
73
74    });
75
76
77});
78
79
80function responseMessage(msg) {
81    jQuery('#review_data_show').fadeIn(200);
82    jQuery('#review_data_show').html("<span>" + msg + "</span>");
83}
84
85
86/*Slider range*/
87jQuery(document).ready(function () {
88
89    var sliderReview = jQuery("#xs_review_range");
90    var outputReview = jQuery("#review_data_show");
91    if(sliderReview.length > 0) {
92        outputReview.html(sliderReview.val());
93        sliderReview.on('change', function () {
94            outputReview.html(jQuery(this).val());
95        });
96    }
97
98});
99
100jQuery(document).ready(function ($) {
101
102    $('canvas.wur_pie').each(function (idx, elm) {
103
104        draw_pic_chart(elm, idx);
105    });
106
107});
108
109function draw_pic_chart(elm, color_index) {
110
111    var idx = color_index % 10;
112    var color_set = [
113        '#1f77b4',
114        '#ff7f0e',
115        '#2ca02c',
116        '#d62728',
117        '#9467bd',
118        '#8c564b',
119        '#e377c2',
120        '#7f7f7f',
121        '#bcbd22',
122        '#17becf'
123    ];
124
125    var base_color = '#555';
126    var arc_color = '#f00';
127    var stroke_wd = 10;
128
129    var x = elm.width / 2;
130    var y = elm.height / 2;
131
132    var base = elm.dataset.base;
133    var point = elm.dataset.rating;
134
135    var radius = elm.dataset.rad || 40;
136
137    var fill_up_angle = 360 * point / base;
138
139    var s_angle = -90;
140    var e_angle = s_angle + fill_up_angle;
141
142    var startAngle = s_angle / 180 * Math.PI;
143    var endAngle = e_angle / 180 * Math.PI;
144    var counterClockwise = false;
145
146
147    var context = elm.getContext('2d');
148
149    context.beginPath();
150    context.lineWidth = 3;
151    context.strokeStyle = '#fff';
152    context.arc(x, y, radius, 0, 360);
153    context.stroke();
154
155    context.beginPath();
156    context.lineWidth = 3;
157    context.strokeStyle = color_set[idx];
158    context.arc(x, y, radius, startAngle, endAngle, counterClockwise);
159    context.stroke();
160
161    return true;
162}

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.