Team:Bordeaux/NotebookTest
From 2014.igem.org
(Difference between revisions)
Line 139: | Line 139: | ||
<div class="day"> | <div class="day"> | ||
<div class="number"> 6 </div> | <div class="number"> 6 </div> | ||
- | |||
</div> | </div> | ||
<div class="day"> | <div class="day"> | ||
<div class="number"> 7 </div> | <div class="number"> 7 </div> | ||
+ | <div class="dots" onClick="hide('id2');"> dot </div> | ||
</div> | </div> | ||
<div class="day"> | <div class="day"> | ||
Line 152: | Line 152: | ||
<div class="day"> | <div class="day"> | ||
<div class="number"> 10 </div> | <div class="number"> 10 </div> | ||
+ | <div class="dots" onClick="hide('id5');"> dot </div> | ||
</div> | </div> | ||
<div class="day"> | <div class="day"> | ||
Line 157: | Line 158: | ||
</div> | </div> | ||
</div> | </div> | ||
- | <div class="week" id="hidden1" style="display:none"> | + | <div class="hidden-week" id="hidden1" style="display:none"> |
<div class="hidden-content" id="id1" style="visibility:hidden"> bla bla bla </div> | <div class="hidden-content" id="id1" style="visibility:hidden"> bla bla bla </div> | ||
- | <div class="hidden-content" id="id2" style="visibility:hidden"> | + | <div class="hidden-content" id="id2" style="visibility:hidden"></div> |
- | <div class="hidden-content" id="id3" style="visibility:hidden"> | + | <div class="hidden-content" id="id3" style="visibility:hidden"> blop </div> |
- | <div class="hidden-content" id="id4" style="visibility:hidden"> | + | <div class="hidden-content" id="id4" style="visibility:hidden"></div> |
- | <div class="hidden-content" id="id5" style="visibility:hidden"> | + | <div class="hidden-content" id="id5" style="visibility:hidden"></div> |
- | <div class="hidden-content" id=" | + | <div class="hidden-content" id="id6" style="visibility:hidden"> oups</div> |
</div> | </div> | ||
<div class="week"> | <div class="week"> | ||
Line 242: | Line 243: | ||
{ | { | ||
var isEmpty = "False"; | var isEmpty = "False"; | ||
+ | var txt; | ||
var targetElement; | var targetElement; | ||
targetElement = document.getElementById(thingId); | targetElement = document.getElementById(thingId); | ||
Line 258: | Line 260: | ||
targetElement.style.visibility = "hidden" ; | targetElement.style.visibility = "hidden" ; | ||
var childs = parentElement.childNodes; | var childs = parentElement.childNodes; | ||
- | |||
for (var i = 0; i < childs.length; i++){ | for (var i = 0; i < childs.length; i++){ | ||
- | + | txt=txt + childs[i].nodeName + "<br>"; | |
- | if (childs[i].style.visibility == ""){ | + | if (childs[i].nodeName == "DIV"){ |
- | + | if (childs[i].style.visibility == ""){ | |
+ | isEmpty = "True"; | ||
+ | } | ||
} | } | ||
} | } | ||
- | |||
if (isEmpty == "False"){ | if (isEmpty == "False"){ | ||
parentElement.style.display = "none" ; | parentElement.style.display = "none" ; |
Revision as of 21:23, 15 September 2014
May 2014
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
1
2
3
4
5
dot
6
7
dot
8
9
10
dot
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
...