mirror of
https://github.com/olehomelchenko/bi-detective.git
synced 2026-06-24 01:37:45 +00:00
360 lines
22 KiB
HTML
360 lines
22 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="uk">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>BI Detective — розслідування дашборду</title>
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');
|
|
|
|
/* Quarto overrides for custom page */
|
|
#quarto-content {
|
|
padding: 0 !important;
|
|
}
|
|
.page-layout-custom .quarto-container {
|
|
max-width: 100% !important;
|
|
padding: 0 !important;
|
|
}
|
|
#quarto-margin-sidebar, #quarto-sidebar { display: none !important; }
|
|
#title-block-header { display: none; }
|
|
|
|
/* Game variables */
|
|
.game-root {
|
|
--primary: #003964;
|
|
--blue: #00BBCE;
|
|
--green: #A7C539;
|
|
--red: #F15B43;
|
|
--font: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
--left-w: 360px;
|
|
font-family: var(--font);
|
|
color: #333;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Header */
|
|
.game-root .header { background: var(--primary); color: white; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
|
|
.game-root .header h1 { font-size: 15px; font-weight: 600; margin: 0; }
|
|
.game-root .header-right { display: flex; align-items: center; gap: 14px; }
|
|
.game-root .views-tag { font-size: 12px; opacity: 0.75; }
|
|
.game-root .restart-btn { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 4px 10px; border-radius: 5px; cursor: pointer; font-size: 11px; font-family: var(--font); }
|
|
.game-root .restart-btn:hover { background: rgba(255,255,255,0.25); }
|
|
|
|
/* App layout */
|
|
.game-root .app { flex: 1; display: grid; grid-template-columns: var(--left-w) 1fr; overflow: hidden; }
|
|
|
|
/* Left panel */
|
|
.game-root .left-panel { display: flex; flex-direction: column; border-right: 1px solid #ddd; background: #fff; overflow: hidden; }
|
|
|
|
.game-root .vp-section { padding: 14px 16px; border-bottom: 1px solid #eee; flex-shrink: 0; }
|
|
.game-root .vp-msg { display: flex; gap: 10px; margin-bottom: 10px; }
|
|
.game-root .vp-avatar { width: 32px; height: 32px; border-radius: 6px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: white; flex-shrink: 0; }
|
|
.game-root .vp-content { flex: 1; min-width: 0; }
|
|
.game-root .vp-name { font-size: 12px; font-weight: 600; color: var(--primary); }
|
|
.game-root .vp-title { font-size: 11px; color: #999; }
|
|
.game-root .vp-text { font-size: 13px; line-height: 1.45; color: #333; margin-top: 3px; }
|
|
|
|
.game-root .alert-metrics { display: flex; gap: 8px; }
|
|
.game-root .alert-metric { flex: 1; background: #fef2f0; border: 1px solid #fcd5cf; border-radius: 6px; padding: 8px 10px; }
|
|
.game-root .alert-metric .am-label { font-size: 10px; text-transform: uppercase; color: #888; letter-spacing: 0.3px; }
|
|
.game-root .alert-metric .am-val { font-size: 18px; font-weight: 700; color: var(--primary); }
|
|
.game-root .alert-metric .am-delta { font-size: 12px; font-weight: 600; color: var(--red); }
|
|
|
|
/* Insights */
|
|
.game-root .insights-section { flex: 1; overflow-y: auto; padding: 12px 16px; }
|
|
.game-root .insights-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #999; margin-bottom: 8px; font-weight: 600; }
|
|
|
|
.game-root .insight-card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: default; transition: all 0.3s ease; position: relative; }
|
|
.game-root .insight-card.locked { background: #f8f8f8; border-color: #eee; }
|
|
.game-root .insight-placeholder { font-size: 12px; color: #bbb; font-style: italic; }
|
|
.game-root .insight-card.locked .insight-check { display: none; }
|
|
|
|
.game-root .insight-card.unlocked { opacity: 1; border-color: var(--blue); background: #f0fbfd; animation: unlockPulse 0.6s ease; }
|
|
.game-root .insight-card.unlocked.conclusion { border-color: var(--green); background: #f4f9e8; }
|
|
@keyframes unlockPulse { 0% { box-shadow: 0 0 0 0 rgba(0,187,206,0.4); } 70% { box-shadow: 0 0 0 8px rgba(0,187,206,0); } 100% { box-shadow: none; } }
|
|
|
|
.game-root .insight-text { font-size: 13px; line-height: 1.4; }
|
|
.game-root .insight-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 3px; margin-top: 4px; }
|
|
.game-root .insight-tag.observation { background: #e3f2fd; color: #1565c0; }
|
|
.game-root .insight-tag.conclusion { background: #e8f5e9; color: #2e7d32; }
|
|
|
|
.game-root .insight-check { position: absolute; right: 10px; top: 10px; width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; color: white; background: white; transition: all 0.2s; }
|
|
.game-root .insight-card.unlocked.conclusion .insight-check { display: flex; border-color: var(--green); }
|
|
.game-root .insight-card.unlocked:not(.conclusion) .insight-check { display: none; }
|
|
.game-root .insight-check.checked { background: var(--green); border-color: var(--green); }
|
|
|
|
/* Connection card */
|
|
.game-root .connection-card { background: #fff8e1; border-left: 3px solid #ffc107; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; font-size: 12px; line-height: 1.5; color: #555; animation: unlockPulse 0.6s ease; }
|
|
.game-root .connection-card strong { color: var(--primary); }
|
|
|
|
/* Submit */
|
|
.game-root .submit-section { padding: 12px 16px; border-top: 1px solid #eee; flex-shrink: 0; }
|
|
.game-root .submit-btn { width: 100%; padding: 10px; border: none; border-radius: 7px; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all 0.2s; }
|
|
.game-root .submit-btn:disabled { background: #e0e0e0; color: #999; cursor: not-allowed; }
|
|
.game-root .submit-btn:not(:disabled) { background: var(--green); color: var(--primary); }
|
|
.game-root .submit-btn:not(:disabled):hover { background: #96b432; }
|
|
.game-root .submit-hint { font-size: 11px; color: #aaa; text-align: center; margin-top: 4px; }
|
|
|
|
/* Right panel */
|
|
.game-root .right-panel { display: flex; flex-direction: column; overflow: hidden; background: #f4f4f8; }
|
|
|
|
.game-root .tab-bar { display: flex; border-bottom: 2px solid #e0e0e0; padding: 0 16px; flex-shrink: 0; background: white; }
|
|
.game-root .tab-btn { padding: 10px 18px; font-size: 13px; font-family: var(--font); font-weight: 600; border: none; background: none; cursor: pointer; color: #888; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
|
|
.game-root .tab-btn:hover { color: var(--primary); }
|
|
.game-root .tab-btn.active { color: var(--primary); border-bottom-color: var(--blue); }
|
|
|
|
.game-root .tab-content { flex: 1; overflow-y: auto; padding: 16px 20px; }
|
|
.game-root .tab-pane { display: none; }
|
|
.game-root .tab-pane.active { display: block; }
|
|
|
|
.game-root .chart-card { background: white; border: 1px solid #e0e0e0; border-radius: 10px; padding: 16px; margin-bottom: 14px; }
|
|
.game-root .chart-card h3 { font-size: 14px; color: var(--primary); margin-bottom: 10px; }
|
|
.game-root .chart-card canvas { max-height: 260px; }
|
|
|
|
.game-root .toggle-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
|
|
.game-root .toggle-label { font-size: 12px; color: #888; }
|
|
.game-root .toggle-btn { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-family: var(--font); cursor: pointer; border: 1px solid #ccc; background: white; color: #666; transition: all 0.15s; }
|
|
.game-root .toggle-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
|
|
|
|
/* Sub-tabs */
|
|
.game-root .sub-tab-bar { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
|
|
.game-root .sub-tab-btn { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-family: var(--font); cursor: pointer; border: 1px solid #ddd; background: white; color: #666; transition: all 0.15s; }
|
|
.game-root .sub-tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
|
|
|
|
/* Metrics row */
|
|
.game-root .metrics-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
|
|
.game-root .metric-card { flex: 1; min-width: 120px; background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 14px; }
|
|
.game-root .metric-card .mc-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.3px; }
|
|
.game-root .metric-card .mc-val { font-size: 20px; font-weight: 700; color: var(--primary); margin: 2px 0; }
|
|
.game-root .metric-card .mc-delta { font-size: 12px; font-weight: 600; }
|
|
.game-root .metric-card .mc-delta.pos { color: #2e7d32; }
|
|
.game-root .metric-card .mc-delta.neg { color: var(--red); }
|
|
|
|
/* Quiz system */
|
|
.game-root .quiz-section { background: white; border: 1px solid #e0e0e0; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
|
|
.game-root .quiz-prompt { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
|
|
.game-root .quiz-options { display: flex; flex-direction: column; gap: 6px; }
|
|
.game-root .quiz-opt { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; background: white; cursor: pointer; font-family: var(--font); font-size: 13px; line-height: 1.4; text-align: left; color: #333; transition: all 0.2s; }
|
|
.game-root .quiz-opt:hover:not(.disabled) { border-color: var(--blue); background: #f8fcfd; }
|
|
.game-root .quiz-opt .q-icon { flex-shrink: 0; width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 1px; transition: all 0.2s; }
|
|
.game-root .quiz-opt.correct { border-color: var(--green); background: #f4f9e8; cursor: default; }
|
|
.game-root .quiz-opt.correct .q-icon { border-color: var(--green); background: var(--green); color: white; }
|
|
.game-root .quiz-opt.wrong { border-color: var(--red); background: #fef2f0; }
|
|
.game-root .quiz-opt.wrong .q-icon { border-color: var(--red); background: var(--red); color: white; }
|
|
.game-root .quiz-opt.disabled { opacity: 0.5; cursor: default; pointer-events: none; }
|
|
.game-root .quiz-opt.faded { opacity: 0.4; cursor: default; pointer-events: none; }
|
|
.game-root .quiz-feedback { margin-top: 8px; font-size: 12px; line-height: 1.5; color: #555; padding: 8px 10px; border-radius: 6px; animation: fadeIn 0.2s ease; display: none; }
|
|
.game-root .quiz-feedback.visible { display: block; }
|
|
.game-root .quiz-feedback.wrong-fb { background: #fef2f0; border-left: 3px solid var(--red); }
|
|
.game-root .quiz-feedback.correct-fb { background: #f4f9e8; border-left: 3px solid var(--green); }
|
|
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
|
|
|
/* Lesson cards */
|
|
.game-root .lesson-card { background: #fff8e1; border-left: 3px solid #ffb300; border-radius: 6px; padding: 10px 14px; margin-top: 12px; }
|
|
.game-root .lesson-card h4 { font-size: 12px; color: #e65100; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
|
|
.game-root .lesson-card p { font-size: 13px; line-height: 1.5; color: #555; }
|
|
.game-root .lesson-hidden { display: none; }
|
|
|
|
/* Intro overlay */
|
|
.intro-overlay { position: fixed; inset: 0; background: rgba(0,57,100,0.85); display: flex; z-index: 1001; align-items: center; justify-content: center; }
|
|
.intro-overlay.hidden { display: none; }
|
|
.intro-box { background: white; border-radius: 14px; max-width: 560px; width: 90%; padding: 32px 36px; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
|
|
.intro-box h2 { color: #003964; margin: 0 0 6px; font-size: 22px; }
|
|
.intro-box .intro-sub { color: #888; font-size: 13px; margin-bottom: 18px; }
|
|
.intro-box .intro-role { background: #f0fbfd; border-left: 3px solid #00BBCE; border-radius: 6px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; line-height: 1.55; color: #333; }
|
|
.intro-box .intro-data { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; margin-bottom: 18px; }
|
|
.intro-box .intro-data dt { font-weight: 600; color: #888; text-transform: uppercase; font-size: 11px; letter-spacing: 0.3px; padding-top: 2px; }
|
|
.intro-box .intro-data dd { margin: 0; color: #333; }
|
|
.intro-box .intro-task { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 20px; }
|
|
.intro-box .intro-start { display: block; width: 100%; padding: 12px; border: none; border-radius: 7px; font-size: 15px; font-weight: 600; font-family: 'Source Sans Pro', sans-serif; cursor: pointer; background: #003964; color: white; }
|
|
.intro-box .intro-start:hover { background: #004a7c; }
|
|
|
|
/* Summary overlay */
|
|
.summary-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; z-index: 1000; align-items: center; justify-content: center; }
|
|
.summary-overlay.visible { display: flex; }
|
|
.summary-box { background: white; border-radius: 14px; max-width: 720px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 30px; box-shadow: 0 8px 40px rgba(0,0,0,0.2); animation: slideUp 0.3s ease; }
|
|
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; } }
|
|
|
|
.summary-box h2 { color: var(--primary); margin-bottom: 6px; }
|
|
.summary-score { text-align: center; margin: 16px 0 24px; }
|
|
.summary-score .big { font-size: 42px; font-weight: 700; color: var(--primary); display: block; }
|
|
.summary-score .sub { font-size: 14px; color: #888; }
|
|
.s-card { background: #f8f9fa; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
|
|
.s-card h3 { font-size: 15px; color: var(--primary); margin-bottom: 6px; }
|
|
.s-card p { font-size: 14px; line-height: 1.55; color: #444; margin-bottom: 6px; }
|
|
.s-card p:last-child { margin-bottom: 0; }
|
|
.s-card.connection { background: #fff8e1; border-left: 3px solid #ffc107; }
|
|
.s-card.bridge { background: #e8f5e9; border-left: 3px solid var(--green); }
|
|
.s-card.reframe { background: #e3f2fd; border-left: 3px solid var(--blue); }
|
|
.s-card.discussion { background: #f3f3f3; }
|
|
.s-card.discussion p { margin-bottom: 4px; }
|
|
.s-card .s-metrics { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
|
|
.s-card .s-metric { background: white; border: 1px solid #e0e0e0; border-radius: 6px; padding: 8px 12px; flex: 1; min-width: 100px; text-align: center; }
|
|
.s-card .s-metric .sm-label { font-size: 10px; color: #888; text-transform: uppercase; }
|
|
.s-card .s-metric .sm-val { font-size: 18px; font-weight: 700; color: var(--primary); }
|
|
.s-card .s-metric .sm-delta { font-size: 12px; font-weight: 600; }
|
|
|
|
.summary-actions { text-align: center; margin-top: 20px; }
|
|
.summary-actions button { padding: 10px 28px; border: none; border-radius: 7px; font-size: 14px; font-weight: 600; font-family: 'Source Sans Pro', sans-serif; cursor: pointer; background: var(--primary); color: white; }
|
|
.summary-actions button:hover { background: #004a7c; }
|
|
|
|
.bonus-list { list-style: none; padding: 0; }
|
|
.bonus-list li { font-size: 13px; padding: 2px 0; color: #555; }
|
|
.bonus-list li::before { content: '\2713 '; color: var(--green); font-weight: 700; }
|
|
|
|
/* Responsive */
|
|
@media (max-width: 900px) {
|
|
.game-root .app { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
|
|
.game-root .right-panel { order: -1; }
|
|
.game-root .left-panel { max-height: 40vh; }
|
|
.game-root { --left-w: 100%; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="game-root">
|
|
|
|
<div class="header">
|
|
<h1>BI Detective — розслідування дашборду</h1>
|
|
<div class="header-right">
|
|
<span class="views-tag" id="viewsTag"></span>
|
|
<button class="restart-btn" onclick="restart()">Заново</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="intro-overlay" id="introOverlay">
|
|
<div class="intro-box">
|
|
<h2>BI Detective</h2>
|
|
<div class="intro-sub">Інтерактивне розслідування</div>
|
|
<div class="intro-role">
|
|
Ви — аналітик у штабі бригади. Командир щойно написав вам про дивні листопадові цифри. Ваша задача: пройти вкладки дашборду, відповісти на питання у кожній, і розібратися, що насправді стоїть за показниками — до брифінгу.
|
|
</div>
|
|
<dl class="intro-data">
|
|
<dt>Дані</dt>
|
|
<dd>Синтетичний (імітований) набір операцій бригади — для навчальних цілей</dd>
|
|
<dt>Період</dt>
|
|
<dd>Листопад 2022 – Листопад 2023 (13 місяців)</dd>
|
|
<dt>Масштаб</dt>
|
|
<dd>~8 500 операцій</dd>
|
|
<dt>Тип операцій</dt>
|
|
<dd><strong>Підготовчі</strong> — тренування, логістика · <strong>Бойові</strong> — розвідка, вогневе ураження, оборонні дії</dd>
|
|
</dl>
|
|
<div class="intro-task">
|
|
Йдіть вкладками зліва направо. У кожній — питання. Правильні відповіді відкривають спостереження зліва. Коли назбираєте докази — надішліть аналіз командирові.
|
|
</div>
|
|
<button class="intro-start" onclick="document.getElementById('introOverlay').classList.add('hidden')">Почати</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="app">
|
|
|
|
<!-- LEFT PANEL: VP message + insights + submit -->
|
|
<div class="left-panel">
|
|
<div class="vp-section">
|
|
<div class="vp-msg">
|
|
<div class="vp-avatar">МК</div>
|
|
<div class="vp-content">
|
|
<div class="vp-name">Михайло Коваль</div>
|
|
<div class="vp-title">Начальник штабу бригади</div>
|
|
<div class="vp-text">Ефективність у листопаді — 71%. У жовтні було 62%. Можеш до брифінгу пояснити, що ми такого зробили?</div>
|
|
</div>
|
|
</div>
|
|
<div class="alert-metrics">
|
|
<div class="alert-metric">
|
|
<div class="am-label">Кількість операцій (листопад)</div>
|
|
<div class="am-val" id="amRides"></div>
|
|
<div class="am-delta" id="amRidesDelta"></div>
|
|
</div>
|
|
<div class="alert-metric">
|
|
<div class="am-label">Ефективність (листопад)</div>
|
|
<div class="am-val" id="amDur"></div>
|
|
<div class="am-delta" id="amDurDelta"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="insights-section" id="insightsSection">
|
|
<div class="insights-heading">Спостереження</div>
|
|
<div id="observationCards"></div>
|
|
<div class="insights-heading" style="margin-top: 12px;">Висновки для командира</div>
|
|
<div id="connectionCard"></div>
|
|
<div id="conclusionCards"></div>
|
|
</div>
|
|
|
|
<div class="submit-section">
|
|
<button class="submit-btn" id="submitBtn" disabled onclick="submitAnswer()">Надіслати аналіз командирові</button>
|
|
<div class="submit-hint" id="submitHint">Пройдіть вкладки і відповідайте на питання, щоб зібрати докази</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- RIGHT PANEL: dashboard tabs -->
|
|
<div class="right-panel">
|
|
<div class="tab-bar">
|
|
<button class="tab-btn active" data-tab="overview" onclick="switchTab('overview')">Загальний огляд</button>
|
|
<button class="tab-btn" data-tab="breakdowns" onclick="switchTab('breakdowns')">Розрізи</button>
|
|
<button class="tab-btn" data-tab="riders" onclick="switchTab('riders')">Тип операцій</button>
|
|
<button class="tab-btn" data-tab="duration" onclick="switchTab('duration')">Ефективність</button>
|
|
</div>
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="pane-overview">
|
|
<div class="toggle-row">
|
|
<span class="toggle-label">Деталізація:</span>
|
|
<button class="toggle-btn active" onclick="toggleOverview('monthly')">Місячна</button>
|
|
<button class="toggle-btn" onclick="toggleOverview('daily')">Денна</button>
|
|
</div>
|
|
<div class="chart-card"><h3>Кількість операцій</h3><canvas id="chartOverviewRides"></canvas></div>
|
|
<div class="chart-card"><h3>Ефективність (% успіху)</h3><canvas id="chartOverviewDuration"></canvas></div>
|
|
<div id="quiz-overview-spot"></div>
|
|
</div>
|
|
|
|
<div class="tab-pane" id="pane-breakdowns">
|
|
<div class="sub-tab-bar">
|
|
<button class="sub-tab-btn active" data-subtab="dayofweek" onclick="switchSubTab('dayofweek')">День тижня</button>
|
|
<button class="sub-tab-btn" data-subtab="hourly" onclick="switchSubTab('hourly')">Час доби</button>
|
|
<button class="sub-tab-btn" data-subtab="biketypes" onclick="switchSubTab('biketypes')">Категорія</button>
|
|
<button class="sub-tab-btn" data-subtab="duration_buckets" onclick="switchSubTab('duration_buckets')">Масштаб</button>
|
|
<button class="sub-tab-btn" data-subtab="stations" onclick="switchSubTab('stations')">Підрозділ</button>
|
|
</div>
|
|
<div id="breakdowns-content"></div>
|
|
</div>
|
|
|
|
<div class="tab-pane" id="pane-riders">
|
|
<div class="toggle-row">
|
|
<span class="toggle-label">Деталізація:</span>
|
|
<button class="toggle-btn active" onclick="toggleRiders('monthly')">Місячна</button>
|
|
<button class="toggle-btn" onclick="toggleRiders('daily')">Денна</button>
|
|
</div>
|
|
<div class="chart-card"><h3>Операції за типом (підготовчі / бойові)</h3><canvas id="chartRiderRides"></canvas></div>
|
|
<div class="chart-card"><h3>Частка підготовчих у загальній кількості</h3><canvas id="chartRiderMix"></canvas></div>
|
|
<div id="quiz-riders-spot"></div>
|
|
</div>
|
|
|
|
<div class="tab-pane" id="pane-duration">
|
|
<div class="chart-card"><h3>Ефективність за типом (жовтень → листопад)</h3><canvas id="chartDurChange"></canvas></div>
|
|
<div class="chart-card"><h3>Ефективність за типом — динаміка</h3><canvas id="chartDurTime"></canvas></div>
|
|
<div id="quiz-duration-spot"></div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="summary-overlay" id="summaryOverlay">
|
|
<div class="summary-box" id="summaryBox"></div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js@4"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@2"></script>
|
|
<script src="game_data.js"></script>
|
|
<script src="quizzes.js"></script>
|
|
<script src="game.js"></script>
|
|
|
|
</body>
|
|
</html>
|