Commit 5191fb5c authored by Arnolds's avatar Arnolds
Browse files

Added "meta-btn" link in index.php with dynamic URL binding for metadata status page.

parent e7df6a3d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -95,6 +95,9 @@ header('X-Robots-Tag: noindex, nofollow');
                    </button>
                </div>
                <div class="form-text text-secondary">(Lietojama tikai vienu (one, vienas, üks, один (odyn), une, uno) reizi kopā ar paroli 🕵️, ja norādīji!)</div>
                <div class="mt-2 d-flex justify-content-end">
                    <a class="btn btn-outline-secondary" href="#" id="meta-btn">Uz noslēpuma satusa lapu →</a>
                </div>
            </div>
        </div>

@@ -214,6 +217,7 @@ header('X-Robots-Tag: noindex, nofollow');
        document.getElementById('encryptedLink').querySelector('strong').innerHTML = `${location.origin}${location.pathname}${result.id}`;
        document.getElementById('encryptedLink').querySelector('span').innerHTML = hashPart;
        document.getElementById('resultSection').style.display = 'block';
        document.getElementById('meta-btn').href = `${location.origin}${location.pathname}meta/${result.meta}`;
    });

    function copyToClipboard(text) {