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

Line 1: Line 1:
setTimeout(function(){ console.log(' ') }, 1000);
 
 
var master = sessionStorage.getItem('KEY');
 
var master = sessionStorage.getItem('KEY');
 
var link = sessionStorage.getItem('LINK');
 
var link = sessionStorage.getItem('LINK');

Revision as of 10:42, 27 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);
  }

} }