Browse Source

Make sure the whole <li> in the help menu catches clicks and redirect them to the link it contains

better-rectangles
Tissevert 8 months ago
parent
commit
068e0d4674
2 changed files with 10 additions and 1 deletions
  1. +3
    -1
      index.html
  2. +7
    -0
      js/GUI.js

+ 3
- 1
index.html View File

@ -20,7 +20,9 @@
</div><div id="help" class="menu">
<span>Aide</span>
<ul>
<li><a href="https://git.marvid.fr/Tissevert/chaoui" target="_blank">À propos de ce logiciel</a></li>
<li id="reposLink">
<a href="https://git.marvid.fr/Tissevert/chaoui" target="_blank">À propos de ce logiciel</a>
</li>
</ul>
</div>
</div>


+ 7
- 0
js/GUI.js View File

@ -15,6 +15,13 @@ var loadALTO = document.getElementById('loadALTO');
var saveALTO = document.getElementById('saveALTO');
var loadScoria = document.getElementById('loadScoria');
var saveScoria = document.getElementById('saveScoria');
var helpMenu = document.getElementById('help');
var reposLink = document.getElementById('reposLink');
reposLink.addEventListener('click', function(e) {
if(e.target.tagName != 'A') {
e.target.children[0].click();
}
});
/* Controls */
//var inputFiles = document.getElementById('inputFiles');


Loading…
Cancel
Save