Commit Graph

14 Commits

Author SHA1 Message Date
Guangcong Luo
9b7e0f07ab Namespace StatNames/StatIDs 2013-04-17 22:22:39 -07:00
Cathy J. Fitzpatrick
e17aa898f5 Eliminate various global variables 2013-04-15 01:50:15 -06:00
Cathy J. Fitzpatrick
d82b5e6b7b Rename sanitisation and escaping functions
- `window.sanitize` is now `Tools.escapeHTML`
- `window.unsanitize` is now `Tools.unescapeHTML`
- `window.jsEscape` is now `Tools.escapeQuotes`
- `window.htmlSanitize' is now `Tools.sanitizeHTML`
- `battle.escape` has been eliminated and replaced by calls
   to `Tools.escapeHTML`
2013-04-14 21:49:51 -06:00
Cathy J. Fitzpatrick
39d7e1542c Use absolute resource path in teambuilder.js 2013-04-13 21:26:38 -06:00
Guangcong Luo
75cf7444ee Update client for new pokedex.js syntax
Specifically, formeLetter and baseSpecies are now camelcased.
2013-03-30 22:18:27 -05:00
Cathy J. Fitzpatrick
15e797f0d5 Sharing of resources between psim.us and pokemonshowdown.com
This commit allows the new psim.us domain to use the cookies and
`localStorage` of play.pokemonshowdown.com. Teams and prefs are
initially loaded from the play.pokemonshowdown.com `localStorage` and
changes to teams and prefs are written back to the
play.pokemonshowdown.com `localStorage`.

This commit also implements a few other things for the new psim.us
domain (implemented by Zarel):

- URIs of the form serverid.psim.us load the server `serverid`
- the naked domain now loads the lobby
2013-03-22 00:19:23 -06:00
Guangcong Luo
8057edc245 EV recommender fix:
Make sure support Smeargle gets +Spe nature
2013-03-05 08:58:55 -08:00
Bill Meltsner
25dc501bbc Smeargle cannot Sketch Chatter or Struggle. 2013-02-20 22:53:55 -08:00
Guangcong Luo
a4da67a09f Spread recommender now understands Counter/Mirror Coat 2013-02-12 23:50:15 -08:00
Cathy J. Fitzpatrick
46f0368215 Add rows attribute to teambuilder <textarea>s
Firefox renders the height of a <textarea> based on the `rows`
attribute, which was not previously specified, causing the <textarea>
in the teambuilder to be very short. This commit specifies a
(somewhat arbitrary) `rows` attribute so that the <textarea> has
some more height.
2013-02-02 00:04:58 -07:00
Guangcong Luo
fa65b1b2d0 Fix crash in teambuilder export
(crash occurs with a set with no moves)
2013-01-28 06:06:08 -08:00
Cathy J. Fitzpatrick
f0583b1cfe Revise warning message to mention localStorage 2013-01-28 06:56:56 -07:00
Cathy J. Fitzpatrick
e4917fa448 Add warning about clearing cookies
Teams are stored in localStorage. Most browsers appear to clear
localStorage as part of clearing cookies. Very often, users
inadvertently delete their teams when they clear their cookies.
This message will not prevent all instances of this, but it
will at least decrease the chance of it happening.
2013-01-28 06:51:14 -07:00
Guangcong Luo
b16c1527da Populate with current state of client 2013-01-23 16:39:14 -08:00