aturfah / cmplxsys530-final

Final Project for Complex Systems 530 WN18
MIT License
2 stars 2 forks source link

Get interface to use jQuery #97

Closed aturfah closed 6 years ago

aturfah commented 6 years ago

Right now it just uses raw JS.

In order to make my life less hellish it needs to be rewritten/refactored with jQuery. The sooner the better.

aturfah commented 6 years ago

Need to build list of things that need refactoring.

aturfah commented 6 years ago

Function submit_form:

Function update_opp_choices:

Function update_team:

Function submit_move:

Function update_log:

Function create_team_list:

Function update_gamestate:

Function update_battle_finished:

Function make_pkmn_data_visible:

aturfah commented 6 years ago

Do we even need this? The code isn't that bad and I can manipulate classes with regular JS

https://www.w3schools.com/howto/howto_js_add_class.asp https://www.w3schools.com/howto/howto_js_remove_class.asp

aturfah commented 6 years ago

jQuery would make API calls easier, since it has the built-in .get() method.

aturfah commented 6 years ago

Disregarding comment above (with function refactoring); jQuery will be used to issue GET and POST requests. I will use native JS's add/remove class methods included in links 2 comments before.

aturfah commented 6 years ago

Addressed in #103