Add comparator of characters
The user can now compare the stats of multiple characters with two graph (column graph and polar spider). Small refactor of the displayPolarSpider function to work in all pages.
This commit is contained in:
@ -39,7 +39,21 @@ routes = [
|
||||
},
|
||||
{
|
||||
path: '/comparator/',
|
||||
templateUrl: './pages/comparator.html'
|
||||
templateUrl: './pages/comparator.html',
|
||||
on: {
|
||||
pageInit: (e, page) => {
|
||||
$$("#btn-graph-column-chart").on("click", (event) => {
|
||||
switchGraph(event);
|
||||
});
|
||||
$$("#btn-graph-spider-web").on("click", (event) => {
|
||||
switchGraph(event);
|
||||
});
|
||||
},
|
||||
// We must use the pageAfterIn event in order to open the smartselect directly
|
||||
pageAfterIn: (e, page) => {
|
||||
configureSmartSelectOfCharacters();
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/about/',
|
||||
|
Reference in New Issue
Block a user