Difference between revisions of "Team:KU Leuven/Research/Methods"
Line 300: | Line 300: | ||
} | } | ||
} | } | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function($) { | ||
+ | $('#accordion').find('.accordion-toggle').click(function(){ | ||
+ | |||
+ | //Expand or collapse this panel | ||
+ | $(this).next().slideToggle('fast'); | ||
+ | |||
+ | //Hide the other panels | ||
+ | $(".accordion-content").not($(this).next()).slideUp('fast'); | ||
+ | |||
+ | }); | ||
+ | }); | ||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 16:23, 6 September 2015
Methods
Accordion 1
Cras malesuada ultrices augue molestie risus.
Accordion 2
Lorem ipsum dolor sit amet mauris eu turpis.
Accordion 3
Vivamus facilisisnibh scelerisque laoreet.