Team:Gothenburg/Calendar

From 2014.igem.org

(Difference between revisions)
(andreas bugfixing)
Line 1,447: Line 1,447:
     </section>
     </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>
+
</body>
</body>
</html>
</html>

Revision as of 14:38, 7 August 2014

TemplateUp

Click a date with posts to show the content, or click outside this box to close it!

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