From d2d40f89bfe1f3cb4ed341ab357a719a3410af75 Mon Sep 17 00:00:00 2001 From: Nathan Smith Date: Mon, 8 Jan 2024 14:52:12 +0000 Subject: [PATCH 1/2] Fix SonarCloud code smells --- tests/example/enabled-text-response.html | 3 ++- tests/example/index.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/example/enabled-text-response.html b/tests/example/enabled-text-response.html index 218deff..629ab60 100644 --- a/tests/example/enabled-text-response.html +++ b/tests/example/enabled-text-response.html @@ -1,4 +1,5 @@ - + + diff --git a/tests/example/index.html b/tests/example/index.html index 3d3229c..8f190c9 100644 --- a/tests/example/index.html +++ b/tests/example/index.html @@ -1,4 +1,5 @@ - + + From c0e638cd41d74bfa41b646cc9c0a6b764983e93e Mon Sep 17 00:00:00 2001 From: Nathan Smith Date: Mon, 8 Jan 2024 15:01:34 +0000 Subject: [PATCH 2/2] Move commented out code into README --- README.md | 7 ++++++- tests/example/enabled-text-response.html | 5 ----- tests/example/index.html | 5 ----- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c4cd234..796380d 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,12 @@ The latest javascript file can be found in github releases https://github.com/nh #### Attributes -`data-form-endpoint` - (required) An HTTP data store endpoint to POST data to. Include the trailing slash +`data-form-endpoint` - (required) An HTTP data store endpoint to POST data to. Include the trailing slash. The endpoint setting should probably be this: + +```html +
+``` + `data-enable-text-response` - (optional) Include to enable text responses on the feedback form. ## API diff --git a/tests/example/enabled-text-response.html b/tests/example/enabled-text-response.html index 629ab60..117279c 100644 --- a/tests/example/enabled-text-response.html +++ b/tests/example/enabled-text-response.html @@ -19,11 +19,6 @@

User feedback form:

- -
diff --git a/tests/example/index.html b/tests/example/index.html index 8f190c9..58498ea 100644 --- a/tests/example/index.html +++ b/tests/example/index.html @@ -19,11 +19,6 @@

User feedback form:

- -