Commit 7e8aedde authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

No more JQuery

parent 84e7b7be
#demo_presentation{
text-align: justify;
font-size: 1.2rem;
}
.figure{
......@@ -8,6 +9,10 @@
clear:right;
float:left;
}
.navbar-brand{
margin-left: 2rem;
}
a {
color: rgba(0,0,0,.5);
}
......
$(document).ready(function(){
$(".row a").hover(
function() {
$( this ).siblings('.demo_text').show();
}, function() {
$( this ).siblings('.demo_text').hide();
}
);
document.addEventListener('DOMContentLoaded',() =>{
document.querySelectorAll('.row a').forEach((elt) => {
elt.addEventListener('mouseover', () => {
elt.parentElement.querySelectorAll('.demo_text').forEach((dt) => {
dt.style.display = 'block';
})
});
elt.addEventListener('mouseout', () => {
elt.parentElement.querySelectorAll('.demo_text').forEach((dt) => {
dt.style.display = 'none';
})
})
})
// $(".row a").hover(
// function() {
// $( this ).siblings('.demo_text').show();
// }, function() {
// $( this ).siblings('.demo_text').hide();
// }
//);
});
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