1
0
mirror of https://github.com/kirsle/kirsle.net synced 2024-12-22 15:09:29 +00:00

Update front-end for visitor tracking

This commit is contained in:
Noah 2014-12-02 15:47:11 -08:00
parent 7a1e56b140
commit 201797252e
2 changed files with 32 additions and 0 deletions

View File

@ -180,6 +180,18 @@
</form> </form>
</div> </div>
<div class="k-section">Visitors</div>
<ul>
<li>&#0164; <strong>Unique Visits:</strong><br>
Today: {{ tracking["unique_today"] }}<br>
Total: {{ tracking["unique_total"] }}</li>
<li>&#0164; <strong>Total Hits:</strong><br>
Today: {{ tracking["hits_today"] }}<br>
Total: {{ tracking["hits_total"] }}</li>
<li>&#0164; <a href="{{ url_for('tracking.visitors') }}">Visitor Details</a></li>
<li>&#0164; <a href="{{ url_for('tracking.referrers') }}">Referring URLs</a></li>
</ul>
<div class="center"> <div class="center">
<a href="https://www.python.org/" target="_blank"> <a href="https://www.python.org/" target="_blank">
<img src="/static/images/python.png" width="80" height="15" alt="Python powered"> <img src="/static/images/python.png" width="80" height="15" alt="Python powered">

View File

@ -392,6 +392,26 @@ ul.blog-categories li:last-child:after {
padding: 5px padding: 5px
} }
/********************
* Visitor Tracking *
********************/
.visitor-graph {
height: 16px;
width: 100%;
border: 1px outset;
}
.visitor-graph.unique {
background-color: #0099FF;
background-image: url("/static/images/blue-clearlooks.png");
border-color: #0099FF;
}
.visitor-graph.hits {
background-color: #FF99FF;
background-image: url("/static/images/pink-clearlooks.png");
border-color: #FF99FF;
}
/******************************************************************************* /*******************************************************************************
* Supernova Website Design Classes - Copyright 2009 Casey Kirsle - Kirsle.com * * Supernova Website Design Classes - Copyright 2009 Casey Kirsle - Kirsle.com *
******************************************************************************/ ******************************************************************************/