comparison src/site.js @ 11:62dd23f0b549

start add server
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 29 Oct 2023 22:39:31 -0600
parents 88f425d261b3
children 3e2cb946d511
comparison
equal deleted inserted replaced
10:ae9ebeb1c246 11:62dd23f0b549
48 48
49 function clickMenu(clicked,display) { 49 function clickMenu(clicked,display) {
50 //console.log("clickMenu"); 50 //console.log("clickMenu");
51 let pulldown = clicked.parentNode.querySelector('[pulldown_menu]'); 51 let pulldown = clicked.parentNode.querySelector('[pulldown_menu]');
52 if( pulldown !== currentPulldown ) { 52 if( pulldown !== currentPulldown ) {
53 pulldown.style.display = display || "block"; 53 pulldown.style.display = display || "flex";
54 newPulldown = pulldown; 54 newPulldown = pulldown;
55 window.onclick = function() { 55 window.onclick = function() {
56 if( currentPulldown ) { 56 if( currentPulldown ) {
57 currentPulldown.style.display = "none"; 57 currentPulldown.style.display = "none";
58 if( !newPulldown ) 58 if( !newPulldown )