<ul></ul>
<button id="reset">Reset</button>
<h3>These permutations are their own inverses</h3>
<button class="permute" name="switch first two elements">[1,0,2,3,4,5,6,7,8,9]</button>
<button class="permute" name="switch pairs">[1,0,3,2,5,4,7,6,9,8]</button>
<button class="permute" name="reverse">[9,8,7,6,5,4,3,2,1,0]</button>
<button class="permute" name="barrel shift five times">[5,6,7,8,9,0,1,2,3,4]</button>
<h3>These permutations are invert each other</h3>
<button class="permute" name="barrel shift left">[9,0,1,2,3,4,5,6,7,8]</button>
<button class="permute" name="barrel shift right">[1,2,3,4,5,6,7,8,9,0]</button>
<h3>Other Permutations</h3>
<button class="permute" name="interleave">[0,2,4,6,8,1,3,5,7,9]</button>
<h3>Save Current State as Permutation</h3>
<p>Note that to restore a state you need to reset first. The stored permutation is the inverse of the current permutation, so if you save and click the newly created button it's the same as a reset.</p>
<button id="save">Save</button>