File: div2.js

package info (click to toggle)
keepassxc-browser 1.8.4%2Brepack1-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,488 kB
  • sloc: javascript: 8,405; makefile: 16; sh: 11
file content (17 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use script';

document.getElementById('toggle2').addEventListener('click', function(e) {
    const dialog = document.getElementById('dialog');
    const outer = document.getElementById('outer');
    const inner = document.getElementById('inner');

    if (dialog.style.zIndex === 'auto') {
        dialog.style.zIndex = 9999;
        inner.style.margin = '0px';
        outer.style.height = 'auto';
    } else {
        dialog.style.zIndex = 'auto';
        inner.style.margin = '-197px';
        outer.style.height = '0px';
    }
});