Difference between revisions of "Template:Tuebingen"
Line 253: | Line 253: | ||
if (location.search.length != 0) { | if (location.search.length != 0) { | ||
− | + | diaslide = getURLParameter('diaslide'); | |
− | + | anchor = getURLParameter('anchor'); | |
− | + | console.log('ds '+diaslide); | |
− | + | console.log('an '+anchor); | |
− | + | ||
− | console.log(' | + | |
− | console.log(' | + | |
} | } | ||
window.setInterval(funWithColi,10000); | window.setInterval(funWithColi,10000); | ||
} | } | ||
+ | |||
+ | function getURLParameter(name) { | ||
+ | return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null | ||
+ | } | ||
function funWithColi() { | function funWithColi() { |
Revision as of 00:05, 19 September 2015
![](https://static.igem.org/mediawiki/2015/b/ba/Team_Tuebingen_menu_coli_mit_lightstrahl.png)
<
>