Skip to content

Commit

Permalink
the gain is so loud
Browse files Browse the repository at this point in the history
some times the session is expired and we got sound with wrong message
  • Loading branch information
renancarvalhoo committed Oct 20, 2020
1 parent f030dcc commit 350ae3f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions refresher.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $(document).ready(() => {

// create a gain node
var gainNode = audioCtx.createGain();
gainNode.gain.value = 20;
gainNode.gain.value = 10;
source.connect(gainNode);

// connect the gain node to an output destination
Expand All @@ -16,8 +16,13 @@ $(document).ready(() => {
setTimeout(() => {
var LookFor = "Não há horários disponíveis no momento. Tente novamente mais tarde!";
if($('body:contains("' + LookFor + '")').length == 0) {
var LoginMessage = "Senha";
audio.play();
alert("Found: " + LookFor);
if ($('body:contains("'+ LoginMessage + '")').length == 0) {
alert("Found: " + LookFor);
}else{
alert("Session Expired: Please, login again" );
}
}
else {
location.reload();
Expand Down

0 comments on commit 350ae3f

Please sign in to comment.