Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dtedesco1/pebblecounter
pebbleCounter
https://github.com/dtedesco1/pebblecounter
Last synced: 11 days ago
JSON representation
pebbleCounter
- Host: GitHub
- URL: https://github.com/dtedesco1/pebblecounter
- Owner: dtedesco1
- Created: 2015-01-06T05:44:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-06T05:49:16.000Z (about 10 years ago)
- Last Synced: 2023-03-22T13:28:14.775Z (almost 2 years ago)
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 });