1.0.2 • Published 5 years ago
new_day_event v1.0.2
New day event
Very simple library that can help you to now if new day is started
Npm installing: \
npm i new_day_event
\ import from node_modules \import 'new_day_event'
Installing without npm: \
git clone https://github.com/Volizik/new_day_event.git
\ and inside your project add this line before your own script tag \<script src="path/to/new_day_event/directory"></script>
Usage:
document.addEventListener('new-day', function() {
alert('New day is started!')
});