Line 1: | Line 1: | ||
− | + | 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; | ||
+ | } |
Revision as of 00:18, 29 October 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; }