User:Maurice.136/chat.js

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);