(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) + '
Avatar...
Status...
'; buf += '
Password...
Register
Graphics
Theme: LightDark'; if (colorSchemeQuerySupported) { buf += 'Match system theme'; } buf += '
Layout: ◫ Left and right panels◻ Single panel
Background: Change background
Disable animations
Disable GIFs for Chrome 64 bug
Use 2D sprites instead of 3D models
Use modern sprites for past generations
Chat
Block PMs
Block Challenges
Show PMs in chat rooms
Highlight when your name is said in chat
Notifications disappear automatically
Confirm before leaving a room
Confirm before refreshing
Language: '; for (var name in possibleLanguages) { buf += '' + name + ''; } buf += '
Tournaments: NotificationsNo NotificationsHide
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`` (Ctrl + `)
code formatting
~~strikethrough~~
^^superscript^^
\\\\subscript\\\\
Suppress >' + ['meme arrows', 'greentext', 'quote formatting'][Math.floor(Math.random() * 3)] + '
Suppress /me action formatting
/me
Auto-show spoilers: these things
Make [[clickable links]] unclickable
Don\'t warn for untrusted links
Done
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:
Sorry, the background chooser is experiencing technical difficulties. Please try again tomorrow!
Change background '; buf += 'Cancel
' + 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