From a98dac965a9dc15faba735bb2c4b8d72911b9ba7 Mon Sep 17 00:00:00 2001 From: Meira Tompkins Date: Tue, 25 Feb 2020 15:13:10 -0500 Subject: [PATCH] changes --- css/main.css | 4 ++-- js/main.js | 12 ++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/css/main.css b/css/main.css index d314fe8..f19e8de 100644 --- a/css/main.css +++ b/css/main.css @@ -39,13 +39,13 @@ h1{ } #sendBtn{ font-family: 'Advent Pro'; - background-color: lightcyan; + background-color: white; border: lightcoral; border-radius: 30px; } #newMsg{ font-family: 'Advent Pro'; - background-color: lightcyan; + background-color: white; border: lightcoral; border-radius: 30px; } diff --git a/js/main.js b/js/main.js index 172c630..d9068fc 100644 --- a/js/main.js +++ b/js/main.js @@ -54,13 +54,9 @@ document.querySelector("#sendBtn").addEventListener('click', function(){ makeAndDisplaymMessage("me","now", document.querySelector("#newMsg").value); document.querySelector("#newMsg").value = ""; document.querySelector("#newMsg").focus(); - + let src = 'img/notif.mp3'; + let audio = new Audio(src); + audio.play(); }); - - // function playSound("img/notif.mp3"){ - // var mp3Source = ''; - // var oggSource = ''; - // var embedSource = ''; - // document.getElementById("sound").innerHTML=''; - // } \ No newline at end of file + \ No newline at end of file