Difference between revisions of "Template:Heidelberg/title"

 
Line 1: Line 1:
 
 
$( document ).ready( function() {
 
  $('link[rel="shortcut icon"]').attr('href','https://static.igem.org/mediawiki/2017/0/08/T--Heidelberg--2017_favicon.png');
 
});
 
 
 
  window.onload = title_update();
 
  window.onload = title_update();
  

Latest revision as of 20:53, 1 November 2017

window.onload = title_update();
   function title_update(){
       var title = "iGEM Heidelberg 2017";
       var page = "{{{1}}}";
       if(!page.startsWith("{{{1")){
           title = page + " - " + title;
       }
       document.title = title;
   }