(Created page with "<html> <script type="text/javascript"> $(document).ready(function() { $(".teampic#rodrigo").click(function() { $(".team .sidebar-index .card-title").text("Rodrigo...") |
|||
Line 2: | Line 2: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
− | $(".teampic#rodrigo"). | + | $(".teampic#rodrigo").on( |
− | + | "hover", | |
− | $(".team .sidebar-index .card-text").text("Lorem") | + | function() { |
− | + | $(".team .sidebar-index .card-title").text("Rodrigo Valencia") | |
− | $(".teampic#karla").click(function() { | + | $(".team .sidebar-index .card-text").text("Lorem") |
− | + | }, | |
− | $(".team .sidebar-index .card-text").text("Lorem") | + | function() { |
− | + | $(".team .sidebar-index .card-title").text("Hover on a Team member") | |
+ | $(".team .sidebar-index .card-text").text("Lorem") | ||
+ | } | ||
+ | ) | ||
+ | $(".teampic#karla").click( | ||
+ | function() { | ||
+ | $(".team .sidebar-index .card-title").text("Karla Soto") | ||
+ | $(".team .sidebar-index .card-text").text("Lorem") | ||
+ | }, | ||
+ | function() { | ||
+ | $(".team .sidebar-index .card-title").text("Hover on a Team member") | ||
+ | $(".team .sidebar-index .card-text").text("Lorem") | ||
+ | } | ||
+ | ) | ||
}) | }) | ||
− | |||
</script> | </script> | ||
</html> | </html> |
Revision as of 20:48, 14 October 2018