Commit Graph

11 Commits

Author SHA1 Message Date
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
Cathy J. Fitzpatrick
92867f22b9 Implement HP bar colours 2013-03-29 02:53:52 -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
2e852de9b1 Fix horizontal scrolling of chat 2013-02-20 00:56:13 -07:00
Guangcong Luo
2faa86f94f New naming scheme for CSS 2013-02-12 23:35:34 -08:00
Cathy J. Fitzpatrick
272a076aca Fix coloured output in /learn 2013-02-12 20:28:36 -07:00
Cathy J. Fitzpatrick
63d4c2ad46 Fix message-modchat-disable CSS class 2013-02-12 12:17:13 -07:00
Cathy J. Fitzpatrick
274e9c96de Prevent servers from injecting JavaScript into client
This commit makes various changes to prevent servers from injecting
arbitrary JavaScript into the client. This prevents a variety of
possible exploits. The main changes in the client are as follows:

- Raw HTML from the server is now sanitised using caja to prevent
  excution of JavaScript. See
    https://code.google.com/p/google-caja/wiki/JsHtmlSanitizer
  for details.

- The client now has a variety of CSS classes for possible chat
  command messages that can be sent from the server, rather than the
  server injecting arbitrary CSS `style` attributes into the client.
2013-02-12 02:57:17 -07:00
Cathy J. Fitzpatrick
12b3b59ed0 Break long words in chat 2013-01-31 02:57:27 -08:00
Guangcong Luo
b16c1527da Populate with current state of client 2013-01-23 16:39:14 -08:00