Commit 9040c5a0 authored by Christian Engwer's avatar Christian Engwer

[carousel] only show image details when hovering the caption

parent 2501eb03
......@@ -55,19 +55,12 @@
<script>
$('#topCarousel').hover(function(){
$("#topCarousel").carousel('pause');
$("#topCarousel").addClass('fullinfo');
},function(){
$("#topCarousel").carousel('cycle');
});
$("div.carousel-caption").hover(function(){
$("#topCarousel").addClass('fullinfo');
},function(){
$("#topCarousel").removeClass('fullinfo');
});
// var classname = document.getElementsByClassName("classname");
//
// var myFunction = function() {
// var attribute = this.getAttribute("data-myattribute");
// alert(attribute);
// };
//
// for (var i = 0; i < classname.length; i++) {
// classname[i].addEventListener('click', myFunction, false);
// }
});
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment