diff --git a/htmlgen/htmlgen.py b/htmlgen/htmlgen.py index 9450b284..167d9cdf 100644 --- a/htmlgen/htmlgen.py +++ b/htmlgen/htmlgen.py @@ -200,6 +200,10 @@ for segtype in segbits.keys(): bgcolor = "#cccc88" label = bit_name[-5] + "5" + if re.search(r"\.(CE|SR)USEDMUX$", bit_name): + bgcolor = "#ffaa00" + label = bit_name[-9:-7] + "M" + elif bit_pos in routebits[segtype]: title += list(routebits[segtype][bit_pos]) bgcolor = "#6666cc" @@ -207,10 +211,12 @@ for segtype in segbits.keys(): if label is None: label = " " + onclick = "" else: - label = "%s" % (bit_pos, label) + onclick = " onmousedown=\"location.href = '#b%s'\"" % bit_pos - print("%s" % (bgcolor, "\n".join(title), label), file=f) + print("%s" % + (bgcolor, "\n".join(title), onclick, label), file=f) print("", file=f) print("", file=f)