Loading ui/css/max_tei_demo.css +5 −0 Original line number Diff line number Diff line #demo_presentation{ text-align: justify; font-size: 1.2rem; } .figure{ Loading @@ -8,6 +9,10 @@ clear:right; float:left; } .navbar-brand{ margin-left: 2rem; } a { color: rgba(0,0,0,.5); } Loading ui/js/max_tei_demo.js +23 −10 Original line number Diff line number Diff line $(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(); // } //); }); Loading
ui/css/max_tei_demo.css +5 −0 Original line number Diff line number Diff line #demo_presentation{ text-align: justify; font-size: 1.2rem; } .figure{ Loading @@ -8,6 +9,10 @@ clear:right; float:left; } .navbar-brand{ margin-left: 2rem; } a { color: rgba(0,0,0,.5); } Loading
ui/js/max_tei_demo.js +23 −10 Original line number Diff line number Diff line $(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(); // } //); });