Team:TU Munich/Templates/Layout
From 2010.igem.org
(Difference between revisions)
Hartlmueller (Talk | contribs) |
Hartlmueller (Talk | contribs) |
||
Line 10: | Line 10: | ||
//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state) | //Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state) | ||
$("p.trigger").click(function(){ | $("p.trigger").click(function(){ | ||
- | $(this).toggleClass(" | + | $(this).toggleClass("activeToggle"); |
- | $(".toggle_container").slideToggle("slow"); | + | $(this).next().next(".toggle_container").slideToggle("slow"); |
+ | alert($(this).next().next(".toggle_container").html()); | ||
return false; //Prevent the browser jump to the link anchor | return false; //Prevent the browser jump to the link anchor | ||
}); | }); | ||
Line 288: | Line 289: | ||
display: none; | display: none; | ||
} | } | ||
+ | |||
+ | |||
+ | p.trigger | ||
+ | { | ||
+ | padding-left: 17px; | ||
+ | background-image: url('https://static.igem.org/mediawiki/2010/1/10/Team_TU_Munich2010_Images_Arrow_small.jpg'); | ||
+ | background-repeat: no-repeat; | ||
+ | } | ||
+ | |||
</style> | </style> |