|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/nandedex/www/s.nandedexpress.com/ |
PK x��[tW 4
js/admin-script.jsnu �[��� var Better_Reviews_Admin = (function ($) {
"use strict";
// module
return {
init: function () {
this.prepare_overall_rating_label();
},
prepare_overall_rating_label: function () {
if ($(".bf-section-repeater-option[data-id=_bs_review_criteria]").length <= 0)
return;
Better_Reviews_Admin.calculate_overall_rating();
$('input').on('change', function () {
if ($(this).attr('name') == 'bf-metabox-option[bs_review_metabox][_bs_review_rating_type]') {
Better_Reviews_Admin.calculate_overall_rating();
}
});
$(".bf-section-repeater-option[data-id=_bs_review_criteria]").on('change', '.bs-review-field-rating input', function () {
Better_Reviews_Admin.calculate_overall_rating();
});
$(".bf-section[data-id=_bs_review_criteria]").on('repeater_item_added', function () {
Better_Reviews_Admin.calculate_overall_rating();
});
$(".bf-section[data-id=_bs_review_criteria]").on('after_repeater_item_removed', function () {
Better_Reviews_Admin.calculate_overall_rating();
});
},
add_span: function () {
if ($(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label").length > 0) {
return $(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label i");
}
$(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3").append('<span class="overall-label">' + better_reviews_loc.overall_rating + ' ( <i>-</i> )</span>');
return $(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label i");
},
calculate_overall_rating: function () {
var $parent = $(".bf-section-repeater-option[data-id=_bs_review_criteria]");
// Adds Overall Rating Span
var $num = Better_Reviews_Admin.add_span();
var total = 0;
$parent.find('.bs-review-field-rating input[type=text]').each(function (index) {
if (parseFloat($(this).val()))
total += parseFloat($(this).val());
});
console.log($parent.find('.bs-review-field-rating input'));
$num.html(Better_Reviews_Admin.format_overall_rating_number(total, $parent.find('.bs-review-field-rating input').length));
},
format_overall_rating_number: function (sum, length) {
var type = $('[data-id=_bs_review_rating_type] .bf-controls-image_radio-option input[type=radio]:checked').val();
switch (type) {
case 'percentage':
case 'stars':
return Math.round(( ( sum * 10 ) / length ) * 10) / 10 + '%';
break;
case 'points':
return Math.round(( sum / length ) * 10) / 10;
break;
}
return Math.round(( sum / length ) * 10) / 10;
}
};
})(jQuery);
// Load when ready
jQuery(function ($) {
Better_Reviews_Admin.init();
});PK x��[K;��4 4 js/better-reviews.jsnu �[��� jQuery(function ($) {
var docCookies = {
getItem: function (sKey) {
if (!sKey) {
return null;
}
return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null;
},
setItem: function (sKey, sValue, vEnd, sPath, sDomain, bSecure) {
if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) {
return false;
}
var sExpires = "";
if (vEnd) {
switch (vEnd.constructor) {
case Number:
sExpires = vEnd === Infinity ? "; expires=Fri, 31 Dec 9999 23:59:59 GMT" : "; max-age=" + vEnd;
break;
case String:
sExpires = "; expires=" + vEnd;
break;
case Date:
sExpires = "; expires=" + vEnd.toUTCString();
break;
}
}
document.cookie = encodeURIComponent(sKey) + "=" + encodeURIComponent(sValue) + sExpires + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : "") + (bSecure ? "; secure" : "");
return true;
},
removeItem: function (sKey, sPath, sDomain) {
if (!this.hasItem(sKey)) {
return false;
}
document.cookie = encodeURIComponent(sKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT" + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : "");
return true;
},
hasItem: function (sKey) {
if (!sKey) {
return false;
}
return (new RegExp("(?:^|;\\s*)" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=")).test(document.cookie);
},
keys: function () {
var aKeys = document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, "").split(/\s*(?:\=[^;]*)?;\s*/);
for (var nLen = aKeys.length, nIdx = 0; nIdx < nLen; nIdx++) {
aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]);
}
return aKeys;
}
};
function isRatingLock(postId) {
return getStatusCookie().indexOf(postId.toString()) > -1;
}
function getStatusCookie() {
var cookie = docCookies.getItem('better-review-user-rating');
if (cookie) {
return cookie.split(',');
}
return [];
}
function lockRating(postId) {
var stat = getStatusCookie();
stat.push(postId.toString());
var time = 217.728e6; // a Year
docCookies.setItem("better-review-user-rating", stat, time, betterReviewsLoc.cp);
}
var is_rtl = $('body').hasClass('rtl');
$(".readers-ratings").on('mousemove', '.rating-stars:not(.disable)', function (e) {
var $this = $(this),
Gap = 2,
w = ($this.width() - Gap) / 100, // percentage width
elPos = Math.ceil(is_rtl ? ( $(this).offset().left + $(this).width() ) - e.pageX : e.pageX - $(this).offset().left); // element left/right position
var width = Math.min(100, Math.ceil(elPos / w)); // convert element position to width (in percent)
$this.children('span').width(width + '%').data('rate', width);
}).on('click', '.rating-stars:not(.disable)', function () {
var $this = $(this),
$wrapper = $this.closest('.betterstudio-review'),
loading = '<i class="fa fa-spinner fa-spin loading" style="margin: 0 50px;"></i>';
$this.addClass('disable'); // disable click event
// append loading
$this.fadeOut(150, function () {
$this.parent().append(loading);
});
$.ajax({
url: betterReviewsLoc.ajax_url,
type: 'POST',
dataType: 'json',
data: {
action: 'better-review-rating',
post_id: $this.data('post-id'),
rating: $this.children('span').data('rate')
},
})
.done(function (res) {
if (res.success) {
lockRating($this.data('post-id'));
//Update Rating to new value
$this.children('span').width(res.data.vote + '%').data('rate', res.data.vote);
$('.ratings-results .number', $wrapper).html(res.data.vote + '%');
$this.fadeIn(150);
// update total votes value
$('.total-votes .number', $wrapper).html(res.data.votes_count);
} else {
// Display error message
var $error = $('<span />', {
'class': 'error-message',
}).html(res.data.message);
$error.appendTo($this.parent());
$error.delay(4e3).fadeOut(150, function () {
$this.fadeIn(150);
$this.removeClass('disable'); // enable click event for next try
});
}
})
.always(function () {
$this.parent().find('.loading').remove();
});
});
// disable ratings for voted posts
$(".readers-ratings .rating-stars:not(.disable)").each(function () {
var $this = $(this);
if (isRatingLock($this.data('post-id'))) {
$this.addClass('disable');
}
});
});PK x��[�K�D�
�
js/better-reviews.min.jsnu �[��� jQuery(function(e){function t(e){return a().indexOf(e.toString())>-1}function a(){var e=s.getItem("better-review-user-rating");return e?e.split(","):[]}function n(e){var t=a();t.push(e.toString());s.setItem("better-review-user-rating",t,217728e3,betterReviewsLoc.cp)}var s={getItem:function(e){return e?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(e,t,a,n,s,r){if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var i="";if(a)switch(a.constructor){case Number:i=a===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+a;break;case String:i="; expires="+a;break;case Date:i="; expires="+a.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+i+(s?"; domain="+s:"")+(n?"; path="+n:"")+(r?"; secure":""),!0},removeItem:function(e,t,a){return!!this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(a?"; domain="+a:"")+(t?"; path="+t:""),!0)},hasItem:function(e){return!!e&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,a=0;a<t;a++)e[a]=decodeURIComponent(e[a]);return e}},r=e("body").hasClass("rtl");e(".readers-ratings").on("mousemove",".rating-stars:not(.disable)",function(t){var a=e(this),n=(a.width()-2)/100,s=Math.ceil(r?e(this).offset().left+e(this).width()-t.pageX:t.pageX-e(this).offset().left),i=Math.min(100,Math.ceil(s/n));a.children("span").width(i+"%").data("rate",i)}).on("click",".rating-stars:not(.disable)",function(){var t=e(this),a=t.closest(".betterstudio-review");t.addClass("disable"),t.fadeOut(150,function(){t.parent().append('<i class="fa fa-spinner fa-spin loading" style="margin: 0 50px;"></i>')}),e.ajax({url:betterReviewsLoc.ajax_url,type:"POST",dataType:"json",data:{action:"better-review-rating",post_id:t.data("post-id"),rating:t.children("span").data("rate")}}).done(function(s){if(s.success)n(t.data("post-id")),t.children("span").width(s.data.vote+"%").data("rate",s.data.vote),e(".ratings-results .number",a).html(s.data.vote+"%"),t.fadeIn(150),e(".total-votes .number",a).html(s.data.votes_count);else{var r=e("<span />",{class:"error-message"}).html(s.data.message);r.appendTo(t.parent()),r.delay(4e3).fadeOut(150,function(){t.fadeIn(150),t.removeClass("disable")})}}).always(function(){t.parent().find(".loading").remove()})}),e(".readers-ratings .rating-stars:not(.disable)").each(function(){var a=e(this);t(a.data("post-id"))&&a.addClass("disable")})});PK x��[N�)� � js/admin-script.min.jsnu �[��� var Better_Reviews_Admin=function(e){"use strict";return{init:function(){this.prepare_overall_rating_label()},prepare_overall_rating_label:function(){e(".bf-section-repeater-option[data-id=_bs_review_criteria]").length<=0||(Better_Reviews_Admin.calculate_overall_rating(),e("input").on("change",function(){"bf-metabox-option[bs_review_metabox][_bs_review_rating_type]"==e(this).attr("name")&&Better_Reviews_Admin.calculate_overall_rating()}),e(".bf-section-repeater-option[data-id=_bs_review_criteria]").on("change",".bs-review-field-rating input",function(){Better_Reviews_Admin.calculate_overall_rating()}),e(".bf-section[data-id=_bs_review_criteria]").on("repeater_item_added",function(){Better_Reviews_Admin.calculate_overall_rating()}),e(".bf-section[data-id=_bs_review_criteria]").on("after_repeater_item_removed",function(){Better_Reviews_Admin.calculate_overall_rating()}))},add_span:function(){return e(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label").length>0?e(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label i"):(e(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3").append('<span class="overall-label">'+better_reviews_loc.overall_rating+" ( <i>-</i> )</span>"),e(".bf-section-repeater-option[data-id=_bs_review_criteria] .bf-heading-repeater-option h3 .overall-label i"))},calculate_overall_rating:function(){var t=e(".bf-section-repeater-option[data-id=_bs_review_criteria]"),i=Better_Reviews_Admin.add_span(),r=0;t.find(".bs-review-field-rating input[type=text]").each(function(t){parseFloat(e(this).val())&&(r+=parseFloat(e(this).val()))}),console.log(t.find(".bs-review-field-rating input")),i.html(Better_Reviews_Admin.format_overall_rating_number(r,t.find(".bs-review-field-rating input").length))},format_overall_rating_number:function(t,i){switch(e("[data-id=_bs_review_rating_type] .bf-controls-image_radio-option input[type=radio]:checked").val()){case"percentage":case"stars":return Math.round(10*t/i*10)/10+"%";case"points":return Math.round(t/i*10)/10}return Math.round(t/i*10)/10}}}(jQuery);jQuery(function(e){Better_Reviews_Admin.init()});PK x��[p�� � sass/better-reviews-rtl.scssnu �[��� @import "styles/_variables.scss";
@import "styles/general-rtl.scss";
@import "styles/style-big-2-3-rtl.scss";
@import "styles/style-big-4-rtl.scss";
@import "styles/style-big-5-rtl.scss";
@import "styles/style-tall-1-2-rtl.scss";
PK x��[tB�� sass/styles/style-big-2-3.scssnu �[��� @import "_variables.scss";
.betterstudio-review.big-2:before,
.betterstudio-review.big-3:before {
content: ' ';
display: block;
width: 1px;
height: 100%;
right: 33%;
position: absolute;
z-index: 1;
background: #ebebeb;
}
.betterstudio-review.big-2 .review-cons-pros > aside,
.betterstudio-review.big-3 .review-cons-pros > aside {
float: none;
width: 100%;
border-top-width: 0;
}
.betterstudio-review.big-2 .review-cons-pros > aside:last-child,
.betterstudio-review.big-3 .review-cons-pros > aside:last-child {
border-bottom-width: 0;
}
.betterstudio-review.big-2 .overall,
.betterstudio-review.big-3 .overall {
margin-left: 0;
margin-right: 15px;
float: left;
}
.betterstudio-review.big-2 .affiliate,
.betterstudio-review.big-3 .affiliate {
padding-right: 10px;
}
.betterstudio-review.big-3 .review-first-col {
float: right;
}
.betterstudio-review.big-3 .review-second-col {
float: left;
}
.betterstudio-review.big-3:before {
right: auto;
left: 33%;
}
.betterstudio-review.big-3 .review-first-col:first-child:last-child,
.betterstudio-review.big-2 .review-first-col:first-child:last-child {
float: none;
width: 100%;
}
.betterstudio-review.big-3.no-sec-column:before,
.betterstudio-review.big-2.no-sec-column:before {
display: none;
}
PK x��[�vG�� � sass/styles/style-big-4-rtl.scssnu �[��� @import "_variables.scss";
.betterstudio-review.big-4 {
.verdict {
float: right;
}
.affiliate {
left: 0;
border-right: 1px solid #ebebeb;
right: auto;
border-left: none;
}
.criteria-list ul {
padding-right: 180px;
padding-left: 0;
}
.overall {
float: right;
margin-right: 0;
margin-left: 15px;
}
.review-cons-pros > aside:first-child {
padding-right: 25px;
padding-left: 0;
}
}
PK x��[����6 6 "