Commit Graph

1407 Commits

Author SHA1 Message Date
Guangcong Luo
37a88bf162 Aesthetically pleasing HP bar colors 2013-03-29 09:44:55 -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
64e3c15029 Use separate Analytics property for alt server traffic 2013-03-28 17:50:50 -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
Guangcong Luo
8c873deb0a Update client items.js 2013-03-25 13:39:53 -07: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
6939054eb2 Fix logic error in IP identification 2013-03-22 18:52:07 -06:00
Cathy J. Fitzpatrick
ddf9ed4cea Implement opt-in identification of servers by IP 2013-03-22 18:45:21 -06: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
Guangcong Luo
33dffbed89 Only disallow hotlinking for main server 2013-03-22 22:52:11 +03:00
Cathy J. Fitzpatrick
51a6ab102f Reinstate accidentally removed line from .htaccess 2013-03-22 04:47:44 -07:00
Cathy J. Fitzpatrick
f5eef09ec7 Fix typo in crossdomain.php 2013-03-22 05:13:11 -06: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
11739c77a7 More robust removal of default port 2013-03-22 12:19:35 +03:00
Cathy J. Fitzpatrick
d7f88100af Fix typo in last commit 2013-03-22 03:10:57 -06:00
Cathy J. Fitzpatrick
55015bc10c Remove default port from *.psim.us URIs 2013-03-22 03:10:16 -06:00
Cathy J. Fitzpatrick
0d1f89aef0 Fix for URIs not ending in / 2013-03-22 03:06:50 -06:00
Cathy J. Fitzpatrick
9dedae601a Analytics crossdomain tracking 2013-03-22 02:44:11 -06:00
Cathy J. Fitzpatrick
cd17c58c27 Better redirection of naked psim.us domain 2013-03-22 11:22:28 +03:00
Cathy J. Fitzpatrick
0862e78b95 Fix Analytics code for psim.us 2013-03-22 02:13:37 -06:00
Cathy J. Fitzpatrick
2a64b73a39 Rewrite third-party servers to *.psim.us URI scheme 2013-03-22 01:00:05 -07:00
Cathy J. Fitzpatrick
e9f778b578 Implement host-port.psim.us syntax
For example, you can connect to localhost port 8000 by visiting
http://localhost-8000.psim.us
2013-03-22 01:46:03 -06:00
Cathy J. Fitzpatrick
0579f6d409 Fix a bug in crossdomain resource sharing 2013-03-22 01:34:14 -06:00
Cathy J. Fitzpatrick
17bbe9a616 Fix /~~server/lobby URI 2013-03-21 23:52:29 -07:00
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