Team:Gothenburg/Calendar
From 2014.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script> | <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script> | ||
- | <script | + | <script> |
+ | $(function() { | ||
+ | $("#pop_up_underlay").click(function(){ | ||
+ | $("#pop_up_display").css("display","none"); | ||
+ | $("#pop_up_underlay").css("display","none"); | ||
+ | $("#pop_up" ).empty(); | ||
+ | $('.summary').each(function() { | ||
+ | $(this).css("display","none"); | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | }); | ||
+ | |||
+ | $(function() { | ||
+ | $('td').each(function() { | ||
+ | $(this).click(function() { | ||
+ | $("#pop_up_display").css("display","inline"); | ||
+ | $("#pop_up_underlay").css("display","inline"); | ||
+ | var idday = $(this).find( "div" ).attr("id"); | ||
+ | $('.summary').each(function() { | ||
+ | if ($(this).attr("id") == idday) { | ||
+ | $(this).css("display","inline"); | ||
+ | $(this).clone().appendTo("#pop_up"); | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | }); //missing ); here! | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
</head> | </head> | ||
Revision as of 19:13, 17 July 2014