Skip to content

Commit

Permalink
fix safari logo
Browse files Browse the repository at this point in the history
  • Loading branch information
rocreguant committed Oct 7, 2020
1 parent fe6b27d commit f7a7196
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,32 @@ <h4><b>Privacy Policy</b></h4>
$('body').on('change','#colorScheme', function() {
document.getElementById("seqlogo").className = this.value;
document.getElementById("MSAseqs").className = 'ali ' + this.value;

//##ROC# > This code it is because for safari and Firefox the logo did not change colors uless the tab was manually changed
//btn2: '#MSAview',
//btn3: '#STAview',
var view = '#STAview'; // button id --> view id
if ($(view).is(':visible')) {
return;
} // already active, do nothing
$('[id$=view]')
.not(view)
.hide(); // select all views except current, hide
$(view).show(); // show current

var view = '#MSAview'; // button id --> view id
if ($(view).is(':visible')) {
return;
} // already active, do nothing
$('[id$=view]')
.not(view)
.hide(); // select all views except current, hide
$(view).show(); // show current

//console.log('done logo color');



});
});

Expand Down

0 comments on commit f7a7196

Please sign in to comment.