Difference between revisions of "Team:UMaryland/journal"
Sarahjade712 (Talk | contribs) |
Sarahjade712 (Talk | contribs) |
||
Line 37: | Line 37: | ||
</style> | </style> | ||
+ | |||
+ | <script type = "text/javascript"> | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | $("ul#tabs li").click(function(e){ | ||
+ | if (!$(this).hasClass("active")) { | ||
+ | var tabNum = $(this).index(); | ||
+ | var nthChild = tabNum+1; | ||
+ | $("ul#tabs li.active").removeClass("active"); | ||
+ | $(this).addClass("active"); | ||
+ | $("ul#tab li.active").removeClass("active"); | ||
+ | $("ul#tab li:nth-child("+nthChild+")").addClass("active"); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | </style> | ||
+ | |||
Revision as of 02:45, 7 August 2015