Ikariam Alliance Sorter
Ikariam Alliance Sorter
Description
Adds links in the Embassy and Diplomacy Advisor to sorts the Alliance Members by last active date, name, rank points and number of towns.
Changes the light bulb showing whether a player is on/offline to (i) if the player has not logged in during the last seven days.
Technical Stuff:
- No additional HTTP requests are made;
- Inner HTML of the table rows is parsed to extract data from each cell per alliance member and inserted into an array;
- The online/offline setting of the class attribute is removed when a player has not logged in during the last 7 days and (i) is inserted into the cell inner HTML in it's place (if the class attribute is not modified then the image will appear behind the text making it unreadable);
- The table header is modified to insert links to sort the columns in ascending/descending order; and
- The array of data and methods to re-order the table are appended to the end of the web page (client side) and called when the user presses one of the re-ordering buttons.
Screen Shot
Change Log
Version 1.1.1
- Feature: Option to switch how users display activity
Version 1.1.0
- Feature: Updated graphics
- Bugfix: Improved UI creation
- Bugfix: Improved event handling
Version 1.0.0
[b]Initial Release[/b]