Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://vtange.github.io/TreeOfSaviorMapdex/
Tree of Savior Mapdex http://vtange.github.io/TreeOfSaviorMapdex/
https://vtange.github.io/TreeOfSaviorMapdex/
angular jquery json name-filter
Last synced: 3 months ago
JSON representation
Tree of Savior Mapdex http://vtange.github.io/TreeOfSaviorMapdex/
- Host: GitHub
- URL: https://vtange.github.io/TreeOfSaviorMapdex/
- Owner: vtange
- Archived: true
- Created: 2015-08-11T23:27:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-22T06:54:05.000Z (over 8 years ago)
- Last Synced: 2024-07-30T07:37:47.056Z (4 months ago)
- Topics: angular, jquery, json, name-filter
- Language: HTML
- Homepage: http://vtange.github.io/TreeOfSaviorMapdex/
- Size: 12.5 MB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-tos - Tree Of Savior Monster Map (vtange) - Open source world map with monsters, NPCs, and subareas listed per area. (Tools / WebApps)
README
![alt tag](http://res.cloudinary.com/dmj8qtant/image/upload/c_limit,w_600/v1458021789/txoesa3ldl3ggvlqjmpi.jpg)
# Tree Of Savior Monster Map
A map with monster data inputed in. Made to help orient the Tree of Savior Translation group on What monsters are found where.This was my first app. Very crude and disorganized code. 'Monstall' isn't even proper JSON. A lot of repeat angularized HTML.
## Tech
AngularJS + filtering a list via multiple dropdown options.
JQuery mouseover map popup### Niceties
CRUD functions: editing monsters. Search w/ 'search results' popup: ng-filter an object via multiple parameters. Monsters based off map-zone AND floor.
### Details
#### CSS:
1. Toggling buttons and tabs -> stay lit up without outlines, etc.
2. "X" for closing pseudoelement (first use)
3. Using a fullscreen clickblocker that darkens rest of site when user is focused on editing a monster
4. Vertical Text#### JS:
1. Loading JSON Data via HTML
2. Tabs, floors, selected zone control.
3. Use of Angular Filters to filter Ng-Repeat
4. Use of Ng-Switch for picture/icon handling
5. Used MonsterDB.monstall.indexOf(monster) instead of $index to track monsters due to issues with non-sequential lists.
6. Vertical Delete Button###### EDIT MONSTER MODE
7. Use of a transparent, Full-screen DIV layer to block clicks outside edited object
8. Use of ```angular.copy($scope.MonsterDB.monstall[index], $scope.editedItem);```
- copy original to form-controlled 'editedItem' to edit.
- reverse to save -> ```angular.copy($scope.editedItem, $scope.MonsterDB.monstall[index]);```###### SEARCH MONSTERS MODE
9. Share access of data between more than one Controller via Services.
10. Angular Filter Array of Objects by 'searched for' object. Basic Name search and attribute searching.###### HINDSIGHT:
1. Should've used an Array of JSON for Map Data, ng-repeat prefers Arrays. With ng-style, could use JSON for positioning
2. More ng-repeat to avoid repeated HTML elements.
3. Split Controllers, or just do it in one controller and not have to use a service.