Skip to content

Settings and activity

2 results found

  1. 8 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Anonymous supported this idea  · 
  2. 14 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Anonymous commented  · 

    I just add a simple script like this to the bottom of the body of the exported HTML document. Maybe LINQPad could do the same?

    <script>
    const triangleUp = "\u25B2";
    const triangleDown = "\u25BC";

    for (const typeheader of document.getElementsByClassName("typeheader")) {
    const arrow = document.createElement("span");
    arrow.style.cursor = "pointer";
    arrow.style.marginRight = "0.2em";
    arrow.innerText = triangleUp;

    const row = typeheader.parentNode;
    arrow.onclick = () => {
    [].slice.call(row.parentNode.childNodes, 1).forEach(e => e.style.display = (e.style.display == "none" ? "table-row" : "none"));
    arrow.innerText = (arrow.innerText == triangleUp ? triangleDown : triangleUp);
    }

    typeheader.prepend(arrow);
    }
    </script>

    Anonymous supported this idea  ·