Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
changes
  • Loading branch information
met18001 committed Feb 25, 2020
1 parent 29acd11 commit a98dac9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions css/main.css
Expand Up @@ -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;
}
Expand Down
12 changes: 4 additions & 8 deletions js/main.js
Expand Up @@ -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 = '<source src="' + filename + '.mp3" type="audio/mpeg">';
// var oggSource = '<source src="' + filename + '.ogg" type="audio/ogg">';
// var embedSource = '<embed hidden="true" autostart="true" loop="false" src="' + filename +'.mp3">';
// document.getElementById("sound").innerHTML='<audio autoplay="autoplay">' + mp3Source + oggSource + embedSource + '</audio>';
// }

0 comments on commit a98dac9

Please sign in to comment.