Difference between revisions of "Template:Greece/master script"

Line 7: Line 7:
 
if(link != null){
 
if(link != null){
 
history.replaceState(null, null, link);
 
history.replaceState(null, null, link);
window.title = link.toUpperCase();
+
document.title = link.toUpperCase();
  
 
if(document.location.href !== loc){
 
if(document.location.href !== loc){

Revision as of 22:24, 23 September 2017

var master = sessionStorage.getItem('KEY'); var link = sessionStorage.getItem('LINK');


var loc = 'https://2017.igem.org/Team:Greece/' + master;

if(link != null){ history.replaceState(null, null, link); document.title = link.toUpperCase();

if(document.location.href !== loc){

  if(sessionStorage.getItem('LINK') !== master){
      sessionStorage.setItem('LINK', master);
  }

} }