Guangcong Luo
d3cf074478
Implement timer as CSS class
2013-06-01 12:47:55 -05:00
Guangcong Luo
733579eb2a
Don't italicize when opening dev console
2013-06-01 01:46:40 -05:00
Guangcong Luo
1c61a3bf3f
Make register/changepassword forms look nicer
2013-06-01 01:32:08 -05:00
Cathy J. Fitzpatrick
983c94d1df
Implement change password dialogue
2013-06-01 01:16:26 -05:00
Guangcong Luo
18092d3653
Implement highlight as CSS class
2013-05-31 22:01:16 -05:00
Cathy J. Fitzpatrick
8b2842a05d
Fix setting timestamp preferences
2013-05-31 16:33:18 -06:00
Guangcong Luo
9b163c782e
Ctrl+I and Ctrl+B for bold/italics
2013-05-31 15:49:29 -05:00
Cathy J. Fitzpatrick
121824da42
Minor stylistic changes
2013-05-31 06:32:14 -05:00
Guangcong Luo
d9d427c821
Support messages starting with || in battles
2013-05-31 00:51:04 -05:00
Cathy J. Fitzpatrick
515551bb0f
Support linking to namerequired rooms
2013-05-31 00:18:07 -05:00
Cathy J. Fitzpatrick
009fe323b3
Fix setPersistentName
2013-05-30 23:49:41 -05:00
Guangcong Luo
f44df969fc
Open lobby as early as possible
2013-05-30 22:22:34 -05:00
Guangcong Luo
287a2fdad3
Less specialcasing of lobby
...
Lobby is now treated more closely to other rooms, which fixes
certain bugs such as lobby ignoring |deinit|
I've also added some more comments to the surrounding code.
2013-05-30 19:24:24 -05:00
Guangcong Luo
fc253e3228
Stub code for handling |noinit| error codes
2013-05-30 18:56:25 -05:00
Guangcong Luo
c19c4e764a
Redirect expired direct battle links to replays
2013-05-30 18:56:02 -05:00
Guangcong Luo
8ae993ac3b
Join rooms optimistically
...
Rooms are now opened immediately upon request, instead of waiting
for the server to respond with the room's data.
2013-05-30 18:24:29 -05:00
Guangcong Luo
ac54695284
Suppport new message types |deinit| and |noinit|
2013-05-30 17:52:05 -05:00
Cathy J. Fitzpatrick
e624819e02
Don't use Function.prototype.bind
2013-05-29 22:13:33 -06:00
Guangcong Luo
9415f7faa1
Support more PM features
...
Specifically, /invite and /me and /announce should work in PMs now
2013-05-29 20:16:17 -05:00
Guangcong Luo
3eedcd5e59
Update username rules
2013-05-29 20:11:33 -05:00
Cathy J. Fitzpatrick
60042a0330
Implement chat formatting options
2013-05-29 18:50:55 -06:00
Cathy J. Fitzpatrick
8ea7036ea4
Show error message for invalid usernames
2013-05-28 22:38:58 -06:00
Cathy J. Fitzpatrick
a1203680c5
battledata.js should not depend on caja
2013-05-28 00:09:40 -05:00
Cathy J. Fitzpatrick
cab5488541
Show main menu when failing to join any room
2013-05-25 05:21:16 -05:00
Cathy J. Fitzpatrick
1414eaa994
Support the ladder room in testclient.html
2013-05-25 00:41:27 -06:00
Cathy J. Fitzpatrick
8b95302e97
Update information on what testclient.html supports
2013-05-25 00:29:22 -06:00
Guangcong Luo
9f55f38485
Support newer names for various message types
2013-05-25 01:04:31 -05:00
Guangcong Luo
02895c2723
Select entire textbox when autofocusing
2013-05-25 01:02:18 -05:00
Cathy J. Fitzpatrick
e19f1cd23e
Select previous name on the /nick dialogue
2013-05-24 23:40:25 -06:00
Cathy J. Fitzpatrick
d1138261b0
Fix userlist for empty rooms
2013-05-24 19:51:09 -06:00
Cathy J. Fitzpatrick
ddca39f096
Re-implement testclient.html to parity with old client
2013-05-24 19:10:28 -06:00
Guangcong Luo
3def981099
Remove some old files that are no longer used
2013-05-24 18:48:27 -05:00
Cathy J. Fitzpatrick
e00c95d0c5
Merge branch 'master' of github.com:Zarel/Pokemon-Showdown-Client
2013-05-24 18:44:27 -05:00
Cathy J. Fitzpatrick
3f94188285
Fix error in last commit (this.room.id rather than this.room)
2013-05-24 17:43:47 -06:00
Guangcong Luo
0f078ad97b
Support some button actions for server messages
2013-05-24 18:41:24 -05:00
Cathy J. Fitzpatrick
ec494ee7f3
Multiple chatroom support: namespace userlist DOM IDs
2013-05-24 17:39:10 -06:00
Cathy J. Fitzpatrick
395730ca5c
Ignore usercount message for rooms other than lobby
2013-05-24 17:30:49 -06:00
Guangcong Luo
0f7face378
Fix controls sometimes hiding themselves
2013-05-23 23:02:03 -05:00
Guangcong Luo
baded81275
Fix new protocol challenge/searching
2013-05-23 22:38:05 -05:00
Guangcong Luo
9da6054671
Teambuilder: Fix race condition with clicking formes
2013-05-23 22:16:06 -05:00
Cathy J. Fitzpatrick
25de60a91f
Fix accidental global sanitizedType
2013-05-23 20:25:20 -06:00
Cathy J. Fitzpatrick
d38b390e15
Open chat links to rooms within the client
2013-05-23 20:07:13 -05:00
Guangcong Luo
fa3951d83b
Support response to /query on the new protocol
2013-05-23 19:49:56 -05:00
Cathy J. Fitzpatrick
ef9b1a0b33
Update the usercount when receiving new information
2013-05-23 07:14:47 -05:00
Guangcong Luo
2120049cc0
Move trap warning below switch menu
2013-05-23 06:47:01 -05:00
Guangcong Luo
4b8db37027
Support updateuser and formats in same message
2013-05-22 23:38:13 -05:00
Guangcong Luo
613d12ca6b
Fix crash when watching battles before formats loaded
2013-05-22 23:37:14 -05:00
Guangcong Luo
b2315f57f9
Implement new protocol name taken message
2013-05-22 22:03:09 -05:00
Guangcong Luo
23c6e73e97
Support custom avatars in new protocol
2013-05-22 21:34:54 -05:00
Guangcong Luo
cc2ee46d44
Support new protocol for user updates
2013-05-22 21:25:39 -05:00
Guangcong Luo
9a654bac49
Switch timer on/off button instantly
2013-05-22 21:14:06 -05:00
Guangcong Luo
156e629827
Support new protocol for sending/receiving requests
2013-05-22 21:09:05 -05:00
Cathy J. Fitzpatrick
9dd5a2935c
Support |usercount| message
2013-05-22 20:32:31 -05:00
Guangcong Luo
fce4b4130d
Better support for tablets
2013-05-22 18:29:25 -05:00
Guangcong Luo
3a0db7f5ad
Suppress error from nonexistent template
2013-05-22 16:33:04 -05:00
Guangcong Luo
3d45586208
Show error message for localStorage limit
2013-05-22 16:30:08 -05:00
Guangcong Luo
00e3542a34
Suppress crash when Pokedex is unloaded
2013-05-22 16:10:14 -05:00
Guangcong Luo
47cc048609
Get rid of some trailing whitespace
2013-05-22 16:08:51 -05:00
Guangcong Luo
e3a9ab68af
Clear global events every once in a while
...
This should presumably fix a memory leak from jslider binding
global events and not bothering unbinding them or even making them
easy to unbind.
2013-05-22 16:03:02 -05:00
Guangcong Luo
e3aa7cc3c4
Allow IVs of 0
2013-05-22 15:04:04 -05:00
Cathy J. Fitzpatrick
032517142a
Support <blink>
2013-05-22 02:37:07 -05:00
Cathy J. Fitzpatrick
8709bce174
Add <marquee> to the HTML whitelist
2013-05-22 02:16:23 -05:00
Guangcong Luo
56a6933336
Fix bug with teambuilder tiers
2013-05-21 23:19:12 -05:00
Guangcong Luo
59462b4573
Suspect tests don't get separate teambuilder formats
2013-05-21 21:43:02 -05:00
Guangcong Luo
b6c5bfebf6
Suppress crash if BattleFormats is undefined
2013-05-21 21:41:25 -05:00
Guangcong Luo
b0e297fd7d
Suppress a crash when types are unknown
2013-05-21 17:26:45 -05:00
Guangcong Luo
60de68999b
Suppress a crash from invalid team
2013-05-21 17:22:34 -05:00
Guangcong Luo
13f6e623bb
Suppress any crash in requestPermission
2013-05-21 17:22:14 -05:00
Cathy J. Fitzpatrick
f9b553f379
Fix crash in statSlide
2013-05-21 16:20:42 -06:00
Guangcong Luo
5ef0a6b3c7
Load saved volume options
2013-05-21 16:49:36 -05:00
Guangcong Luo
ded6412275
Rearrange options
2013-05-21 16:46:00 -05:00
Guangcong Luo
8d23f4d5c5
Don't crash teambuilder on corrupted team
2013-05-21 16:43:57 -05:00
Guangcong Luo
5dff78bbdb
Unminified SockJS for debugging
2013-05-21 16:19:33 -05:00
Guangcong Luo
32ce293fc3
Refactor sending messages
...
Sending from any room can now use the send queue, and support
for sending JSON objects is nearly completely removed; used
only for initialization on old servers.
2013-05-21 16:19:10 -05:00
Guangcong Luo
3e5111d88e
Fix crash when clicking before rooms load
2013-05-21 16:17:28 -05:00
Cathy J. Fitzpatrick
6a66e8107a
Fix checking for socket not being open yet
2013-05-21 15:55:29 -05:00
Guangcong Luo
b2d585318e
Fix muting cries
2013-05-21 14:33:52 -05:00
Cathy J. Fitzpatrick
2faa9b9c66
Fix Pokemon cry audio effects
2013-05-21 08:19:04 -05:00
Cathy J. Fitzpatrick
bfb012a771
Fix another bug in initializeConnection
2013-05-21 07:26:58 -05:00
Guangcong Luo
a733d3565d
Fix adding blank lines to chat
2013-05-21 07:09:06 -05:00
Guangcong Luo
c00dcc8e23
Don't send JSON join message to the main server
2013-05-21 07:05:18 -05:00
Cathy J. Fitzpatrick
f2451d949d
Fix semi-critical bug in initializeCrossDomainConnection
2013-05-21 06:56:27 -05:00
Cathy J. Fitzpatrick
d52be2c250
Fix crash when connecting via TLS the first time
2013-05-21 02:58:39 -05:00
Guangcong Luo
f5962f5487
Fix crash in Chrome 23
2013-05-21 02:57:13 -05:00
Cathy J. Fitzpatrick
61e094e5cf
Fix crash when soundmanager does not load
2013-05-21 01:39:04 -05:00
Cathy J. Fitzpatrick
1fff29b4ca
Revert to version 1.04 of autoresize plugin
2013-05-21 00:49:13 -05:00
Cathy J. Fitzpatrick
70102adff5
Merge branch 'client-overhaul'
2013-05-20 22:56:05 -06:00
Guangcong Luo
50826659c8
Version 0.9.0
2013-05-20 23:54:07 -05:00
Guangcong Luo
e2efaebf86
Pref to turn off background
2013-05-20 23:19:40 -05:00
Guangcong Luo
b92b7a32dd
Replace loadteams event with loadprefs
...
init:loadprefs replaces init:loadteams and now fires when
all preferences and teams are loaded.
2013-05-20 22:40:12 -05:00
Guangcong Luo
18faee531a
Option to hide PMs from lobby chat log
2013-05-20 19:22:36 -05:00
Guangcong Luo
1ee11446cc
Support new PM syntax
2013-05-20 19:19:33 -05:00
Guangcong Luo
d4a5eb59e7
Support new popup syntax
2013-05-20 19:15:40 -05:00
Guangcong Luo
e59d78c790
Team validation failure keeps challenge window open
2013-05-20 18:54:33 -05:00
Guangcong Luo
956f2473d6
Show error message for having no teams
2013-05-20 18:48:18 -05:00
Guangcong Luo
9e85fcb81b
Make sure popups aren't scrolled down
...
In popups, sometimes the autofocused element is offscreen.
Even then, the popup shouldn't start scrolled down.
2013-05-20 17:28:47 -05:00
Guangcong Luo
54bb066b7e
!data no longer breaks battle chat scrolling
2013-05-20 16:46:32 -05:00
Cathy J. Fitzpatrick
ae92fc6f02
Refactor: Use Config.origindomain in two more places
2013-05-20 16:27:08 -05:00
Guangcong Luo
1e469693a9
Saved avatars are used
2013-05-20 15:54:47 -05:00
Cathy J. Fitzpatrick
2cc995348d
Remember last used unregistered username
2013-05-20 15:06:48 -05:00
Cathy J. Fitzpatrick
97061b9df5
Merge branch 'client-overhaul'
2013-05-20 05:35:23 -06:00
Cathy J. Fitzpatrick
3937ff775f
Delete the handler for the disconnect JSON event
...
Nothing in the server actually emits the `disconnect` event, so the
client does not need to handle it.
2013-05-20 06:33:48 -05:00
Cathy J. Fitzpatrick
512df0ca6b
Support the nameTaken JSON event
2013-05-20 06:33:11 -05:00
Cathy J. Fitzpatrick
85cd98bd89
Add missing semi-colon
2013-05-20 05:07:39 -06:00
Cathy J. Fitzpatrick
de37e7e549
Add missing semi-colon
2013-05-20 04:53:08 -06:00
Cathy J. Fitzpatrick
7ee5d266f0
Update references to dev.pokemonshowdown.com
2013-05-20 03:22:51 -06:00
Cathy J. Fitzpatrick
0795f89207
Refactor: Introduce Config.defaultserver.httpport
2013-05-20 02:57:29 -06:00
Guangcong Luo
e54ed15163
Support tab complete in PMs
2013-05-20 03:47:33 -05:00
Cathy J. Fitzpatrick
5042a68865
Move origindomain to Config.origindomain
2013-05-20 02:47:11 -06:00
Cathy J. Fitzpatrick
4d12ab5541
Support deploying on play.pokemonshowdown.com
2013-05-20 02:44:20 -06:00
Guangcong Luo
9c7a82d2d3
Fix battles sometimes not scrolling to bottom
2013-05-20 02:30:45 -05:00
Guangcong Luo
1afd746633
Fix crash in tab complete
2013-05-19 23:49:36 -05:00
Guangcong Luo
b27fdec7b6
Command history: Can navigate at start/end of line
2013-05-19 22:42:56 -05:00
Guangcong Luo
5edae3b1a7
Command history: Ctrl forces history navigation
2013-05-19 16:02:30 -05:00
Guangcong Luo
211ea266f3
Command history
...
So that command history isn't buggy, it's currently implemented
so that Up will only take you up command history from the beginning
of the textbox, and Down will only take you down command history
from the end of the textbox.
This allows Up and Down to be reliably used to navigate up and down
the textbox, as well.
2013-05-19 15:42:47 -05:00
Guangcong Luo
bc2e596e46
Fix trying to switch a trapped pokemon
2013-05-19 05:13:19 -05:00
Guangcong Luo
f8dc0e9768
Fix provisional cutoff in /ladder
2013-05-19 05:04:27 -05:00
Guangcong Luo
5b764d1032
Improve console logging
2013-05-19 05:03:08 -05:00
Guangcong Luo
5e7cab6155
Battles shouldn't have a persistent header
2013-05-19 02:53:12 -05:00
Guangcong Luo
640eeef4e0
Make Tab behave a bit more prediably in textboxes
2013-05-19 02:40:54 -05:00
Guangcong Luo
8c8af8bf18
Fix double-notification for PMs
2013-05-19 02:01:10 -05:00
Guangcong Luo
af0d6f34f1
Nicer teambuilder message
2013-05-19 00:17:47 -05:00
Cathy J. Fitzpatrick
2b2b4e5780
The canonical URI for the website is now pokemonshowdown.com
2013-05-18 17:51:57 -05:00
Guangcong Luo
131f0268ed
Fix crash in getMove before movedex is loaded
2013-05-18 00:53:56 -05:00
Cathy J. Fitzpatrick
1e74ebbafc
Merge branch 'client-overhaul' of github.com:Zarel/Pokemon-Showdown-Client into client-overhaul
2013-05-17 20:20:10 -05:00
Cathy J. Fitzpatrick
6cdfc740b4
Bandwidth-optimise the nojoin flag
2013-05-17 19:12:08 -06:00
Guangcong Luo
3be1822aad
Fix watch battle refresh button
2013-05-17 03:47:58 -05:00
Guangcong Luo
a74998dda5
Credits: Clarification to Marty's role
2013-05-17 02:37:36 -05:00
Guangcong Luo
ea518ac06a
Don't stop fast-forwarding at the end of a battle
2013-05-17 00:35:38 -05:00
Guangcong Luo
84335135aa
Don't overwrite ban message with disconnect message
2013-05-16 21:43:36 -05:00
Guangcong Luo
8d48f067e2
Zrackel's real name in credits
2013-05-16 21:43:25 -05:00
Guangcong Luo
df15177b14
Make sure popups don't stretch layout
2013-05-16 15:01:32 -05:00
Guangcong Luo
e9b621e29d
Custom popup positioning
...
This is used to make the userlist popup show up to the right
2013-05-16 14:52:05 -05:00
Guangcong Luo
07b863b8e1
Workaround for a race condition while loading
2013-05-15 23:09:47 -07:00
Guangcong Luo
ebf65a92ab
Leave room upon forfeiting
2013-05-15 20:17:00 -07:00
Guangcong Luo
81a7d93e65
Marty's real name in credits
2013-05-15 14:19:14 -07:00
Guangcong Luo
4847268628
Support ES3 for Safari 4
2013-05-15 13:59:09 -07:00
Guangcong Luo
d21dfcce7c
Sort TI as 'T' in the credits list
2013-05-15 13:43:13 -07:00
Guangcong Luo
691a6712b4
Add Joim's real name to credits
2013-05-15 01:55:36 -07:00
Guangcong Luo
ee394154cf
Ladder tab sections
2013-05-15 00:13:14 -07:00
Guangcong Luo
25169f7be2
Appearance tweaks to popups
2013-05-15 00:10:17 -07:00
Guangcong Luo
c662e1f23d
Appearance tweaks to credits page
2013-05-15 00:10:04 -07:00
Guangcong Luo
eb8d7805cc
Move version number to client.js
2013-05-14 23:32:10 -07:00
Guangcong Luo
a794b1d9ad
Credits page (sorted alphabetically)
2013-05-14 23:14:41 -07:00
Guangcong Luo
730c2c6403
Overflow tabs
2013-05-14 20:27:39 -07:00
Guangcong Luo
c865410550
PP column in teambuilder and /data
2013-05-14 12:30:13 -07:00
Guangcong Luo
abab7b7e23
Forfeit button
2013-05-14 12:29:51 -07:00
Guangcong Luo
8c04bd84e7
Support saving replays
2013-05-14 03:43:55 -07:00
Guangcong Luo
0b5102b657
Rearrange Import buttons in teambuilder
2013-05-14 03:43:54 -07:00
Guangcong Luo
21e8d676b0
Add team button on both sides of teambuilder
2013-05-14 03:43:54 -07:00