Skip to content

Commit

Permalink
Merge pull request #1 from renancarvalhoo/master
Browse files Browse the repository at this point in the history
the gain is so loud and some times the session is expired and we got sound with wrong message
  • Loading branch information
ftuyama committed Oct 22, 2020
2 parents f030dcc + 350ae3f commit 8134589
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 8134589

Please sign in to comment.