google-maps-reviews
Advanced tools
Comparing version 0.0.10 to 0.0.15
@@ -38,2 +38,3 @@ // Copyright (c) 2018, Simon Neutert | ||
shorten_names: true, | ||
show_date: false, | ||
placeId: "" | ||
@@ -112,5 +113,7 @@ }; | ||
var style = (reviews[i].text.length > parseInt(settings.text_break_length)) ? "review-item-long" : "review-item"; | ||
html = html + "<div class=" + style + "><div class='review-meta'><span class='review-author'>" + name + "</span><span class='review-sep'></span>" + "</div>" + stars + "<p class='review-text'>" + reviews[i].text + "</p></div>"; | ||
// I do not need to display the date... but if you do: | ||
// +"<br><span class='review-date'>"+date+"</span>"+ | ||
var review = reviews[i].text | ||
if (settings.show_date) { | ||
review = "<span class='review-date'>"+date+"</span> " + review | ||
} | ||
html = html + "<div class=" + style + "><div class='review-meta'><span class='review-author'>" + name + "</span><span class='review-sep'></span>" + "</div>" + stars + "<p class='review-text'>" + review + "</p></div>"; | ||
} | ||
@@ -117,0 +120,0 @@ target_div.innerHTML += html; |
{ | ||
"name": "google-maps-reviews", | ||
"version": "0.0.10", | ||
"version": "0.0.15", | ||
"description": "Display Google Reviews of a Place on Google Maps on your website", | ||
@@ -5,0 +5,0 @@ "main": "google-maps-reviews.js", |
@@ -54,2 +54,3 @@ # Display Google Reviews of a Place on Google Maps on your website | ||
text_break_length: "90", // length before a review box is set to max width | ||
show_date: false, // renders the date of the review before the review itself | ||
shorten_names: true, // example: "Max Mustermann" -> "Max M."" | ||
@@ -56,0 +57,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10669
213
63