Difference between revisions of "Template:Tuebingen"

 
(9 intermediate revisions by the same user not shown)
Line 169: Line 169:
 
width:90%;
 
width:90%;
 
font-family:chalkitup;
 
font-family:chalkitup;
font-size:22px;
+
font-size:14px;
 
height:20px;
 
height:20px;
 
line-height:20px;
 
line-height:20px;
Line 208: Line 208:
 
anchor = false;
 
anchor = false;
 
if (location.search.length != 0) {
 
if (location.search.length != 0) {
diaslide = parseInt(gup('slide',window.href));
+
diaslide = parseInt(gup('slide'));
anchor = gup('anchor',window.href);
+
anchor = gup('anchor');
 +
console.log('anchooor '+anchor);
 
}
 
}
 
function init() {
 
function init() {
Line 230: Line 231:
 
if (diaslide) diashow(diaslide);
 
if (diaslide) diashow(diaslide);
 
if (anchor) {
 
if (anchor) {
var url = location.href;
+
console.log('anchorrrs '+anchor);
    location.href = "#"+anchor;
+
console.log(document.getElementById('12'));
    history.replaceState(null,null,url);
+
console.log(document.getElementById(anchor));
 +
document.getElementById(anchor).scrollIntoView();
 
}
 
}
 
}
 
}
Line 249: 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 267: 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 347: 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:18vw;" onclick="window.location.href='https://2015.igem.org/Team:Tuebingen/Attributions';">Attributions</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: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: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/Attributions';">Attributions</div>
 +
 +
 
 +
 
</div>
 
</div>
 
 

Latest revision as of 02:50, 19 September 2015

<
>