Commit b057bff6 authored by nimrod's avatar nimrod
Browse files

Spam page with Javascript.

The only change is that there isn't a popup (alert) that the message was
sent.
parent 5fe789b1
Loading
Loading
Loading
Loading
+11 −20
Original line number Diff line number Diff line
@@ -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