@@ -511,7 +511,7 @@ <h2>Detailed Comparison</h2>
511
511
selector . className = 'selector selector-active' ;
512
512
selector . appendChild ( document . createTextNode ( elem ) ) ;
513
513
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 ) ;
515
515
selector . addEventListener ( 'click' , e => toggle ( e , elem , selectors . system ) ) ;
516
516
517
517
/// Highlighting summary rows and table columns on hovering over the system selector.
@@ -532,19 +532,20 @@ <h2>Detailed Comparison</h2>
532
532
selector . className = 'selector selector-active' ;
533
533
selector . appendChild ( document . createTextNode ( elem ) ) ;
534
534
types . appendChild ( selector ) ;
535
- if ( ! ( elem in selectors . type ) ) { selectors . type [ elem ] = true ; }
535
+ selectors . type [ elem ] = true ;
536
536
selector . addEventListener ( 'click' , e => toggle ( e , elem , selectors . type ) ) ;
537
537
} ) ;
538
538
539
539
[ ... new Set ( data . map ( elem => elem . machine ) ) ] . sort ( ( a , b ) => {
540
540
const count_diff = data . filter ( elem => elem . machine === b ) . length - data . filter ( elem => elem . machine === a ) . length ;
541
541
return count_diff == 0 ? a . localeCompare ( b , undefined , { numeric : true , sensitivity : 'base' } ) : count_diff ;
542
542
} ) . map ( elem => {
543
+ const selected = elem != 'c6a.2xlarge' && elem != 'c6a.xlarge' && elem != 'c6a.large' && elem != 'c8g.4xlarge' ;
543
544
let selector = document . createElement ( 'a' ) ;
544
- selector . className = 'selector selector-active' ;
545
+ selector . className = selected ? 'selector selector-active' : 'selector ';
545
546
selector . appendChild ( document . createTextNode ( elem ) ) ;
546
547
machines . appendChild ( selector ) ;
547
- if ( ! ( elem in selectors . machine ) ) { selectors . machine [ elem ] = true ; }
548
+ selectors . machine [ elem ] = selected ;
548
549
selector . addEventListener ( 'click' , e => toggle ( e , elem , selectors . machine ) ) ;
549
550
} ) ;
550
551
@@ -554,7 +555,7 @@ <h2>Detailed Comparison</h2>
554
555
selector . className = 'selector selector-active' ;
555
556
selector . appendChild ( document . createTextNode ( elem ) ) ;
556
557
cluster_sizes . appendChild ( selector ) ;
557
- if ( ! ( elem in selectors . cluster_size ) ) { selectors . cluster_size [ elem ] = true ; }
558
+ selectors . cluster_size [ elem ] = true ;
558
559
selector . addEventListener ( 'click' , e => toggle ( e , elem , selectors . cluster_size ) ) ;
559
560
} ) ;
560
561
0 commit comments