We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b221bfc commit 1347639Copy full SHA for 1347639
index.html
@@ -44,6 +44,10 @@
44
}
45
.region {
46
padding: 0.5rem;
47
+ transition: color 0.2s;
48
+}
49
+.region-selected {
50
+ color: #2060ae;
51
52
</style>
53
</head>
index.ts
@@ -49,6 +49,10 @@ function fillRegions(filter: string | null) {
el.append(document.createTextNode(reg.region.data.name))
el.classList.add('region')
el.onclick = () => {
+ for(const other of document.querySelectorAll('.region-selected')) {
+ other.classList.remove('region-selected')
54
+ }
55
+ el.classList.add('region-selected')
56
showRegion(reg.key, reg.region)
57
58
regionsEl.append(el)
0 commit comments