Feat: Multiplayer sessions added using CRUD database.
This commit is contained in:
14
static/js/components/common/inputs/select.js
Normal file
14
static/js/components/common/inputs/select.js
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
function handleSelectCollapse(elementSelect) {
|
||||
let optionSelected = document.querySelectorAll(elementSelect).querySelector('option:selected');
|
||||
optionSelected.text(optionSelected.getAttribute(attrTextCollapsed));
|
||||
optionSelected.classList.remove(flagExpanded);
|
||||
optionSelected.classList.add(flagIsCollapsed);
|
||||
}
|
||||
function handleSelectExpand(elementSelect) {
|
||||
let optionSelected = document.querySelectorAll(elementSelect).querySelector('option:selected');
|
||||
optionSelected.text(optionSelected.getAttribute(attrTextExpanded));
|
||||
optionSelected.classList.remove(flagIsCollapsed);
|
||||
optionSelected.classList.add(flagExpanded);
|
||||
}
|
||||
Reference in New Issue
Block a user