Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 1.32 KB

README.md

File metadata and controls

48 lines (41 loc) · 1.32 KB

pdn-plugin-index

An interactive site to quickly search and find Paint.NET plugins in the forums.

Building

Refer to BUILD.md for instructions on how to build and run pdn-plugin-index from source.

Forum Integration

<p>
    <style type="text/css">
        #pdnpi, #pdnpi-iframe {
            margin: 0;
            padding: 0;
            border: none;
            width: 100%;
            height: 1200px;
            overflow: hidden;
        }
    </style>
</p>
<div id="pdnpi">
	&nbsp;
</div>
<script>
    (function() {
        "use strict";

        let iframe = document.createElement("iframe");
        iframe.setAttribute("id", "pdnpi-iframe");
        iframe.allow = "clipboard-write";
        iframe.src = "https://mattw.io/pdn-plugin-index" + window.location.search;
        iframe.sandbox = "allow-scripts allow-popups allow-popups-to-escape-sandbox allow-same-origin";

        let pdnpi = document.getElementById("pdnpi");
        pdnpi.appendChild(iframe);

        const params = new URL(window.location).searchParams;
        if (params.size > 0 && !params.has("do")) {
            pdnpi.scrollIntoView(true);
        }
    })();
</script>