GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( dee889...a2f0c3 )
by Vladimir
25s
created

src/front/js/events.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 20
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 3
c 1
b 0
f 0
nc 1
mnd 0
bc 3
fnc 3
dl 0
loc 20
rs 10
bpm 1
cpm 1
noi 0
1
/**
2
 * Handler for menu "news" link, which is open menu block.
3
 */
4
document.getElementById('menuNews').addEventListener('click', () => {
5
  document.getElementById('news').style.display = 'block';
6
});
7
8
/**
9
 * Handler for close image, which is close (hide) parent element.
10
 */
11
document.getElementById('close').addEventListener('click', (e) => {
12
  e.target.parentElement.style.display = 'none';
13
});
14
15
/**
16
 * Auto-scrolling to latest data.
17
 */
18
window.addEventListener('onscroll', () => {
19
  /** global: app */
20
  app.autoScrool = (
21
    (window.innerHeight + window.scrollY) >= document.body.offsetHeight
22
  );
23
});
24