MediaWiki:Chat.js

// ChatMp3InputBox var textSound = $('#myText').val; $('ul.WikiChatList').prepend(' Type here the URL of the  audio file and press Enter   Search MP3 files'); $('#playAudio').click(function { var audiowtf = document.getElementById("audiowtf"); audiowtf.play; }); var audioElement = document.getElementsByTagName('audio')[0]; var inputElement = document.getElementsByTagName('input')[0]; $('input').keyup(function { if (event.keyCode == 13) {    loadAndPlay(inputElement.value);  } }); function loadAndPlay(src) { audioElement.pause; audioElement.src = src; audioElement.load; audioElement.play; } loadAndPlay(inputElement.value);

// Enable Images and Videos for ChatTags var chatags = { images: true, videos: true };

// Import Scripts importArticles({   type: 'script',    articles: [        // ...        'u:kocka:MediaWiki:Emoticons.js',        'u:shining-armor:MediaWiki:ChatTags/code.js'        // ...    ] });