Team:Gothenburg/Calendar

From 2014.igem.org

(Difference between revisions)
(More fixing)
(andreas bugfixing)
Line 1: Line 1:
{{CSS/Main}}
{{CSS/Main}}
{{Team:Gothenburg/UpperTemplate}}
{{Team:Gothenburg/UpperTemplate}}
-
 
-
<!-- <!doctype HTML> -->
 
-
<html>
 
-
<head>
 
-
<meta charset="utf-8" />
 
-
<title>temp</title>
 
<style type="text/css">
<style type="text/css">
Line 19: Line 13:
             margin-right: auto;
             margin-right: auto;
}
}
-
 
-
/* Table styling starts here */
 
#calendar>table {
#calendar>table {
Line 45: Line 37:
             margin-left: 1em;
             margin-left: 1em;
         }
         }
-
 
-
/* Table styling ends here */
 
         #contentDialog {
         #contentDialog {
Line 66: Line 56:
             overflow: auto;
             overflow: auto;
         }
         }
-
 
-
        /*
 
-
        * Hide from both screenreaders and browsers: h5bp.com/u
 
-
        */
 
         .hidden {
         .hidden {
Line 77: Line 63:
</style>
</style>
-
 
-
</head>
 
-
 
-
<body>
 
     <article id="contentDialog" title="Content">
     <article id="contentDialog" title="Content">
Line 1,461: Line 1,443:
     </section>
     </section>
-
 
-
   
 
-
    <!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
 
-
    <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.2.min.js"><\/script>')</script> -->
 
     <script type="text/javascript">
     <script type="text/javascript">
         var box = $( "#contentDialog" );
         var box = $( "#contentDialog" );
-
         //hide popup
+
          
         $(document).on('click', function(event) {
         $(document).on('click', function(event) {
            
            
Line 1,487: Line 1,465:
-
         function showContentOf(dateId) { //pass parameter with quotes like '2014-06-28'
+
         function showContentOf(dateId) {
             var selectedContent = $( "#" + dateId + ">span").html();
             var selectedContent = $( "#" + dateId + ">span").html();
Line 1,498: Line 1,476:
     </script>
     </script>
-
 
-
</body>
 
-
</html>
 

Revision as of 14:33, 7 August 2014

TemplateUp

<style type="text/css">

       h1.firstHeading {
           display: none;
       }

#content { width: 960px;

           margin-left: auto;
           margin-right: auto;

}

#calendar>table { margin: 2em; border-spacing: 10px; border-collapse: separate; }

.date { background-color: #f4f4f4; border: 1px solid Black; cursor: pointer; padding: 0; }

.date>h1 { float: right; font-size: 1em; margin: 0;

           color: #4444ee;

}

       .date>ul {
           margin-left: 1em;
       }
       #contentDialog {
           min-height: 100px;
           width: 500px;
           background-color: white;
           border: 2px solid green;
           margin: 2em;
           display: none;
           position: fixed;
           top: 5%;
           left: 25%;
           width: 50%;
           height: 75%;
           padding: 16px;
           border: 16px solid #ED6D22;
           background-color: white;
           z-index:1002;
           overflow: auto;
       }
       .hidden {
           display: none !important;
           visibility: hidden;
       }

</style>

   <article id="contentDialog" title="Content">
       Click a date with posts to show the content, or click outside this box to close it!
   </article>
   <section id="calendar">

Contents

26

  • Title one
  • Title two
                   

27

  • Title one
  • Title two
                   

28

  • Title one
  • Title two
                   

29

  • Title one
  • Title two
                   

30

  • Title one
  • Title two
                   

31

  • Title one
  • Title two
                   

1

  • Title one
  • Title two
                   

2

  • Title one
  • Title two
                   

3

  • Title one
  • Title two
                   

4

  • Title one
  • Title two
                   

5

  • Title one
  • Title two
                   

6

  • Title one
  • Title two
                   

7

  • Title one
  • Title two
                   

8

  • Title one
  • Title two
                   

9

  • Title one
  • Title two
                   

10

  • Title one
  • Title two
                   

11

  • Title one
  • Title two
                   

12

  • Title one
  • Title two
                   

13

  • Title one
  • Title two
                   

14

  • Title one
  • Title two
                   

15

  • Title one
  • Title two
                   

16

  • Title one
  • Title two
                   

17

  • Title one
  • Title two
                   

18

  • Title one
  • Title two
                   

19

  • Title one
  • Title two
                   

20

  • Title one
  • Title two
                   

21

  • Title one
  • Title two
                   

22

  • Title one
  • Title two
                   

23

  • Title one
  • Title two
                   

24

  • Title one
  • Title two
                   

25

  • Title one
  • Title two
                   

26

  • Title one
  • Title two
                   

27

  • Title one
  • Title two
                   

28

  • Title one
  • Title two
                   

29

  • Title one
  • Title two
                   

30

  • Title one
  • Title two
                   

1

  • Title one
  • Title two
                   

2

  • Title one
  • Title two
                   

3

  • Title one
  • Title two
                   

4

  • Title one
  • Title two
                   

5

  • Title one
  • Title two
                   

6

  • Title one
  • Title two
                   

30

  • Title one
  • Title two
                   

1

  • Title one
  • Title two
                   

2

  • Title one
  • Title two
                   

3

  • Title one
  • Title two
                   

4

  • Title one
  • Title two
                   

5

  • Title one
  • Title two
                   

6

  • Title one
  • Title two
                   

7

  • Title one
  • Title two
                   

8

  • Title one
  • Title two
                   

9

  • Title one
  • Title two
                   

10

  • Title one
  • Title two
                   

11

  • Title one
  • Title two
                   

12

  • Title one
  • Title two
                   

13

  • Title one
  • Title two
                   

14

  • Title one
  • Title two
                   

15

  • Title one
  • Title two
                   

16

  • Title one
  • Title two
                   

17

  • Title one
  • Title two
                   

18

  • Title one
  • Title two
                   

19

  • Title one
  • Title two
                   

20

  • Title one
  • Title two
                   

21

  • Title one
  • Title two
                   

22

  • Title one
  • Title two
                   

23

  • Title one
  • Title two
                   

24

  • Title one
  • Title two
                   

25

  • Title one
  • Title two
                   

26

  • Title one
  • Title two
                   

27

  • Title one
  • Title two
                   

28

  • Title one
  • Title two
                   

29

  • Title one
  • Title two
                   

30

  • Title one
  • Title two
                   

31

  • Title one
  • Title two
                   

1

  • Title one
  • Title two
                   

2

  • Title one
  • Title two
                   

3

  • Title one
  • Title two
                   

28

  • Title one
  • Title two
                   

29

  • Title one
  • Title two
                   

30

  • Title one
  • Title two
                   

31

  • Title one
  • Title two
                   

1

  • Title one
  • Title two
                   

2

  • Title one
  • Title two
                   

3

  • Title one
  • Title two
                   

4

  • Title one
  • Title two
                   

5

  • Title one
  • Title two
                   

6

  • Title one
  • Title two
                   

7

  • Title one
  • Title two
                   

8

  • Title one
  • Title two
                   

9

  • Title one
  • Title two
                   

10

  • Title one
  • Title two
                   

11

  • Title one
  • Title two
                   

12

  • Title one
  • Title two
                   

13

  • Title one
  • Title two
                   

14

  • Title one
  • Title two
                   

15

  • Title one
  • Title two
                   

16

  • Title one
  • Title two
                   

17

  • Title one
  • Title two
                   

18

  • Title one
  • Title two
                   

19

  • Title one
  • Title two
                   

20

  • Title one
  • Title two
                   

21

  • Title one
  • Title two
                   

22

  • Title one
  • Title two
                   

23

  • Title one
  • Title two
                   

24

  • Title one
  • Title two
                   

25

  • Title one
  • Title two
                   

26

  • Title one
  • Title two
                   

27

  • Title one
  • Title two
                   

28

  • Title one
  • Title two
                   

29

  • Title one
  • Title two
                   

30

  • Title one
  • Title two
                   

31

  • Title one
  • Title two
                   

1

  • Title one
  • Title two
                   

2

  • Title one
  • Title two
                   

3

  • Title one
  • Title two
                   

4

  • Title one
  • Title two
                   

5

  • Title one
  • Title two
                   

6

  • Title one
  • Title two
                   

7

  • Title one
  • Title two
                   

8

  • Title one
  • Title two
                   

9

  • Title one
  • Title two
                   

10

  • Title one
  • Title two
                   

11

  • Title one
  • Title two
                   

12

  • Title one
  • Title two
                   

13

  • Title one
  • Title two
                   

14

  • Title one
  • Title two
                   

15

  • Title one
  • Title two
                   

16

  • Title one
  • Title two
                   

17

  • Title one
  • Title two
                   

18

  • Title one
  • Title two
                   

19

  • Title one
  • Title two
                   

20

  • Title one
  • Title two
                   

21

  • Title one
  • Title two
                   

22

  • Title one
  • Title two
                   

23

  • Title one
  • Title two
                   

24

  • Title one
  • Title two
                   

25

  • Title one
  • Title two
                   

26

  • Title one
  • Title two
                   

27

  • Title one
  • Title two
                   

28

  • Title one
  • Title two
                   

29

  • Title one
  • Title two
                   

30

  • Title one
  • Title two
                   

1

  • Title one
  • Title two
                   

2

  • Title one
  • Title two
                   

3

  • Title one
  • Title two
                   

4

  • Title one
  • Title two
                   

5

  • Title one
  • Title two
                   
   </section>
   <script type="text/javascript">
       var box = $( "#contentDialog" );


       $(document).on('click', function(event) {
         
         if (!$(event.target).closest('.date').length &&
           !$(event.target).closest('#contentDialog').length &&
           !$(event.target).closest('#closeContentDialog').length) {
           box.fadeOut();
         }
       });
       $( ".date" ).click(function() {
           
           showContentOf(this.id);
       });


       function showContentOf(dateId) {
           var selectedContent = $( "#" + dateId + ">span").html();
           box.html( selectedContent );
           box.attr('title', dateId);
           box.fadeIn();
       }
   </script>