@font-face {
font-family: 'Open Sans';
src: url('../fonts/OpenSansBold.woff2') format('woff2'),
url('../fonts/OpenSansBold.woff') format('woff'),
url('../fonts/OpenSansBold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Open Sans';
src: url('../fonts/OpenSansSemibold.woff2') format('woff2'),
url('../fonts/OpenSansSemibold.woff') format('woff'),
url('../fonts/OpenSansSemibold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: 'Open Sans';
src: url('../fonts/OpenSans.woff2') format('woff2'),
url('../fonts/OpenSans.woff') format('woff'),
url('../fonts/OpenSans.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Open Sans';
src: url('../fonts/OpenSansLight.woff2') format('woff2'),
url('../fonts/OpenSansLight.woff') format('woff'),
url('../fonts/OpenSansLight.ttf') format('truetype');
font-weight: 300;
font-style: normal;
}
console.log(link[2].getAttribute('href'));
let link = document.querySelectorAll('div a');
window.addEventListener('DOMContentLoaded', (e)=> {
link.forEach((item)=> {
alert(item.style.color);
})
})