menu deroulant ok
This commit is contained in:
@@ -37,13 +37,25 @@ function fill_filters(filters_div) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
let content = "";
|
let content = "";
|
||||||
for (key in filters) {
|
let keys = Object.keys(filters);
|
||||||
if (! filters.hasOwnProperty(key))
|
keys.forEach((key) => {
|
||||||
continue;
|
content += `
|
||||||
content += '<div class="filter_menu">';
|
<div class="filter_menu">
|
||||||
content += key;
|
<div class="filter_menu_title">
|
||||||
content += '</div>';
|
<p>${key}</p>
|
||||||
}
|
</div>
|
||||||
|
<div class="filter_menu_drop">
|
||||||
|
`;
|
||||||
|
for (value of filters[key]) {
|
||||||
|
content += `
|
||||||
|
<p>${value._name}</p>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
content += `
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
});
|
||||||
|
|
||||||
filters_div.innerHTML = content;
|
filters_div.innerHTML = content;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,15 +6,53 @@
|
|||||||
|
|
||||||
#ljdp_map_filters {
|
#ljdp_map_filters {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
position: relative;
|
||||||
border: 1px solid red;
|
border: 1px solid red;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
#ljdp_map_filters > .filter_menu {
|
#ljdp_map_filters .filter_menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
position: relative;
|
||||||
|
margin: auto;
|
||||||
|
width: 100%;
|
||||||
|
border: 1px solid blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ljdp_map_filters .filter_menu:hover .filter_menu_drop {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ljdp_map_filters .filter_menu .filter_menu_title {
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
width: auto;
|
width: auto;
|
||||||
border: 1px solid blue;
|
border: 1px solid green;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ljdp_map_filters .filter_menu .filter_menu_drop {
|
||||||
|
display: none;
|
||||||
|
flex-direction: column;
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0px;
|
||||||
|
margin: auto;
|
||||||
|
padding: 10px 0px;
|
||||||
|
width: 100%;
|
||||||
|
max-height: 400px;
|
||||||
|
overflow-y: scroll;
|
||||||
|
background-color: white;
|
||||||
|
border: 1px solid pink;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ljdp_map_filters .filter_menu .filter_menu_drop p {
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
margin: 0px auto 0px 0px;
|
||||||
|
padding: 0px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user