Commit Graph

3416 Commits

Author SHA1 Message Date
Cathy J. Fitzpatrick
b2b286c6a9 Add option to skip the IP check in action.php
This fixes requests by servers behind certain kinds of proxies.
2013-03-29 17:49:46 -07: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
3e5d3857e4 Aesthetically pleasing switch menu HP bar colors 2013-03-29 13:52:31 -07:00
Guangcong Luo
56c439e5cf Use protocol-relative URLs for resources 2013-03-29 10:29:29 -07:00
Guangcong Luo
1e1089fa8d Test page for HP bar colors
This adds style/hpbartest.html, a test page for HP bar colors.
2013-03-29 10:20:50 -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
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