Difference between revisions of "Team:Virginia/Parts"
Line 178: | Line 178: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
jQuery(document).ready(function(){ | jQuery(document).ready(function(){ | ||
+ | $(".popup").fadeOut("fast"); | ||
$("table tr:nth-child(1) a").click(function(){ | $("table tr:nth-child(1) a").click(function(){ | ||
$("#popup-1").fadeIn("fast"); | $("#popup-1").fadeIn("fast"); | ||
Line 183: | Line 184: | ||
$("#popup-1").click(function(){ | $("#popup-1").click(function(){ | ||
$("#popup-1").fadeOut("fast"); | $("#popup-1").fadeOut("fast"); | ||
+ | }); | ||
+ | |||
+ | |||
+ | $("table tr:nth-child(2) a").click(function(){ | ||
+ | $("#popup-2").fadeIn("fast"); | ||
+ | }); | ||
+ | $("#popup-2").click(function(){ | ||
+ | $("#popup-2").fadeOut("fast"); | ||
+ | }); | ||
+ | |||
+ | |||
+ | $("table tr:nth-child(3) a").click(function(){ | ||
+ | $("#popup-3").fadeIn("fast"); | ||
+ | }); | ||
+ | $("#popup-3").click(function(){ | ||
+ | $("#popup-3").fadeOut("fast"); | ||
+ | }); | ||
+ | |||
+ | |||
+ | $("table tr:nth-child(4) a").click(function(){ | ||
+ | $("#popup-4").fadeIn("fast"); | ||
+ | }); | ||
+ | $("#popup-4").click(function(){ | ||
+ | $("#popup-4").fadeOut("fast"); | ||
}); | }); | ||
}); | }); |
Revision as of 01:04, 17 September 2015