This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addPointer(x, y) { | |
$('body').append('<div style="position:absolute; left: ' + | |
x + | |
'px; top: ' + | |
y + | |
'px; border-left: 3px solid red; border-top: 3px solid red; box-sizing: border-box; width: 10px; height: 10px; z-index:1000000000;"></div>'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timeIntervals = [ | |
{start: 0, caption: 'Just now.'}, | |
{start: 60 * 1000, caption: 'A minute ago.'}, | |
{start: 2 * 60 * 1000, caption: '@1 minutes ago.'}, | |
{start: 60 * 60 * 1000, caption: 'An hour ago.'}, | |
{start: 2 * 60 * 60 * 1000, caption: '@2 hours ago.'}, | |
{start: 24 * 60 * 60 * 1000, caption: 'Yesterday.'}, | |
{start: 2 * 24 * 60 * 60 * 1000, caption: '@3 days ago.'}, | |
{start: 7 * 24 * 60 * 60 * 1000, caption: 'A week ago.'}, | |
{start: 14 * 24 * 60 * 60 * 1000, caption: '@4 weeks ago.'}, |