Warning: Attempt to read property "parent" on null in /home/ghlsmartscripts/reviews.ghlsmartscripts.com/fomo/Review-Widget-Popup.php on line 30
Warning: Attempt to read property "href" on null in /home/ghlsmartscripts/reviews.ghlsmartscripts.com/fomo/Review-Widget-Popup.php on line 31
Warning: Attempt to read property "plaintext" on null in /home/ghlsmartscripts/reviews.ghlsmartscripts.com/fomo/Review-Widget-Popup.php on line 32
var html = '';
html += '
';
html += '
';
html += '
';
html += ' ';
html += '
';
html += '
';
html += '
';
html += '
';
html += ' Pico De Gallo';
html += ' ';
html += '';
html += '';
html += '';
html += '';
html += '';
html += '';
html += '';
html += '';
html += '';
html += '';
html += ' ';
html += '
';
html += '
We went from a 4.6 rating to a 4.9 and it's made a difference in our business.
';
html += '
';
html += ' In the last 7 days ';
html += ' ';
html += '
';
html += ' ';
html += '
';
html += '
';
html += ' ';
html += '
';
html += '';
$(".review_popup").html(html);
var r_name = new Array();
var r_rating = new Array();
var r_text = new Array();
var r_date = new Array();
var r_powered = "";
var myNumber = 1;
var closeExit = false;
var length = 0;
r_name[0] = 'Pico De Gallo';r_rating[0] = '5';r_text[0] = 'We went from a 4.6 rating to a 4.9 and it's made a difference in our business.';r_date[0] = 'In the last 7 days';r_name[1] = 'Pico De Gallo';r_rating[1] = '5';r_text[1] = 'I'm getting more reviews than ever before.';r_date[1] = 'In the last 7 days';length = 1;
var r_star = "";
setInterval(function(){
if(closeExit == false){
$(".custom-social-proof").stop().slideToggle('slow');
}else{
clearInterval();
}
}, 4000);
$(".custom-close").click(function() {
$(".custom-social-proof").stop().slideToggle('slow');
closeExit = true;
});
setInterval(function(){
let stars = "";
$("#name").text(r_name[myNumber]);
for (let i = 0; i < r_rating[myNumber]; i++) {
stars += '';
}
$("#stars").html(stars);
$('#review').html(r_text[myNumber]);
$('#date').text(r_date[myNumber]);
$('#logo').attr('src','https://reviews.ghlsmartscripts.com/fomo/img/'+r_rating[myNumber]+'star.png');
console.log('Rating Number = '+r_rating[myNumber]);
if(myNumber == length){
myNumber = 0;
}else{
myNumber++;
}
console.log(myNumber);
if(closeExit == true){
clearInterval();
}
//console.log(timeVal);
}, 8000);