1/* 2 * @package AJAX_Chat 3 * @author Sebastian Tschan 4 * @copyright (c) Sebastian Tschan 5 * @license GNU Affero General Public License 6 * @link https://blueimp.net/ajax/ 7 */ 8 9// Ajax Chat config parameters: 10var ajaxChatConfig = { 11 12 // The channelID of the channel to enter on login (the loginChannelName is used if set to null): 13 loginChannelID: null, 14 // The channelName of the channel to enter on login (the default channel is used if set to null): 15 loginChannelName: null, 16 17 // The time in ms between update calls to retrieve new chat messages: 18 timerRate: 2000, 19 20 // The URL to retrieve the XML chat messages (must at least contain one parameter): 21 ajaxURL: './?ajax=true', 22 // The base URL of the chat directory, used to retrieve media files (images, sound files, etc.): 23 baseURL: './', 24 25 // A regular expression for allowed source URL's for media content (e.g. images displayed inline); 26 regExpMediaUrl: '^((http)|(https)):\\/\\/', 27 28 // If set to false the chat update is delayed until the event defined in ajaxChat.setStartChatHandler(): 29 startChatOnLoad: true, 30 31 // Defines the IDs of DOM nodes accessed by the chat: 32 domIDs: { 33 // The ID of the chat messages list: 34 chatList: 'chatList', 35 // The ID of the online users list: 36 onlineList: 'onlineList', 37 // The ID of the message text input field: 38 inputField: 'inputField', 39 // The ID of the message text length counter: 40 messageLengthCounter: 'messageLengthCounter', 41 // The ID of the channel selection: 42 channelSelection: 'channelSelection', 43 // The ID of the style selection: 44 styleSelection: 'styleSelection', 45 // The ID of the emoticons container: 46 emoticonsContainer: 'emoticonsContainer', 47 // The ID of the color codes container: 48 colorCodesContainer: 'colorCodesContainer', 49 // The ID of the flash interface container: 50 flashInterfaceContainer: 'flashInterfaceContainer' 51 }, 52 53 // Defines the settings which can be modified by users: 54 settings: { 55 // Defines if BBCode tags are replaced with the associated HTML code tags: 56 bbCode: true, 57 // Defines if image BBCode is replaced with the associated image HTML code: 58 bbCodeImages: true, 59 // Defines if color BBCode is replaced with the associated color HTML code: 60 bbCodeColors: true, 61 // Defines if hyperlinks are made clickable: 62 hyperLinks: true, 63 // Defines if line breaks are enabled: 64 lineBreaks: true, 65 // Defines if emoticon codes are replaced with their associated images: 66 emoticons: true, 67 68 // Defines if the focus is automatically set to the input field on chat load or channel switch: 69 autoFocus: true, 70 // Defines if the chat list scrolls automatically to display the latest messages: 71 autoScroll: true, 72 // The maximum count of messages displayed in the chat list (will be ignored if set to 0): 73 maxMessages: 0, 74 75 // Defines if long words are wrapped to avoid vertical scrolling: 76 wordWrap: true, 77 // Defines the maximum length before a word gets wrapped: 78 maxWordLength: 32, 79 80 // Defines the format of the date and time displayed for each chat message: 81 dateFormat: '(%H:%i:%s)', 82 83 // Defines if font colors persist without the need to assign them to each message: 84 persistFontColor: false, 85 // The default font color, uses the page default font color if set to null: 86 fontColor: null, 87 88 // Defines if sounds are played: 89 audio: true, 90 // Defines the sound volume (0.0 = mute, 1.0 = max): 91 audioVolume: 1.0, 92 93 // Defines the sound that is played when normal messages are reveived: 94 soundReceive: 'sound_1', 95 // Defines the sound that is played on sending normal messages: 96 soundSend: 'sound_2', 97 // Defines the sound that is played on channel enter or login: 98 soundEnter: 'sound_3', 99 // Defines the sound that is played on channel leave or logout: 100 soundLeave: 'sound_4', 101 // Defines the sound that is played on chatBot messages: 102 soundChatBot: 'sound_5', 103 // Defines the sound that is played on error messages: 104 soundError: 'sound_6', 105 106 // Defines if the document title blinks on new messages: 107 blink: true, 108 // Defines the blink interval in ms: 109 blinkInterval: 500, 110 // Defines the number of blink intervals: 111 blinkIntervalNumber: 10 112 }, 113 114 // Defines a list of settings which are not to be stored in a session cookie: 115 nonPersistentSettings: new Array( 116 ), 117 118 // Defines the list of allowed BBCodes: 119 bbCodeTags: new Array( 120 'b', 121 'i', 122 'u', 123 'quote', 124 'code', 125 'color', 126 'url', 127 'img' 128 ), 129 130 // Defines the list of allowed color codes: 131 colorCodes: new Array( 132 'gray', 133 'silver', 134 'white', 135 'yellow', 136 'orange', 137 'red', 138 'fuchsia', 139 'purple', 140 'navy', 141 'blue', 142 'aqua', 143 'teal', 144 'green', 145 'lime', 146 'olive', 147 'maroon', 148 'black' 149 ), 150 151 // Defines the list of allowed emoticon codes: 152 emoticonCodes: new Array( 153 ':)', 154 ':(', 155 ';)', 156 ':P', 157 ':D', 158 ':|', 159 ':O', 160 ':?', 161 '8)', 162 '8o', 163 'B)', 164 ':-)', 165 ':-(', 166 ':-*', 167 'O:-D', 168 '>:-D', 169 ':o)', 170 ':idea:', 171 ':important:', 172 ':help:', 173 ':error:', 174 ':warning:', 175 ':favorite:' 176 ), 177 178 // Defines the list of emoticon files associated with the emoticon codes: 179 emoticonFiles: new Array( 180 'smile.png', 181 'sad.png', 182 'wink.png', 183 'razz.png', 184 'grin.png', 185 'plain.png', 186 'surprise.png', 187 'confused.png', 188 'glasses.png', 189 'eek.png', 190 'cool.png', 191 'smile-big.png', 192 'crying.png', 193 'kiss.png', 194 'angel.png', 195 'devilish.png', 196 'monkey.png', 197 'idea.png', 198 'important.png', 199 'help.png', 200 'error.png', 201 'warning.png', 202 'favorite.png' 203 ), 204 205 // Defines the available sounds loaded on chat start: 206 soundFiles: { 207 sound_1: 'sound_1.mp3', 208 sound_2: 'sound_2.mp3', 209 sound_3: 'sound_3.mp3', 210 sound_4: 'sound_4.mp3', 211 sound_5: 'sound_5.mp3', 212 sound_6: 'sound_6.mp3' 213 }, 214 215 216 // The following configuration options are usually overwritten by server-side values: 217 218 // Session identification, used for style and setting cookies: 219 sessionName: 'ajax_chat', 220 221 // The time in days until the style and setting cookies expire: 222 cookieExpiration: 365, 223 // The path of the cookies, '/' allows to read the cookies from all directories: 224 cookiePath: '/', 225 // The domain of the cookies, defaults to the hostname of the server if set to null: 226 cookieDomain: null, 227 // If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections: 228 cookieSecure: null, 229 230 // The name of the chat bot: 231 chatBotName: 'ChatBot', 232 // The userID of the chat bot: 233 chatBotID: 2147483647, 234 235 // Allow/Disallow registered users to delete their own messages: 236 allowUserMessageDelete: true, 237 238 // Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes: 239 inactiveTimeout: 2, 240 241 // UserID plus this value are private channels (this is also the max userID and max channelID): 242 privateChannelDiff: 500000000, 243 // UserID plus this value are used for private messages: 244 privateMessageDiff: 1000000000, 245 246 // Defines if login/logout and channel enter/leave are displayed: 247 showChannelMessages: true, 248 249 // Max messageText length: 250 messageTextMaxLength: 1040, 251 252 // Defines if the socket server is enabled: 253 socketServerEnabled: false, 254 // Defines the hostname of the socket server used to connect from client side: 255 socketServerHost: 'localhost', 256 // Defines the port of the socket server: 257 socketServerPort: 1935, 258 // This ID can be used to distinguish between different chat installations using the same socket server: 259 socketServerChatID: 0 260 261}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.