Line 2: | Line 2: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
+ | function def() { | ||
+ | $(".team .sidebar-index .card-title").text("Hover on a Team member") | ||
+ | $(".team .sidebar-index .card-text").text("Lorem") | ||
+ | } | ||
$(".teampic#rodrigo") | $(".teampic#rodrigo") | ||
.on("mouseenter", function() { | .on("mouseenter", function() { | ||
$(".team .sidebar-index .card-title").text("Rodrigo Valencia") | $(".team .sidebar-index .card-title").text("Rodrigo Valencia") | ||
− | $(".team .sidebar-index .card-text"). | + | $(".team .sidebar-index .card-text").html( |
− | + | "<h4>Team lider</h4><p>Lorem</p>" | |
− | + | ) | |
− | + | ||
− | + | ||
}) | }) | ||
+ | .on("mouseleave", def) | ||
$(".teampic#karla") | $(".teampic#karla") | ||
.on("mouseenter", function() { | .on("mouseenter", function() { | ||
$(".team .sidebar-index .card-title").text("Karla Soto") | $(".team .sidebar-index .card-title").text("Karla Soto") | ||
− | $(".team .sidebar-index .card-text"). | + | $(".team .sidebar-index .card-text").html( |
− | + | "<h4>Disque PM</h4><p>Lorem</p>" | |
− | + | ) | |
− | + | ||
− | + | ||
}) | }) | ||
+ | .on("mouseleave", def) | ||
$(".teampic#joel") | $(".teampic#joel") | ||
.on("mouseenter", function() { | .on("mouseenter", function() { | ||
$(".team .sidebar-index .card-title").text("Joel Lara") | $(".team .sidebar-index .card-title").text("Joel Lara") | ||
− | $(".team .sidebar-index .card-text"). | + | $(".team .sidebar-index .card-text").html( |
− | + | "<h4>El chido :v</h4><p>Lorem</p>" | |
− | + | ) | |
− | + | ||
− | + | ||
}) | }) | ||
+ | .on("mouseleave", def) | ||
$(".teampic#mille") | $(".teampic#mille") | ||
.on("mouseenter", function() { | .on("mouseenter", function() { | ||
$(".team .sidebar-index .card-title").text("Santiago Mille") | $(".team .sidebar-index .card-title").text("Santiago Mille") | ||
− | $(".team .sidebar-index .card-text").html("<h4>Chantal, Uriel and Ari's Sugar Daddy :*</h4><p>Lorem</p>") | + | $(".team .sidebar-index .card-text").html( |
+ | "<h4>Chantal, Uriel and Ari's Sugar Daddy :*</h4><p>Lorem</p>" | ||
+ | ) | ||
}) | }) | ||
− | .on("mouseleave", | + | .on("mouseleave", def) |
− | + | $(".teampic#alex") | |
− | + | ||
− | + | ||
− | $(".teampic# | + | |
.on("mouseenter", function() { | .on("mouseenter", function() { | ||
− | $(".team .sidebar-index .card-title").text(" | + | $(".team .sidebar-index .card-title").text("Alex") |
− | $(".team .sidebar-index .card-text").html("<h4> | + | $(".team .sidebar-index .card-text").html( |
− | + | "<h4>Bro</h4><p>Lorem</p>" | |
− | + | ) | |
− | + | ||
− | + | ||
}) | }) | ||
+ | .on("mouseleave", def) | ||
}) | }) | ||
+ | |||
</script> | </script> | ||
</html> | </html> |
Revision as of 22:55, 14 October 2018