Changeset e9cfa3c in Klonkt
- Timestamp:
- 06/19/2026 07:26:39 AM (3 months ago)
- Branches:
- main
- Children:
- 9b3e12c
- Parents:
- 6b8afb1
- File:
-
- 1 edited
-
src/views/pages/admin-stats.ejs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/admin-stats.ejs
r6b8afb1 re9cfa3c 35 35 </div> 36 36 <div class="stats-chart"> 37 <% s.series.forEach(function(d){ 37 <% var _step = s.days <= 14 ? 1 : (s.days <= 31 ? 4 : 10); 38 s.series.forEach(function(d, i){ 38 39 var pvPct = Math.round(d.pageviews / _max * 100); 39 40 var visPct = Math.round(d.visitors / _max * 100); … … 44 45 <span class="sc-vis" style="height: <%= visPct %>%"></span> 45 46 </div> 46 <span class="sc-day"><%= d.day.slice(8)%></span>47 <span class="sc-day"><%= (i % _step === 0) ? d.day.slice(8) : '' %></span> 47 48 </div> 48 49 <% }); %> … … 116 117 .lg-vis::before { background: var(--accent); } 117 118 .lg-pv::before { background: color-mix(in srgb, var(--accent) 28%, transparent); } 118 .stats-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; margin-top: 1rem; } 119 .sc-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; } 120 .sc-bar { position: relative; width: 70%; max-width: 26px; height: 140px; display: flex; align-items: flex-end; } 119 .stats-chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; margin-top: 1rem; overflow: hidden; } 120 .sc-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; } 121 .sc-bar { position: relative; width: 70%; max-width: 26px; min-width: 2px; height: 140px; display: flex; align-items: flex-end; } 122 .sc-day { white-space: nowrap; } 121 123 .sc-pv, .sc-vis { position: absolute; bottom: 0; left: 0; width: 100%; border-radius: 3px 3px 0 0; min-height: 2px; } 122 124 .sc-pv { background: color-mix(in srgb, var(--accent) 28%, transparent); }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)