Diff -- /var/www/vhosts/3dshawn.com/abforge.3dshawn.com/TEMPLATES/abforge_realtime.html

O Operator
Diff

/var/www/vhosts/3dshawn.com/abforge.3dshawn.com/TEMPLATES/abforge_realtime.html

added on local at 2026-07-01 16:01:55

Added
+29
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to a6db9d738b3c
Restore this content →
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
1<div class="page-header">
2 <div><h1>Real-time</h1><p>$site_name &middot; <span style="color: var(--good)">&#9679; $live live visitors right now</span></p></div>
3 <button class="btn btn-ghost btn-sm" onclick="location.reload()">Refresh</button>
4</div>
5[if:$has_sessions]
6<div class="card">
7 <div class="card-header"><h3 class="card-title">Active sessions</h3></div>
8 <table class="table">
9 <thead><tr><th>Visitor</th><th>Location</th><th>Device</th><th>Source</th><th>Current page</th><th class="right">PV</th><th class="right">Idle</th></tr></thead>
10 <tbody>
11 [loop:@sessions]
12 <tr>
13 <td>#$visitor_id</td>
14 <td>$city, $country</td>
15 <td>$device_type / $browser_name / $os_name</td>
16 <td>$referrer_host</td>
17 <td style="max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">$current_page</td>
18 <td class="num">$pageviews</td>
19 <td class="num">$idle_sec s</td>
20 </tr>
21 [/loop]
22 </tbody>
23 </table>
24</div>
25[/if]
26[if:!$has_sessions]
27<div class="card"><p class="muted">No one's on the site right now. Hit refresh in a minute.</p></div>
28[/if]
29<script>setTimeout(function(){location.reload()}, 15000);</script>