Skip to content

Commit f7a7196

Browse files
committed
fix safari logo
1 parent fe6b27d commit f7a7196

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)