If first time on site

add value to the console log if first time on the site.

by aaronk85

JavaScript

var c = parseInt(localStorage['runz']||'0', 10); // read, with 0 as default value
c++; // increment
localStorage['runz'] = c;
console.log(c);
if (c == 1) {
console.log('back');
}