Navigation

    Voting Theory Forum

    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Codepens working... ?

    Request for Features
    2
    4
    216
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rob
      rob Banned last edited by rob

      It seems like they are. Unfortunately they don't seem to auto-run, and they always show the code tabs, and they are pretty small vertically, but..... still, a good thing to have. Thanks for getting them running @Jack-Waugh

      See if this works. You probably have to hit "run pen" to see anything.

      https://codepen.io/karmatics/pen/KKzPMYj

      After you run it you should see something like this, which is a Condorcet style pairwise matrix that can also show a bar chart at right:
      matrix.png

      This needs work to allow pasting in ballots (etc), and to make the bars actually show something meaningful, as well as to support hover effects. But it is something. The ones that tabulate various methods need work to adapt them as well, so they work well in the limited area.

      J 1 Reply Last reply Reply Quote 0
      • J
        Jack Waugh @rob last edited by Jack Waugh

        @rob Yes, it does show something like that. Well it did. Then I reached in to try to move one of the scroll bars, and the "pen" disappeared. Sometimes, moving a scroll bar worked, but the last time, it did that.

        Approval-ordered Llull (letter grades) [10], Score // Llull [9], Score, STAR, Approval, other rated Condorcet [8]; equal-ranked Condorcet [4]; strictly-ranked Condorcet [3]; everything else [0].

        1 Reply Last reply Reply Quote 0
        • J
          Jack Waugh last edited by

          border-radius: 3px 12px 12px 3px very snazzy.

          Approval-ordered Llull (letter grades) [10], Score // Llull [9], Score, STAR, Approval, other rated Condorcet [8]; equal-ranked Condorcet [4]; strictly-ranked Condorcet [3]; everything else [0].

          rob 1 Reply Last reply Reply Quote 0
          • rob
            rob Banned @Jack Waugh last edited by

            @jack-waugh Glad you like. i remember doing rounded corners the hard way before "border radius" was supported in browsers, but its been at least 15 years.

            I was pretty happy with the angled text trick, which was added to browsers after my first implementation of this matrix long ago. That one is: transform: translate(11px, 30px) rotate(300deg);

            1 Reply Last reply Reply Quote 0
            • Moved from Meta/Forum Business by  SaraWolk SaraWolk 
            • First post
              Last post