Compare commits

..

4 commits

Author SHA1 Message Date
Shy
7236d859eb Enhance visibility of marker
All checks were successful
deployment-on-pull-request / deployment (pull_request) Successful in 1m20s
2024-05-07 19:13:45 +02:00
Shy
f8ecf20b75 Yellow outline around search input
All checks were successful
deployment-on-pull-request / deployment (pull_request) Successful in 1m14s
2024-05-07 18:38:00 +02:00
Shy
065fa5adbf More beautiful #mapnote
All checks were successful
deployment-on-pull-request / deployment (pull_request) Successful in 1m16s
2024-05-06 18:43:03 +02:00
Shy
1b3de458fa Fixed colors for #mapnote 2024-05-06 17:26:31 +02:00
2 changed files with 2 additions and 31 deletions

View file

@ -54,21 +54,6 @@ h1, h1 a {
font-size: smaller;
}
#knowntypes button {
color: #220;
background-color: #dfaa37;
border: 1px solid #220;
border-radius: 4px;
padding: 0.2em 0.4em;
margin: 0.2em;
font-weight: bolder;
cursor: pointer;
}
#knowntypes button:hover, #knowntypes button:focus {
background-color: #f5c251;
}
.btn {
box-shadow: 0 3px 6px -1px rgba(0,0,0,0.3);
}

View file

@ -65,22 +65,8 @@ function knownTypes() {
map[i.type] = true;
}
}
// Get location in document.
const known_types = document.getElementById('knowntypes');
known_types.textContent = `Known types: `;
// Create a button for every known type.
for (let label of Object.keys(map).sort()) {
btn = document.createElement('button');
btn.setAttribute('type', 'button');
btn.textContent = label;
btn.addEventListener('click', function() {
document.getElementById('type').value = label;
});
known_types.appendChild(btn);
}
let types = Object.keys(map).sort().join(', ')
document.getElementById('knowntypes').textContent = `Known types: ${types}.`;
}
function save() {