From b057bff61ebeb8ec9d6078563065d95c3c5551ed Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 28 Oct 2020 17:07:16 +0200
Subject: [PATCH] Spam page with Javascript.

The only change is that there isn't a popup (alert) that the message was
sent.
---
 content/pages/spam.rst | 31 +++++++++++--------------------
 1 file changed, 11 insertions(+), 20 deletions(-)

diff --git a/content/pages/spam.rst b/content/pages/spam.rst
index ec39d56..b20837a 100644
--- a/content/pages/spam.rst
+++ b/content/pages/spam.rst
@@ -8,26 +8,17 @@ Spam Nimrod
 
 .. raw:: html
 
-    <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
-    <script>
-        $(document).ready(
-            function(){
-                $("button").click(
-                    function(){
-                        $.post(
-                            "https://patchbay.pub/pubsub/1446c969-9a54-4b5b-83e0-bf88f22f289d",
-                            $("#message").val(),
-                            function(){
-                                alert("Nimrod was spammed.");
-                            }
-                        );
-                    }
-                );
-            }
-        );
-    </script>
-    <textarea id="message" rows="5" cols="50">Hi there.</textarea>
-    <p><button type="button">Spam Nimrod</button></p>
+    <iframe name="dummyframe" id="dummyframe" style="display: none;"></iframe>
+    <form
+    action="https://patchbay.pub/pubsub/1446c969-9a54-4b5b-83e0-bf88f22f289d"
+    target="dummyframe"
+    method="POST">
+        <label for="message">Message</label>
+        <br/>
+        <textarea name="message" rows="5" cols="50">Hi there.</textarea>
+        <br/>
+        <button>Send message</button>
+    </form>
 
 
 You can read more this at `this blog entry
-- 
GitLab