mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
457 B
JavaScript
12 lines
457 B
JavaScript
document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
let attachFrom = document.querySelector('#attaching-form');
|
|
document.querySelector('#attach-down')?.addEventListener('click', function () {
|
|
attachFrom.style.bottom = (window.innerHeight * -.5+'px');
|
|
});
|
|
document.querySelector('#show-attach-form')?.addEventListener('click', function (e) {
|
|
e.preventDefault();
|
|
attachFrom.style.bottom = ('0px');
|
|
});
|
|
});
|