Skip to content

Commit 4fd9a12

Browse files
Restore menu toggle and review generator functionality
1 parent 31c79be commit 4fd9a12

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

script.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,10 @@ document.getElementById("copyBtn").addEventListener("click", () => {
163163
});
164164

165165
// Universal Google review link
166-
document.getElementById("mapsBtn").addEventListener("click", function(e) {
167-
e.preventDefault();
168-
const review = document.getElementById("reviewText").innerText;
169-
const mapsUrl = "https://search.google.com/local/writereview?placeid=ChIJMRToX2fimzkRUan3u1DooSM";
170-
window.open(mapsUrl, "_blank");
171-
});
172-
166+
// Universal Google review link
173167
const placeId = "ChIJMRToX2fimzkRUan3u1DooSM";
174168
const mapsBtn = document.getElementById("mapsBtn");
169+
mapsBtn.href = `https://search.google.com/local/writereview?placeid=${placeId}`;
175170

176171
//Enquiry Form
177172
document.addEventListener("DOMContentLoaded", function () {
@@ -213,3 +208,4 @@ if (enquiryForm) {
213208
window.open(whatsappURL, "_blank");
214209
});
215210
}
211+

0 commit comments

Comments
 (0)