Commit Graph

3416 Commits

Author SHA1 Message Date
Cathy J. Fitzpatrick
7a2af3971b Fix /~~server/ URIs 2013-03-21 23:50:25 -07: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
dc357d6f02 Allow empty serverid in action.php 2013-03-16 20:06:20 -06:00
Cathy J. Fitzpatrick
6d3b9d3af6 Fix to CORS support 2013-03-16 19:55:12 -06:00
Cathy J. Fitzpatrick
78ab39094c CORS support in action.php 2013-03-16 18:50:53 -06:00
Marty-D
cb1a1b608c Update data files. 2013-03-13 12:58:04 -04: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
Cathy J. Fitzpatrick
f91a508643 Better formatting of stats SQL query 2013-03-06 11:33:00 -07:00
Cathy J. Fitzpatrick
d135928404 Keep historical userstats in a separate table
This avoids making an expensive query on the site index.
2013-03-06 11:30:32 -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
Guangcong Luo
136ff4cb71 Smack Down animation 2013-03-05 11:15:56 -08:00
Guangcong Luo
8057edc245 EV recommender fix:
Make sure support Smeargle gets +Spe nature
2013-03-05 08:58:55 -08:00
Cathy J. Fitzpatrick
eaac40dea7 Move custom colour for 'hexasexual' to 'Solace' 2013-03-04 19:31:41 -07:00
Marty-D
ba70388bdc Move Deoxys-D to Uber in the teambuilder.
- Also update the rest of formats-data.
2013-03-04 14:33:02 -05:00
Cathy J. Fitzpatrick
2e2c8fe626 Fix a typo in the link whitelist 2013-03-02 02:54:06 -07:00
Cathy J. Fitzpatrick
e031ade17d Implement interstitial page for untrusted links 2013-03-02 02:35:24 -07:00
Cathy J. Fitzpatrick
a2c7a8850f Changes to alt port functionality
- don't store alt port preference in `localStorage` anymore
- don't show information about what port the client is connecting to,
  because this information isn't useful to users
2013-02-28 19:27:15 -07:00
Cathy J. Fitzpatrick
8342068a5c Fix an issue resulting from the ladder move 2013-02-28 04:05:43 -07:00
Cathy J. Fitzpatrick
8be53b902e Changes for ladder database move 2013-02-28 00:04:32 -07:00
Guangcong Luo
afd7a89c64 All HP percentages round the same way now 2013-02-26 19:34:15 -08:00
Guangcong Luo
b92a21e564 Show HP for active pokemon on mouseover 2013-02-26 10:37:19 -08:00
Cathy J. Fitzpatrick
e97f68d51f Correct percent display 2013-02-24 18:48:19 -07:00
Cathy J. Fitzpatrick
8a4324d141 More changes to HP display 2013-02-24 18:44:11 -07:00
Cathy J. Fitzpatrick
675c4081da Changes to HP display 2013-02-24 18:41:08 -07:00
Cathy J. Fitzpatrick
3b3f8112be More changes to HP display
- show best available information when hovering over pokeballs
- show an approximate percent in the log and when hovering
2013-02-24 17:04:52 -07:00
Cathy J. Fitzpatrick
d74b81b0d2 Changes for pixel health display
- show number of pixels of HP beside HP bars
- show damage as a number of pixels rather than a percent
2013-02-24 16:46:29 -07:00
Cathy J. Fitzpatrick
57c00c2164 hexasexual (Solace) gets a new colour 2013-02-23 16:46:26 -07:00
Cathy J. Fitzpatrick
e4165eaf42 Aurora gets a new colour 2013-02-23 02:58:03 -07:00
Cathy J. Fitzpatrick
8b5199cdd1 Fix typo 2013-02-23 02:28:00 -07:00
Cathy J. Fitzpatrick
ba75dce604 Implement updateuserstats action 2013-02-23 02:25:34 -07:00
Cathy J. Fitzpatrick
36836fc5b2 Fix the debouncing logic 2013-02-22 15:33:34 -07:00
Cathy J. Fitzpatrick
7fdc3438bb Further decrease frequency of debounced updates 2013-02-22 15:26:52 -07:00
Cathy J. Fitzpatrick
d15f08c1a8 Tab complete: fix alphabetical sorting 2013-02-22 00:38:28 -07:00
Cathy J. Fitzpatrick
163c3f679b Remove some unused code 2013-02-21 22:20:16 -07:00
Cathy J. Fitzpatrick
036acb2505 Store sound preference in prefs instead of special cookie 2013-02-21 21:58:06 -07:00
Cathy J. Fitzpatrick
fff9d155fd Add another missing swf file 2013-02-21 21:31:47 -07:00
Cathy J. Fitzpatrick
b5fd671927 Changes to sound support 2013-02-21 21:27:10 -07:00
Cathy J. Fitzpatrick
bc3ea99616 Trivial formatting changes to index.php 2013-02-21 19:53:11 -07:00
Cathy J. Fitzpatrick
23f1b56b67 Add support for server alternative ports
If connecting to the server's main port fails, the client will
automatically attempt to connect on the alternative port. If connecting
on the alternative port is successful, this is recorded in localStorage
so that next time, the alternative port is used first.

This is mainly intended to be used by the main server, which has a
primary port of 8000 and a relatively little known alternative port
of 80.
2013-02-21 19:33:56 -07:00
Cathy J. Fitzpatrick
adcb180502 ginganinja gets a new colour 2013-02-21 01:47:43 -07:00
Bill Meltsner
25dc501bbc Smeargle cannot Sketch Chatter or Struggle. 2013-02-20 22:53:55 -08:00