Template:CSS/UT-Tokyo/CTCD/Contents
From 2014.igem.org
(Difference between revisions)
Pineappler (Talk | contribs) |
Pineappler (Talk | contribs) |
||
Line 492: | Line 492: | ||
function loadContent(cont,link){ | function loadContent(cont,link){ | ||
document.title = "CTCD | UT-Tokyo 2014"; | document.title = "CTCD | UT-Tokyo 2014"; | ||
+ | |||
+ | var node = document.getElementById("pageContents"); | ||
+ | for(var i = 0;i < node.childNodes.length; i++){ | ||
+ | if(node.childNodes[i].nodeType == 1){ | ||
+ | node.childNodes[i].style.display = "none"; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | var loading = document.getElementById("loading-img"); | ||
+ | loading.style.display = "block"; | ||
+ | |||
if(typeof cont !== "undefined"){ | if(typeof cont !== "undefined"){ | ||
if(cont != "Team-top"){ | if(cont != "Team-top"){ | ||
Line 517: | Line 528: | ||
} | } | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
} | } | ||
Line 556: | Line 561: | ||
} | } | ||
var node = document.getElementById(str); | var node = document.getElementById(str); | ||
+ | loading.style.display = "none"; | ||
node.style.display = "block"; | node.style.display = "block"; | ||
Line 661: | Line 667: | ||
} | } | ||
} | } | ||
+ | $("#contentsBody").mCustomScrollbar({ | ||
+ | mouseWheelPixels: 250 | ||
+ | }); | ||
+ | |||
} | } | ||
function bttop(){ | function bttop(){ | ||
Line 675: | Line 685: | ||
<link href="https://2014.igem.org/Team:UT-Tokyo/jquery.mCustomScrollbar.css?action=raw&ctype=text/css" rel="stylesheet" type="text/css"> | <link href="https://2014.igem.org/Team:UT-Tokyo/jquery.mCustomScrollbar.css?action=raw&ctype=text/css" rel="stylesheet" type="text/css"> | ||
<script> | <script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
$(window).load( function() { | $(window).load( function() { | ||
Revision as of 06:36, 16 October 2014