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