-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjs.js
More file actions
23 lines (20 loc) · 718 Bytes
/
Copy pathjs.js
File metadata and controls
23 lines (20 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//Glow effects for navbar
window.addEventListener('scroll', () => {
const navbar = document.querySelector('.navbar');
if (window.scrollY > 0) {
navbar.classList.add('glow');
} else {
navbar.classList.remove('glow');
}
});
function copyCode(code) {
let cssCode = '';
if (code === 'css-ru') {
cssCode = '<link rel="stylesheet" href="https://phancyn.ru/css/pUI/css.css">';
}
if (code === 'css') {
cssCode = '<link rel="stylesheet" href="https://github.com/phancyn/pui/releases/download/v1.0.0/css.css">';
}
navigator.clipboard.writeText(cssCode);
alert('Код скопирован в буфер обмена!');
}