Team:Bordeaux/NotebookTest

From 2014.igem.org

(Difference between revisions)
Line 135: Line 135:
       <div class="day">
       <div class="day">
         <div class="number"> 5 </div>
         <div class="number"> 5 </div>
-
         <div class="dots" onClick="visibilite('id1');"> dot </div>
+
         <div class="dots" onClick="hide('id1');"> dot </div>
-
        <div class="hidden-content" id="id1" style="display:none"> bla bla bla </div>
+
       </div>
       </div>
       <div class="day">
       <div class="day">
Line 156: Line 155:
         <div class="number"> 11 </div>
         <div class="number"> 11 </div>
       </div>
       </div>
 +
  </div>
 +
  <div class="week" id="hidden1" style="display:none">
 +
      <div class="hidden-content" id="id1" style="display:none"> bla bla bla </div>
 +
      <div class="hidden-content" id="id2" style="display:none"> bla bla bla </div>
 +
      <div class="hidden-content" id="id3" style="display:none"> bla bla bla </div>
 +
      <div class="hidden-content" id="id4" style="display:none"> bla bla bla </div>
 +
      <div class="hidden-content" id="id5" style="display:none"> bla bla bla </div>
 +
      <div class="hidden-content" id="id5" style="display:none"> bla bla bla </div>
   </div>
   </div>
   <div class="week">
   <div class="week">
Line 231: Line 238:
<script>  
<script>  
-
function visibilite(thingId)  
+
function hide(thingId)  
{
{
var targetElement;
var targetElement;
-
         targetElement = document.getElementById(thingId) ;
+
         targetElement = document.getElementById(thingId);
 +
        var parentElement = targetElement.parentNode;
 +
        if (parentElement.style.display == "none")
 +
          {
 +
              parentElement.style.display = "" ;
 +
          }
 +
else
 +
          {
 +
              parentElement.style.display = "none" ;
 +
          }
 +
 
 +
 
         if (targetElement.style.display == "none")
         if (targetElement.style.display == "none")
           {
           {

Revision as of 13:58, 15 September 2014

May 2014
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
1
2
3
4
5
dot
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
...