t</a>.<br/>
    This example doesn't need a server. You can just save the HTML page and run it from anywhere.
</p>
<button id="publishButton">Send test notification</button>
<p><b>Log:</b></p>
<div id="events"></div>

<script type="text/javascript">
    const publishURL = `https://ntfy.sh/example`;
    const subscribeURL = `wss://ntfy.sh/example/ws`;
    const events = document.getElementById('events');
    const websocket = new WebSocket(subscribeURL);

    // Publish button
    document.getElementById("pu