Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dtedesco1/pebblecounter

pebbleCounter
https://github.com/dtedesco1/pebblecounter

Last synced: 11 days ago
JSON representation

pebbleCounter

Awesome Lists containing this project

README

        

var count = parseInt(localStorage.getItem('count')) || 0;

simply.on('singleClick', function(e) {
if (e.button === 'up') {
simply.subtitle(++count);
} else if (e.button === 'down') {
simply.subtitle(--count);
}
localStorage.setItem('count', count);
});

simply.text({ title: 'Counter', subtitle: count });