From d31924ef2cb534377b73a3e0f9a6612678474afc Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 12 Dec 2014 16:55:20 +0200 Subject: [PATCH] Add user tracking --- css/custom.css | 8 +++++ js/80-sidebar.js | 10 ++++++ js/90-tracker.js | 94 ++++++++++++++++++++++++++++++++++++++++++++++++ tmpl/skel.en | 21 +++++++++++ 4 files changed, 133 insertions(+) create mode 100644 js/80-sidebar.js create mode 100644 js/90-tracker.js diff --git a/css/custom.css b/css/custom.css index 429955b..4239ab8 100644 --- a/css/custom.css +++ b/css/custom.css @@ -78,4 +78,12 @@ ul.inline li:after { ul.inline li:last-child:after { content: ""; +} + +.tracker-mark.tick { + color: green; +} + +.tracker-mark.x{ + color: red; } \ No newline at end of file diff --git a/js/80-sidebar.js b/js/80-sidebar.js new file mode 100644 index 0000000..cf729ec --- /dev/null +++ b/js/80-sidebar.js @@ -0,0 +1,10 @@ +(function(){ + 'use strict'; + + $( document ).ready(function() { + if(!$('#sidebar').size()) { + var content = $('#content'); + content.wrapInner('
').append('