(function ($) { this.Topbar = Backbone.View.extend({ events: { 'click a': 'click', 'click .username': 'clickUsername', 'click button': 'dispatchClickButton', 'dblclick button[name=openSounds]': 'toggleMute', 'dragstart .roomtab': 'dragStartRoom', 'dragend .roomtab': 'dragEndRoom', 'dragenter .roomtab': 'dragEnterRoom', 'dragover .roomtab': 'dragEnterRoom' }, initialize: function () { // April Fool's 2016 - Digimon Showdown // this.$el.html('
Effect volume:' + (muted ? '(muted)' : '') + '
Music volume:' + (muted ? '(muted)' : '') + '
Notification volume:' + (muted ? '(muted)' : '') + '
Mute sounds
' + (avatar ? '' : '') + '' + BattleLog.escapeHTML(name) + '
Change avatar
Password change
Register
Graphics
Layout: ◫ Left and right panels◻ Single panel
Background: Change background
Dark mode
Disable animations
Disable GIFs for Chrome 64 bug
Use BW sprites instead of XY models
Use modern sprites for past generations
Chat
Ignore tournaments
Show PMs in chat rooms
Highlight when your name is said in chat
Notifications disappear automatically
Timestamps in chat rooms: Off[HH:MM][HH:MM:SS]
Timestamps in PMs: Off[HH:MM][HH:MM:SS]
Chat preferences: Text formatting
Desktop app
Log chat
Open log folder
Change name Log out
Choose name
Usable formatting:
**bold** (' + ctrlPlus + 'B)
__italics__ (' + ctrlPlus + 'I)
``code formatting``
code formatting
~~strikethrough~~
^^superscript^^
\\\\subscript\\\\
Suppress >' + ['meme arrows', 'greentext', 'quote formatting'][Math.floor(Math.random() * 3)] + '
Suppress /me action formatting
Auto-show spoilers: these things
Make [[clickable links]] unclickable
Don\'t warn for untrusted links
Close
Choose an avatar or Cancel
Cancel
Default
Official
Custom
Drag and drop an image to PS (the background settings don\'t need to be open), or upload:
Done
Sorry, the background chooser is experiencing technical difficulties. Please try again tomorrow!
' + BattleLog.escapeHTML(data.error) + '
Keep in mind these rules:
' + BattleLog.parseMessage(data.reason) + '
You can\'t change name in the middle of these games:
Forfeit and change name
Username: (color)
(Others will be able to see your name change. To change name privately, use "Log out")
Choose name Cancel
' + data.error + '
Change your password:
Username:
Old password:
New password:
New password (confirm):
Change password Cancel
' + data.reason + '
Register your account:
Password:
Password (confirm):
What is this pokemon?
Register Cancel
' + BattleLog.escapeHTML(data.reason) + '
The name you chose is registered.
If this is your account:
Log in Cancel
or
If this is someone else\'s account:
Choose another name