1setEmojiCarret = function(node) 2{ 3 window.setTimeout(function() { 4 var sel, range; 5 if (window.getSelection && document.createRange) { 6 range = document.createRange(); 7 range.selectNodeContents(node); 8 range.collapse(false); 9 sel = window.getSelection(); 10 sel.removeAllRanges(); 11 sel.addRange(range); 12 } 13 }, 0); 14} 15 16var scriptEls = document.getElementsByTagName( 'script' ); 17var thisScriptEl = scriptEls[scriptEls.length - 1]; 18var scriptPath = thisScriptEl.src; 19var scriptFolder = scriptPath.substr(0, scriptPath.lastIndexOf( '/' )+1 ); 20 21$.emojiarea.path = scriptFolder + 'packs/basic'; 22$.emojiarea.icons = { 23 ':fire:': 'fire.png', 24 ':smile:': 'smile.png', 25 ':angry:': 'angry.png', 26 ':flushed:': 'flushed.png', 27 ':blush:': 'blush.png', 28 ':laughing:': 'laughing.png', 29 ':smiley:': 'smiley.png', 30 ':smirk:': 'smirk.png', 31 ':heart_eyes:': 'heart_eyes.png', 32 ':kissing_heart:': 'kissing_heart.png', 33 ':kissing_closed_eyes:': 'kissing_closed_eyes.png', 34 ':bowtie:': 'bowtie.png', 35 ':relieved:': 'relieved.png', 36 ':satisfied:': 'satisfied.png', 37 ':grin:': 'grin.png', 38 ':wink:': 'wink.png', 39 ':relaxed:': 'relaxed.png', 40 ':stuck_out_tongue_winking_eye:': 'stuck_out_tongue_winking_eye.png', 41 ':stuck_out_tongue_closed_eyes:': 'stuck_out_tongue_closed_eyes.png', 42 ':grinning:': 'grinning.png', 43 ':kissing:': 'kissing.png', 44 ':kissing_smiling_eyes:': 'kissing_smiling_eyes.png', 45 ':stuck_out_tongue:': 'stuck_out_tongue.png', 46 ':sleeping:': 'sleeping.png', 47 ':worried:': 'worried.png', 48 ':frowning:': 'frowning.png', 49 ':anguished:': 'anguished.png', 50 ':open_mouth:': 'open_mouth.png', 51 ':grimacing:': 'grimacing.png', 52 ':confused:': 'confused.png', 53 ':hushed:': 'hushed.png', 54 ':expressionless:': 'expressionless.png', 55 ':unamused:': 'unamused.png', 56 ':sweat_smile:': 'sweat_smile.png', 57 ':sweat:': 'sweat.png', 58 ':disappointed_relieved:': 'disappointed_relieved.png', 59 ':weary:': 'weary.png', 60 ':pensive:': 'pensive.png', 61 ':disappointed:': 'disappointed.png', 62 ':confounded:': 'confounded.png', 63 ':fearful:': 'fearful.png', 64 ':cold_sweat:': 'cold_sweat.png', 65 ':persevere:': 'persevere.png', 66 ':cry:': 'cry.png', 67 ':sob:': 'sob.png', 68 ':joy:': 'joy.png', 69 ':astonished:': 'astonished.png', 70 ':scream:': 'scream.png', 71 ':neckbeard:': 'neckbeard.png', 72 ':tired_face:': 'tired_face.png', 73 ':rage:': 'rage.png', 74 ':triumph:': 'triumph.png', 75 ':sleepy:': 'sleepy.png', 76 ':yum:': 'yum.png', 77 ':mask:': 'mask.png', 78 ':sunglasses:': 'sunglasses.png', 79 ':dizzy_face:': 'dizzy_face.png', 80 ':imp:': 'imp.png', 81 ':smiling_imp:': 'smiling_imp.png', 82 ':neutral_face:': 'neutral_face.png', 83 ':no_mouth:': 'no_mouth.png', 84 ':innocent:': 'innocent.png', 85 ':alien:': 'alien.png', 86 ':yellow_heart:': 'yellow_heart.png', 87 ':blue_heart:': 'blue_heart.png', 88 ':purple_heart:': 'purple_heart.png', 89 ':heart:': 'heart.png', 90 ':green_heart:': 'green_heart.png', 91 ':broken_heart:': 'broken_heart.png', 92 ':heartbeat:': 'heartbeat.png', 93 ':heartpulse:': 'heartpulse.png', 94 ':two_hearts:': 'two_hearts.png', 95 ':revolving_hearts:': 'revolving_hearts.png', 96 ':cupid:': 'cupid.png', 97 ':sparkling_heart:': 'sparkling_heart.png', 98 ':sparkles:': 'sparkles.png', 99 ':star:': 'star.png', 100 ':boom:': 'boom.png', 101 ':exclamation:': 'exclamation.png', 102 ':question:': 'question.png', 103 ':zzz:': 'zzz.png', 104 ':sweat_drops:': 'sweat_drops.png', 105 ':musical_note:': 'musical_note.png', 106 ':thumbsup:': 'thumbsup.png', 107 ':thumbsdown:': 'thumbsdown.png', 108 ':ok_hand:': 'ok_hand.png', 109 ':punch:': 'punch.png', 110 ':v:': 'v.png', 111 ':wave:': 'wave.png', 112 ':hand:': 'hand.png', 113 ':point_up:': 'point_up.png', 114 ':point_down:': 'point_down.png', 115 ':point_left:': 'point_left.png', 116 ':point_right:': 'point_right.png', 117 ':clap:': 'clap.png', 118 ':muscle:': 'muscle.png', 119 ':metal:': 'metal.png', 120 ':running:': 'running.png', 121 ':girl:': 'girl.png', 122 ':boy:': 'boy.png', 123 ':woman:': 'woman.png', 124 ':man:': 'man.png', 125 ':baby:': 'baby.png', 126 ':smiley_cat:': 'smiley_cat.png', 127 ':scream_cat:': 'scream_cat.png', 128 ':see_no_evil:': 'see_no_evil.png', 129 ':hear_no_evil:': 'hear_no_evil.png', 130 ':speak_no_evil:': 'speak_no_evil.png', 131 ':kiss:': 'kiss.png', 132 ':eyes:': 'eyes.png', 133 ':love_letter:': 'love_letter.png', 134 ':speech_balloon:': 'speech_balloon.png', 135 ':thought_balloon:': 'thought_balloon.png', 136 ':sunny:': 'sunny.png', 137 ':cloud:': 'cloud.png', 138 ':snowflake:': 'snowflake.png', 139 ':zap:': 'zap.png', 140 ':cat:': 'cat.png', 141 ':dog:': 'dog.png', 142 ':rabbit:': 'rabbit.png', 143 ':monkey_face:': 'monkey_face.png', 144 ':bouquet:': 'bouquet.png', 145 ':tulip:': 'tulip.png', 146 ':four_leaf_clover:': 'four_leaf_clover.png', 147 ':cactus:': 'cactus.png', 148 ':rose:': 'rose.png', 149 ':sunflower:': 'sunflower.png',
150 ':globe_with_meridians:': 'globe_with_meridians.png', 151 ':crescent_moon:': 'crescent_moon.png', 152 ':earth_asia:': 'earth_asia.png', 153 ':gift_heart:': 'gift_heart.png', 154 ':bell:': 'bell.png', 155 ':christmas_tree:': 'christmas_tree.png', 156 ':gift:': 'gift.png', 157 ':balloon:': 'balloon.png', 158 ':computer:': 'computer.png', 159 ':tv:': 'tv.png', 160 ':telephone_receiver:': 'telephone_receiver.png', 161 ':speaker:': 'speaker.png', 162 ':hourglass:': 'hourglass.png', 163 ':key:': 'key.png', 164 ':mag:': 'mag.png', 165 ':birthday:': 'birthday.png', 166 ':house:': 'house.png', 167 ':rocket:': 'rocket.png', 168 ':airplane:': 'airplane.png', 169 ':car:': 'car.png', 170 ':ru:': 'ru.png', 171 ':de:': 'de.png', 172 ':cn:': 'cn.png', 173 ':us:': 'us.png', 174 ':fr:': 'fr.png', 175 ':it:': 'it.png', 176 ':es:': 'es.png', 177 ':jp:': 'jp.png', 178 ':gb:': 'gb.png' 179}; 180 181$.emojiarea.entities = { 182 ':fire:': '🔥', 183 ':joy:': '😂', 184 ':heart:': '❤️', 185 ':heart_eyes:': '😍', 186 ':sob:': '😭', 187 ':blush:': '😊', 188 ':unamused:': '😒', 189 ':kissing_heart:': '😘', 190 ':two_hearts:': '💕', 191 ':weary:': '😩', 192 ':ok_hand:': '👌', 193 ':pensive:': '😔', 194 ':smirk:': '😏', 195 ':grin:': '😁', 196 ':wink:': '😉', 197 ':thumbsup:': '👍', 198 ':metal:': '🤘', 199 ':punch:': '👊', 200 ':hand:': '✋', 201 ':neckbeard:': '🧔', 202 ':bowtie:': '👔', 203 ':satisfied:': '😆', 204 ':relaxed:': '😊', 205 ':relieved:': '😌', 206 ':flushed:': '😳', 207 ':see_no_evil:': '🙈', 208 ':cry:': '😢', 209 ':sunglasses:': '😎', 210 ':v:': '✌', 211 ':eyes:': '👀', 212 ':sweat_smile:': '😅', 213 ':sparkles:': '✨', 214 ':sleeping:': '😴', 215 ':smile:': '😄', 216 ':purple_heart:': '💜', 217 ':broken_heart:': '💔', 218 ':expressionless:': '😑', 219 ':sparkling_heart:': '💖', 220 ':blue_heart:': '💙', 221 ':confused:': '😕', 222 ':stuck_out_tongue_winking_eye:': '😜', 223 ':disappointed:': '😞', 224 ':yum:': '😋', 225 ':neutral_face:': '😐', 226 ':sleepy:': '😪', 227 ':clap:': '👏', 228 ':cupid:': '💘', 229 ':heartpulse:': '💗', 230 ':revolving_hearts:': '💞', 231 ':speak_no_evil:': '🙊', 232 ':kiss:': '💋', 233 ':point_right:': '👉', 234 ':scream:': '😱', 235 ':rage:': '😡', 236 ':smiley:': '😃', 237 ':tired_face:': '😫', 238 ':rose:': '🌹', 239 ':stuck_out_tongue_closed_eyes:': '😝', 240 ':muscle:': '💪', 241 ':sunny:': '☀️', 242 ':yellow_heart:': '💛', 243 ':triumph:': '😤', 244 ':laughing:': '😆', 245 ':sweat:': '😓', 246 ':point_left:': '👈', 247 ':grinning:': '😀', 248 ':mask:': '😷', 249 ':green_heart:': '💚', 250 ':wave:': '👋', 251 ':persevere:': '😣', 252 ':heartbeat:': '💓', 253 ':kissing_closed_eyes:': '😚', 254 ':stuck_out_tongue:': '😛', 255 ':disappointed_relieved:': '😥', 256 ':innocent:': '😇', 257 ':confounded:': '😖', 258 ':angry:': '😠', 259 ':grimacing:': '😬', 260 ':thumbsdown:': '👎', 261 ':musical_note:': '🎵', 262 ':no_mouth:': '😶', 263 ':point_down:': '👇', 264 ':boom:': '💥', 265 ':thought_balloon:': '💭', 266 ':cold_sweat:': '😰', 267 ':sweat_drops:': '💦', 268 ':zzz:': '💤', 269 ':airplane:': '✈', 270 ':balloon:': '🎈', 271 ':star:': '⭐', 272 ':worried:': '😟', 273 ':fearful:': '😨', 274 ':four_leaf_clover:': '🍀', 275 ':alien:': '👽', 276 ':cloud:': '☁', 277 ':exclamation:': '❗', 278 ':snowflake:': '❄', 279 ':point_up:': '☝', 280 ':kissing_smiling_eyes:': '😙', 281 ':crescent_moon:': '🌙', 282 ':gift_heart:': '💝', 283 ':gift:': '🎁', 284 ':anguished:': '😧', 285 ':zap:': '⚡', 286 ':running:': '🏃', 287 ':sunflower:': '🌻', 288 ':bouquet:': '💐', 289 ':dog:': '🐶', 290 ':tulip:': '🌷', 291 ':birthday:': '🎂', 292 ':cat:': '🐱', 293 ':dizzy_face:': '😵', 294 ':open_mouth:': '😮', 295 ':hushed:': '😯', 296 ':christmas_tree:': '🎄', 297 ':astonished:': '😲', 298 ':hear_no_evil:': '🙉', 299 ':cactus:': '🌵', 300 ':love_letter:': '💌', 301 ':us:': '🇺🇸', 302 ':frowning:': '😦', 303 ':rocket:': '🚀', 304 ':smiling_imp:': '😈', 305 ':imp:': '👿', 306 ':earth_asia:': '🌏', 307 ':speech_balloon:': '💬', 308 ':scream_cat:': '🙀', 309 ':baby:': '👶', 310 ':rabbit:': '🐰', 311 ':kissing:': '😗', 312 ':tv:': '📺', 313 ':smiley_cat:': '😺', 314 ':man:': '👨', 315 ':girl:': '👧', 316 ':fr:': '🇫🇷', 317 ':woman:': '👩', 318 ':key:': '🔑', 319 ':telephone_receiver:': '📞', 320 ':computer:': '💻', 321 ':question:': '❓', 322 ':boy:': '👦', 323 ':it:': '🇮🇹', 324 ':gb:': '🇬🇧', 325 ':house:': '🏠', 326 ':monkey_face:': '🐵', 327 ':car:': '🚗', 328 ':jp:': '🇯🇵', 329 ':bell:': '🔔',
330 ':globe_with_meridians:': '🌐', 331 ':hourglass:': '⌛', 332 ':ru:': '🇷🇺', 333 ':mag:': '🔍', 334 ':cn:': '🇨🇳', 335 ':speaker:': '🔈', 336 ':de:': '🇩🇪', 337 ':es:': '🇪🇸' 338}; 339 340//$('.emoji-button').on('click', function() { 341// if ($(this).siblings('.emoji-wysiwyg-editor').length == 0) { 342// $(this).siblings('textarea.emoji-area').emojiarea({ 343// button: '.emoji-button', 344// //buttonPosition: 'before' 345// }); 346// } 347//}); 348 349//$('.emoji-text').emoji(); 350 351//$('.emoji-textarea').emojiButton(); 352 353//eachAndRunOneTimeOnElement( 354// $('.emoji-text'), 355// 'emoji-text-handler', 356// function($el) { 357// $el.emoji(); 358// } 359//); 360//eachAndRunOneTimeOnElement( 361// $('.emoji-textarea'), 362// 'emoji-btn-handler', 363// function($el) { 364// $el.emojiButton(); 365// } 366//); 367 368(function () { 369 // веÑÑ Ñ ÐµÐ»Ð¿ÐµÑ Ð²ÑнÑжденнаÑ, меÑа, поÑÐ¾Ð¼Ñ ÑÑо бÑл глобалÑнÑй bing emoji по ÑелекÑоÑам и пÑÑаÑÑÑ ÐºÐ°Ðº Ñо ÑÑо иÑпÑавиÑÑ 370 var EmojiHelper = {}; 371 EmojiHelper.initEmojies = function($el) { 372 window.eachAndRunOneTimeOnElement( 373 $el.find('.emoji-text'), 374 'emoji-text-handler', 375 function ($el) { 376 $el.emoji(); 377 return $el; 378 } 379 ); 380 }; 381 EmojiHelper.initEmojiTextAreas = function ($el) { 382 window.eachAndRunOneTimeOnElement( 383 $el.find('.emoji-textarea'), 384 'emoji-textarea-handler', 385 function ($el) { 386 $el.emojiButton(); 387 // todo ÑÑеÑ, завиÑÐ¸Ñ Ð¾Ñ Ð¿ÑедÑдÑÑего вÑзова неÑвно, плÑÑ Ð½ÐµÑовÑем понÑÑно, как оно ÑанÑÑе ÑабоÑало 388 $el.parents('.emoji-container').find('.emoji-button').click(function(e){ 389 var $this = $(this); 390 //var $parent = $($this.parents('.new-comment').get(0)); 391 var $textarea = $this.siblings('textarea.emoji-textarea'); 392 if (!$el.data('sibling')) { 393 $el.data('sibling', 1); 394 $textarea.emojiarea({ 395 button: '.emoji-button' 396 }); 397 setEmojiCarret($textarea.siblings('.emoji-wysiwyg-editor').get(0)); 398 } 399 }); 400 return $el; 401 } 402 ); 403 }; 404 window.GcEmojiHelper = EmojiHelper; 405})();
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.