# 404-solution/4.3.0/includes/html/viewLogsTraceToggleScript.html

404 Solution, version 4.3.0. 18 lines.

- Page: https://pluginprobe.com/plugins/404-solution/4.3.0/code/includes/html/viewLogsTraceToggleScript.html
- Raw: https://pluginprobe.com/plugins/404-solution/4.3.0/raw/includes/html/viewLogsTraceToggleScript.html
- Modified: 2026-06-23T05:55:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/404-solution/4.3.0/code/includes/html/viewLogsTraceToggleScript.html#L10-L20`.

```html
<script>
(function() {
    if (window._abj404TraceToggleInit) { return; }
    window._abj404TraceToggleInit = true;
    document.addEventListener("click", function(e) {
        var btn = e.target;
        if (!btn || !btn.classList || !btn.classList.contains("abj404-trace-toggle")) { return; }
        var rowId = btn.getAttribute("data-row-id");
        if (!rowId) { return; }
        var detail = document.getElementById("abj404-trace-" + rowId);
        if (!detail) { return; }
        var visible = detail.style.display !== "none";
        detail.style.display = visible ? "none" : "";
        btn.textContent = visible ? "\u25B6" : "\u25BC";
    });
}());
</script>

```
