fix js
This commit is contained in:
@@ -185,6 +185,9 @@ main{
|
|||||||
|
|
||||||
transition: opacity .2s ease-out;
|
transition: opacity .2s ease-out;
|
||||||
}
|
}
|
||||||
|
.cabinet-content{
|
||||||
|
pointer-events:none;
|
||||||
|
}
|
||||||
.cabinet__orders.active, .cabinet__profile.active{
|
.cabinet__orders.active, .cabinet__profile.active{
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
||||||
@@ -193,6 +196,7 @@ main{
|
|||||||
.cabinet__orders.hide, .cabinet__profile.hide{
|
.cabinet__orders.hide, .cabinet__profile.hide{
|
||||||
position: static;
|
position: static;
|
||||||
display: block;
|
display: block;
|
||||||
|
pointer-events:auto;
|
||||||
}
|
}
|
||||||
.cabinet__subscription-pc{
|
.cabinet__subscription-pc{
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@@ -67,7 +67,12 @@ export function closeModalForm(close){
|
|||||||
buttons.forEach(button => {
|
buttons.forEach(button => {
|
||||||
button.onclick = function (buttonEvent) {
|
button.onclick = function (buttonEvent) {
|
||||||
modal.classList.remove('active');
|
modal.classList.remove('active');
|
||||||
modal.querySelector('.active').classList.remove('active');
|
|
||||||
|
if (!modal.querySelector('.modal-map.active')) {
|
||||||
|
modal.querySelector('.modal-form.active').classList.remove('active');
|
||||||
|
}else{
|
||||||
|
modal.querySelector('.modal-map.active').classList.remove('active');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1139,5 +1139,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<script type="module" src="assets/js/gp-cabinet.js"></script>
|
<script type="module" src="assets/js/gp-cabinet.js"></script>
|
||||||
|
<script src="assets/js/gp-form.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user