File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -714,6 +714,32 @@ <h4><b>Privacy Policy</b></h4>
714714 $ ( 'body' ) . on ( 'change' , '#colorScheme' , function ( ) {
715715 document . getElementById ( "seqlogo" ) . className = this . value ;
716716 document . getElementById ( "MSAseqs" ) . className = 'ali ' + this . value ;
717+
718+ //##ROC# > This code it is because for safari and Firefox the logo did not change colors uless the tab was manually changed
719+ //btn2: '#MSAview',
720+ //btn3: '#STAview',
721+ var view = '#STAview' ; // button id --> view id
722+ if ( $ ( view ) . is ( ':visible' ) ) {
723+ return ;
724+ } // already active, do nothing
725+ $ ( '[id$=view]' )
726+ . not ( view )
727+ . hide ( ) ; // select all views except current, hide
728+ $ ( view ) . show ( ) ; // show current
729+
730+ var view = '#MSAview' ; // button id --> view id
731+ if ( $ ( view ) . is ( ':visible' ) ) {
732+ return ;
733+ } // already active, do nothing
734+ $ ( '[id$=view]' )
735+ . not ( view )
736+ . hide ( ) ; // select all views except current, hide
737+ $ ( view ) . show ( ) ; // show current
738+
739+ //console.log('done logo color');
740+
741+
742+
717743 } ) ;
718744 } ) ;
719745
You can’t perform that action at this time.
0 commit comments