-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
26 lines (23 loc) · 861 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const ukLanguageButt = document.getElementById('uk-button');
const enLanguageButt = document.getElementById('en-button');
let ukElem = document.getElementsByClassName('uk');
let enElem = document.getElementsByClassName('en');
let ukTitle = document.getElementById('uk-title');
ukLanguageButt.addEventListener("click",
function(){
for (let i = 0; i < enElem.length; i++) {
enElem[i].classList.add('del');
ukElem[i].classList.remove('del');
ukElem[i].style.fontFamily = 'var(--uk-regular-font)';
}
ukTitle.style.fontFamily = 'var(--uk-title-font)';
ukTitle.style.fontSize = '14rem';
ukTitle.style.letterSpacing = '50px';
});
enLanguageButt.addEventListener("click",
function(){
for (let i = 0; i < ukElem.length; i++) {
ukElem[i].classList.add('del');
enElem[i].classList.remove('del');
}
});