Skip to content

Commit f545c76

Browse files
Less machines by default
1 parent c6120fc commit f545c76

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ <h2>Detailed Comparison</h2>
511511
selector.className = 'selector selector-active';
512512
selector.appendChild(document.createTextNode(elem));
513513
systems.appendChild(selector);
514-
if (!(elem in selectors.system)) { selectors.system[elem] = data.some(entry => entry.system == elem && !entry.hide); }
514+
selectors.system[elem] = data.some(entry => entry.system == elem && !entry.hide);
515515
selector.addEventListener('click', e => toggle(e, elem, selectors.system));
516516

517517
/// Highlighting summary rows and table columns on hovering over the system selector.
@@ -532,19 +532,20 @@ <h2>Detailed Comparison</h2>
532532
selector.className = 'selector selector-active';
533533
selector.appendChild(document.createTextNode(elem));
534534
types.appendChild(selector);
535-
if (!(elem in selectors.type)) { selectors.type[elem] = true; }
535+
selectors.type[elem] = true;
536536
selector.addEventListener('click', e => toggle(e, elem, selectors.type));
537537
});
538538

539539
[... new Set(data.map(elem => elem.machine))].sort((a, b) => {
540540
const count_diff = data.filter(elem => elem.machine === b).length - data.filter(elem => elem.machine === a).length;
541541
return count_diff == 0 ? a.localeCompare(b, undefined, {numeric: true, sensitivity: 'base'}) : count_diff;
542542
}).map(elem => {
543+
const selected = elem != 'c6a.2xlarge' && elem != 'c6a.xlarge' && elem != 'c6a.large' && elem != 'c8g.4xlarge';
543544
let selector = document.createElement('a');
544-
selector.className = 'selector selector-active';
545+
selector.className = selected ? 'selector selector-active' : 'selector';
545546
selector.appendChild(document.createTextNode(elem));
546547
machines.appendChild(selector);
547-
if (!(elem in selectors.machine)) { selectors.machine[elem] = true; }
548+
selectors.machine[elem] = selected;
548549
selector.addEventListener('click', e => toggle(e, elem, selectors.machine));
549550
});
550551

@@ -554,7 +555,7 @@ <h2>Detailed Comparison</h2>
554555
selector.className = 'selector selector-active';
555556
selector.appendChild(document.createTextNode(elem));
556557
cluster_sizes.appendChild(selector);
557-
if (!(elem in selectors.cluster_size)) { selectors.cluster_size[elem] = true; }
558+
selectors.cluster_size[elem] = true;
558559
selector.addEventListener('click', e => toggle(e, elem, selectors.cluster_size));
559560
});
560561

0 commit comments

Comments
 (0)