<div class="header"></div>
<div class="content">
<div class="row">
<div class="col-left">
<div class="aside-left"></div>
</div>
<div class="col-main">
<div class="main">
<div class="filter">
<div class="row">
<div class="col-3">
<div class="input"></div>
</div>
<div class="col-3">
<div class="input"></div>
</div>
<div class="col-3">
<div class="input"></div>
</div>
<div class="col-3">
<div class="input"></div>
</div>
</div>
<div class="btn"></div>
</div>
<div class="news-line"></div>
<div class="news">
<div class="row">
<div class="col-4">
<div class="news-card"></div>
</div>
<div class="col-4">
<div class="news-card"></div>
</div>
<div class="col-4">
<div class="news-card"></div>
</div>
</div>
</div>
<div class="news-line"></div>
<div class="news">
<div class="row">
<div class="col-4">
<div class="news-card"></div>
</div>
<div class="col-4">
<div class="news-card"></div>
</div>
<div class="col-4">
<div class="news-card"></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-right">
<div class="aside-right"></div>
</div>
</div>
</div>
if (document.fonts) {
document.fonts.load("bold 16px 'Open Sans'", "b").then(function() {
console.log('font loaded')
});
}
dateFormatter = (date) => {
let dateStr = new Date(Date.parse(date)).toLocaleString('ru-RU', {
month: "long",
day: "numeric"
})
return dateStr
}
dateFormatter('11.04.2020') //"4 ноября"