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

No more JQuery

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