Trying to remove jquery - online edit of 1623/161/names.htm

This commit is contained in:
Expo on server 2022-06-24 21:42:31 +01:00
parent 8531ab6d33
commit 9888c09c19

View File

@ -1913,14 +1913,19 @@ to climb into <span lang=de-at>Staud'nwirt</span> Palace (1995)<br>
</dl>
</div>
<hr />
<script src="/site_media/js/jquery-3.6.0.min.js"></script>
<script> function show(id){
$(".hidable").hide();
$("#"+id).show();
<script>
function show(id){
var arrayOfElements=document.getElementsByClassName('hidable');
var lengthOfArray=arrayOfElements.length;
for (var i=0; i<lengthOfArray;i++){
arrayOfElements[i].display='block';
}
document.getElementById(id).display = 'block';
$(".t").css({ 'font-weight': 'normal' });
document.getElementById("t_" + id).css = 'block';
$("#t_"+id).css({ 'font-weight': 'bold' });
}
show('0');
</script>
</body>
</script></body>
</html>