⌈⌋ ⎇ branch:  Bitrhythm


Hex Artifact Content

Artifact cd4ce12811bc6d6ca1d040ab7ee49108bec42161b2b62068b1a533d9b2658fd1:


0000: 3c 61 74 74 72 2d 73 65 6c 65 63 74 65 64 3e 0a  <attr-selected>.
0010: 20 20 3c 73 65 6c 65 63 74 3e 0a 20 20 20 20 3c    <select>.    <
0020: 6f 70 74 69 6f 6e 20 76 61 6c 75 65 3d 22 30 22  option value="0"
0030: 20 73 65 6c 65 63 74 65 64 3d 22 7b 73 65 6c 65   selected="{sele
0040: 63 74 65 64 20 25 20 33 20 3d 3d 20 30 7d 22 3e  cted % 3 == 0}">
0050: 30 3c 2f 6f 70 74 69 6f 6e 3e 0a 20 20 20 20 3c  0</option>.    <
0060: 6f 70 74 69 6f 6e 20 76 61 6c 75 65 3d 22 31 22  option value="1"
0070: 20 73 65 6c 65 63 74 65 64 3d 22 7b 73 65 6c 65   selected="{sele
0080: 63 74 65 64 20 25 20 33 20 3d 3d 20 31 7d 22 3e  cted % 3 == 1}">
0090: 31 3c 2f 6f 70 74 69 6f 6e 3e 0a 20 20 20 20 3c  1</option>.    <
00a0: 6f 70 74 69 6f 6e 20 76 61 6c 75 65 3d 22 32 22  option value="2"
00b0: 20 73 65 6c 65 63 74 65 64 3d 22 7b 73 65 6c 65   selected="{sele
00c0: 63 74 65 64 20 25 20 33 20 3d 3d 20 32 7d 22 3e  cted % 3 == 2}">
00d0: 32 3c 2f 6f 70 74 69 6f 6e 3e 0a 20 20 3c 2f 73  2</option>.  </s
00e0: 65 6c 65 63 74 3e 0a 0a 20 20 3c 62 75 74 74 6f  elect>..  <butto
00f0: 6e 20 6f 6e 63 6c 69 63 6b 3d 7b 73 65 6c 65 63  n onclick={selec
0100: 74 4e 65 78 74 7d 3e 53 65 6c 65 63 74 20 6e 65  tNext}>Select ne
0110: 78 74 3c 2f 62 75 74 74 6f 6e 3e 0a 0a 20 20 3c  xt</button>..  <
0120: 73 63 72 69 70 74 3e 0a 20 20 20 20 74 68 69 73  script>.    this
0130: 2e 73 65 6c 65 63 74 65 64 20 3d 20 30 0a 0a 20  .selected = 0.. 
0140: 20 20 20 74 68 69 73 2e 73 65 6c 65 63 74 4e 65     this.selectNe
0150: 78 74 20 3d 20 66 75 6e 63 74 69 6f 6e 28 29 20  xt = function() 
0160: 7b 0a 20 20 20 20 20 20 74 68 69 73 2e 73 65 6c  {.      this.sel
0170: 65 63 74 65 64 2b 2b 0a 20 20 20 20 7d 2e 62 69  ected++.    }.bi
0180: 6e 64 28 74 68 69 73 29 0a 20 20 3c 2f 73 63 72  nd(this).  </scr
0190: 69 70 74 3e 0a 3c 2f 61 74 74 72 2d 73 65 6c 65  ipt>.</attr-sele
01a0: 63 74 65 64 3e 0a                                cted>.