User:Ultimate Dark Carnage/test.js

$(function{   $(document.head).append($(' ', { 'type': 'text/css', text: '.active { background: #ff4545; }'}));    if ($('.ChatWindow').length){        $('.ChatWindow').find('.Chat li').each(function{ $(this).not('.inline-alert').click(function{               var deleteMsgContent =                     ' Are you sure that you want to delete this message? ';                function deleteMsg{                    $('.Chat li.active').remove;                }                $.showCustomModal('Delete message?', deleteMsgContent, { width: 450, id: 'deletemsg', buttons: [ {                           message: 'Cancel', id: 'cancel', handler: function{ $('#deletemsg').closeModal; }                       },                        {                            message: 'OK', id: 'accept', defaultButton: true, handler: function{ $('#deletemsg').closeModal; deleteMsg; }                       }                    ]                });                if ($(this).is('.active') === false) $(this).addClass('active');            }); });   } });