diff --git a/content/pages/spam.rst b/content/pages/spam.rst index ec39d564560e055b887394f8b848a1a85058a244..b20837afa317b8f5ec8de1d73e8166b2ca100cec 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