Бесплатный виджет статистики инсультов
Бесплатный виджет статистики инсультов
Установите на свой сайт актуальную статистику инсультов в России. Виджет обновляется в реальном времени.
450,000+
случаев в год в России
1,233
случаев в день
51
случаев в час
Код для установки
HTML + JavaScript
📋 Копировать код
<div style="max-width:320px;margin:20px auto;padding:20px;background:white;border-radius:15px;border:2px solid #ffe6e6;box-shadow:0 5px 15px rgba(0,0,0,0.05);font-family:Arial,sans-serif;text-align:center">
<div style="color:#2c3e50;font-size:18px;font-weight:bold;margin-bottom:5px">
<a href="https://инсульту.net" style="color:#2c3e50;text-decoration:none" target="_blank">
<!-- ВАША КАРТИНКА В ВИДЖЕТЕ -->
<img src="https://инсульту.net/logo-small.png" alt="Инсульту.NET" style="height:20px;vertical-align:middle;margin-right:8px">
Статистика инсультов
</a>
</div>
<div style="color:#6c757d;font-size:14px;margin-bottom:15px" id="currentDate">Дата</div>
<div style="background:#fff5f5;border-radius:12px;padding:20px;margin:15px 0;border:1px solid #ffcccc">
<div style="font-size:42px;font-weight:900;color:#dc3545;margin:10px 0" id="counter">0</div>
<div style="color:#495057;font-size:16px;line-height:1.4">
<span style="color:#dc3545;font-weight:600">человек сегодня</span><br>
перенесли инсульт
</div>
</div>
<div style="font-size:11px;color:#6c757d;line-height:1.4;margin-top:15px">
<div style="background:#f8f9fa;padding:10px;border-radius:8px;margin-bottom:10px">
⚠️ Расчет на основе данных НАБИ (~450,000 случаев/год)<br>
Обновляется в реальном времени
</div>
<a href="https://инсульту.net" style="
display:inline-block;
background:#007bff;
color:white;
padding:8px 15px;
border-radius:20px;
text-decoration:none;
font-weight:bold;
font-size:12px;
" target="_blank">
📊 Подробная статистика
</a>
</div>
</div>
<script>
(function(){
function updateCounter(){
var now=new Date();
var hours=now.getHours();
var minutes=now.getMinutes();
var dayProgress=(hours*60+minutes)/(24*60);
var todayCases=Math.round(1233*dayProgress);
document.getElementById('counter').textContent=todayCases.toLocaleString('ru-RU');
var dateStr=now.toLocaleDateString('ru-RU',{weekday:'long',day:'numeric',month:'long',year:'numeric'});
document.getElementById('currentDate').textContent=dateStr.charAt(0).toUpperCase()+dateStr.slice(1);
}
updateCounter();
setInterval(updateCounter,60000);
})();
</script>
// Функция для отображения виджета с ВАШЕЙ картинкой
function renderWidget() {
const container = document.getElementById('widget-container');
const widgetHTML = `
${new Date().toLocaleDateString('ru-RU', {weekday: 'long', day: 'numeric', month: 'long', year: 'numeric'})}
${calculateTodayCases()}
человек сегодня
перенесли инсульт
`;
container.innerHTML = widgetHTML;
}
// ... остальной JavaScript код ...

Статистика инсультов