Commit Graph

206 Commits

Author SHA1 Message Date
Guangcong Luo
c56a30d419 Add the other two afd jokes 2013-04-01 20:41:23 -07:00
Guangcong Luo
77b6a00399 Support afd sprites
This should theoretically support afd sprites by adding -afd after
a server ID.
2013-04-01 20:37:59 -07:00
Guangcong Luo
bcb357be56 April Fool's 2013 ends 2013-04-01 19:08:33 -07:00
Cathy J. Fitzpatrick
770c3e7094 Correct escaping of URIs in messageSanitize
For example, this fixes things like `google [&]` which would
previously produce the wrong Google search query.
2013-04-01 17:27:32 -06:00
Guangcong Luo
7e7afd3b96 Change up the link separators
The links in the top right are now separated by whitespace.

The previous brackets were visually pretty noisy, and we no longer
have a need to draw attention to them.
2013-04-01 00:23:50 -07:00
Guangcong Luo
601cd7f916 April Fool's Day changes 2013-03-31 23:13:54 -07:00
Cathy J. Fitzpatrick
1f174a61df Fix improper escaping of certain characters in external URIs 2013-03-31 00:49:10 -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
6e83774cc1 Fix issue when the server sends fnt status with > 0 HP 2013-03-29 20:18:07 -06:00
Cathy J. Fitzpatrick
6d77efaf7f Better support for old replays with nearest-100th health
These old replays will now display the actual percentages in the log,
rather than the nearest 1/48th percentage.
2013-03-29 17:28:32 -06:00
Cathy J. Fitzpatrick
c0e251d1aa More robust implementation of healthParse
This allows the client to display damage with whatever precision the
server sends, rather than always forced to 48ths.
2013-03-29 17:17:43 -06:00
Cathy J. Fitzpatrick
d93004b2e2 Fix change that broke resources in testclient.html 2013-03-29 17:10:46 -06:00
Cathy J. Fitzpatrick
107c7efe28 Fix change that broke testclient.html 2013-03-29 17:05:35 -06:00
Guangcong Luo
56c439e5cf Use protocol-relative URLs for resources 2013-03-29 10:29:29 -07:00
Guangcong Luo
b70329ae52 Fix HP bar animation
Previously, the HP bar would change color while animating, which
actually looks pretty cool but unfortunately was sort of buggy, and
also has a noticeable performance impact because jQuery animation
isn't exactly fast.

This changes the HP bar to change color after animating instead,
which still looks good but is a lot simpler.
2013-03-29 10:17:14 -07:00
Cathy J. Fitzpatrick
be2a3b7166 Bounds checking in HP parse 2013-03-29 04:36:02 -06:00
Cathy J. Fitzpatrick
92867f22b9 Implement HP bar colours 2013-03-29 02:53:52 -06:00
Cathy J. Fitzpatrick
54b08f5beb Fix bug in new-style damage reporting 2013-03-28 23:44:46 -06:00
Cathy J. Fitzpatrick
13b17797b0 Add support for forcing green HP bar 2013-03-28 16:28:46 -06:00
Cathy J. Fitzpatrick
46efca91b4 Refactor HP reporting
These are the corresponding client changes for the server changes at
Zarel/Pokemon-Showdown@a0882444a5
2013-03-28 16:03:16 -06:00
Cathy J. Fitzpatrick
88e60d5cc0 Fix non-whitelisted links 2013-03-25 23:11:37 -06:00
Cathy J. Fitzpatrick
e32e6d2c03 Further fix to external link tracking 2013-03-25 20:57:17 -06:00
Cathy J. Fitzpatrick
ed043162ca Fix Analytics external link tracking 2013-03-25 20:54:15 -06:00
Cathy J. Fitzpatrick
41f2fbf008 More robust interstice implementation 2013-03-25 20:48:49 -06:00
Cathy J. Fitzpatrick
6f1eeadc7b Refactor and document messageSanitize 2013-03-25 19:33:49 -06:00
Cathy J. Fitzpatrick
83dcdb638b Add support for viewing multiple IPs for a single user 2013-03-24 00:57:19 -06:00
Marty-D
65d999c10c Jelandee gets a new colour. 2013-03-23 23:22:41 -04:00
Cathy J. Fitzpatrick
ca3f3cd9d0 Fix teams sometimes not displaying properly on *.psim.us 2013-03-24 03:33:31 +03:00
Marty-D
4bc7ad517c Queen of Randoms gets a new colour. 2013-03-23 17:41:37 -04:00
Cathy J. Fitzpatrick
9fffde2755 Load trainer sprites from play.pokemonshowdown.com 2013-03-23 02:22:04 -06:00
Cathy J. Fitzpatrick
e8ce936454 Fix crossdomain handling for ancient server versions 2013-03-22 23:34:15 -06:00
Guangcong Luo
a412fe8dc8 Our new short URL is psim.us
(The old link parser was designed for psim.tk)
2013-03-23 05:12:35 +03:00
Cathy J. Fitzpatrick
d2ce3a6f7a Fallback for browsers that don't support window.postMessage
For example, the stock Android browser doesn't support
`window.postMessage`, but is otherwise able to run Pokemon Showdown.
2013-03-22 23:05:52 +03:00
Cathy J. Fitzpatrick
d672ae57b5 Correctly synchronise sid and username across domains 2013-03-22 05:11:11 -06:00
Cathy J. Fitzpatrick
03dd6a2586 Fix bug involving empty sid data 2013-03-22 04:44:59 -06:00
Cathy J. Fitzpatrick
d99ede9def Always load resources from play.pokemonshowdown.com
With the advent of the *.psim.us URI scheme, one problem was that
images and other resources were not cached across different servers
because each server had a different URI for the same resource. This
commit resolves the problem by loading all resources from
play.pokemonshowdown.com.
2013-03-22 04:07:30 -06:00
Cathy J. Fitzpatrick
2ff0176b0e Add link to main website at top of client UI 2013-03-22 03:45:00 -06:00
Cathy J. Fitzpatrick
0579f6d409 Fix a bug in crossdomain resource sharing 2013-03-22 01:34:14 -06: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
Cathy J. Fitzpatrick
1a2e5a13fa Fix potential race condition in initialising the client 2013-03-21 06:00:47 -06:00
Cathy J. Fitzpatrick
f8ad3b0700 Fix another potential exception 2013-03-21 05:52:56 -06:00
Cathy J. Fitzpatrick
d8bce4e577 Fix potential exception in sim.js 2013-03-21 05:50:08 -06:00
Cathy J. Fitzpatrick
e5b32a3a27 Track external links 2013-03-19 18:33:42 -06:00
Cathy J. Fitzpatrick
a70305d704 jdarden gets a new colour 2013-03-09 23:54:10 -07:00
Cathy J. Fitzpatrick
a00b7c1b4a Use Array.prototype.push 2013-03-07 13:08:29 -07:00
Cathy J. Fitzpatrick
6904aa9c6c Move link whitelist to a config file 2013-03-07 12:58:33 -07:00
Cathy J. Fitzpatrick
5dceb72a5d Allow subdomains in the safe link whitelist 2013-03-07 12:16:09 -07:00
Marty-D
45c929ea24 Tab the last commit properly. 2013-03-05 15:12:13 -05:00
Marty-D
fc7968a1f0 Add the Stockpile end message. 2013-03-05 15:09:34 -05:00
Guangcong Luo
2b5a817dec Gravity interrupts Fly's animation 2013-03-05 11:21:43 -08:00