Difference between revisions of "Template:Tuebingen"
(14 intermediate revisions by the same user not shown) | |||
Line 169: | Line 169: | ||
width:90%; | width:90%; | ||
font-family:chalkitup; | font-family:chalkitup; | ||
− | font-size: | + | font-size:14px; |
height:20px; | height:20px; | ||
line-height:20px; | line-height:20px; | ||
Line 205: | Line 205: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | diaslide = false; | ||
+ | anchor = false; | ||
+ | if (location.search.length != 0) { | ||
+ | diaslide = parseInt(gup('slide')); | ||
+ | anchor = gup('anchor'); | ||
+ | console.log('anchooor '+anchor); | ||
+ | } | ||
function init() { | function init() { | ||
− | |||
if (dias.length != 0) { | if (dias.length != 0) { | ||
document.getElementById('arrowRight').style.display = 'block'; | document.getElementById('arrowRight').style.display = 'block'; | ||
Line 221: | Line 227: | ||
diashowIndex.appendChild(index); | diashowIndex.appendChild(index); | ||
} | } | ||
+ | |||
diashow(0); | diashow(0); | ||
+ | if (diaslide) diashow(diaslide); | ||
+ | if (anchor) { | ||
+ | console.log('anchorrrs '+anchor); | ||
+ | console.log(document.getElementById('12')); | ||
+ | console.log(document.getElementById(anchor)); | ||
+ | document.getElementById(anchor).scrollIntoView(); | ||
+ | } | ||
} | } | ||
Line 237: | Line 251: | ||
var attributionsMenuitemURLs = [ | var attributionsMenuitemURLs = [ | ||
'https://2015.igem.org/Team:Tuebingen/Attributions', | 'https://2015.igem.org/Team:Tuebingen/Attributions', | ||
− | 'https://2015.igem.org/Team:Tuebingen/Collaborations' | + | 'https://2015.igem.org/Team:Tuebingen/Collaborations', |
+ | 'https://2015.igem.org/Team:Tuebingen/References' | ||
]; | ]; | ||
Line 250: | Line 265: | ||
else if (projectMenuitemURLs.indexOf(window.location.href.split('?')[0]) != -1) submenu('Project'); | else if (projectMenuitemURLs.indexOf(window.location.href.split('?')[0]) != -1) submenu('Project'); | ||
else if (practicesMenuitemURLs.indexOf(window.location.href.split('?')[0]) != -1) submenu('Practices'); | else if (practicesMenuitemURLs.indexOf(window.location.href.split('?')[0]) != -1) submenu('Practices'); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
window.setInterval(funWithColi,10000); | window.setInterval(funWithColi,10000); | ||
Line 263: | Line 270: | ||
function gup( name, url ) { | function gup( name, url ) { | ||
− | if (!url) url = location.href | + | if (!url) url = location.href; |
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); | name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); | ||
var regexS = "[\\?&]"+name+"=([^&#]*)"; | var regexS = "[\\?&]"+name+"=([^&#]*)"; | ||
Line 343: | Line 350: | ||
<div class="menuitem" style="width:10vw;" onclick="window.location.href='https://2015.igem.org/Team:Tuebingen/Team';">Team</div> | <div class="menuitem" style="width:10vw;" onclick="window.location.href='https://2015.igem.org/Team:Tuebingen/Team';">Team</div> | ||
<div class="menuitem" style="width:10vw;" onclick="window.location.href='https://2015.igem.org/Team:Tuebingen/Description';">Project</div> | <div class="menuitem" style="width:10vw;" onclick="window.location.href='https://2015.igem.org/Team:Tuebingen/Description';">Project</div> | ||
− | + | <div class="menuitem" style="width:10vw;" onclick="window.location.href='https://2015.igem.org/Team:Tuebingen/Modeling';">Modeling</div> | |
− | + | <div class="menuitem" style="width:18vw;" onclick="window.location.href='https://2015.igem.org/Team:Tuebingen/Practices';">Human Practices</div> | |
<div class="menuitem" style="width:3.8vw;" onclick="window.location.href='https://2015.igem.org/Team:Tuebingen/Art_and_Design';">Art</div> | <div class="menuitem" style="width:3.8vw;" onclick="window.location.href='https://2015.igem.org/Team:Tuebingen/Art_and_Design';">Art</div> | ||
− | <div class="menuitem" style="width: | + | <div class="menuitem" style="width:18vw;" onclick="window.location.href='https://2015.igem.org/Team:Tuebingen/Attributions';">Attributions</div> |
+ | |||
+ | |||
+ | |||
</div> | </div> | ||
Latest revision as of 02:50, 19 September 2015
<
>