1.0.0 • Published 11 years ago
gw2reset v1.0.0
gw2reset.js is a small library for calculating and dealing with reset times in Guild Wars 2.
The API is it is divided up into 4 namespaces:
gw2reset.dailyprovides methods for dealing with the daily reset.gw2reset.guildprovides methods for dealing with the weekly Guild reward reset.gw2reset.wvw.naprovides methods for dealing with the North American WvW reset.gw2reset.wvw.euprovides methods for dealing with the European WvW reset.
Each of these namespaces provides 4 methods:
.previousreturns aDateobject representing the previous time this item reset..nextreturns aDateobject representing the next time this item will reset..onreceives an event handler that will fire every time this reset happens.offif passed a reference to an event handler, that handler will be removed. If no parameters are passed, all handlers will be removed.
Installation
You can install gw2reset by one of these methods:
- Bower:
bower install gw2reset - npm:
npm install gw2reset - Clone the Git repo.
- Or just grab a copy of the .min.js file from the dist/ dir.
1.0.0
11 years ago