File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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
173167const placeId = "ChIJMRToX2fimzkRUan3u1DooSM" ;
174168const mapsBtn = document . getElementById ( "mapsBtn" ) ;
169+ mapsBtn . href = `https://search.google.com/local/writereview?placeid=${ placeId } ` ;
175170
176171//Enquiry Form
177172document . addEventListener ( "DOMContentLoaded" , function ( ) {
@@ -213,3 +208,4 @@ if (enquiryForm) {
213208 window . open ( whatsappURL , "_blank" ) ;
214209 } ) ;
215210}
211+
You can’t perform that action at this time.
0 commit comments