Skip to content

Commit

Permalink
update the send and download feedback button
Browse files Browse the repository at this point in the history
  • Loading branch information
aabughosh committed Apr 3, 2023
1 parent 21250b9 commit 311948c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions script/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</nav>

<button class="w3-button w3-right w3-light-grey" id="download" type="submit" onclick=download()
hidden="hidden">Download</button>
hidden="hidden" >Download </button>
<button class="w3-button w3-right w3-light-grey" id="send" type="submit" onclick=sendMail()
hidden="hidden">sendMail</button>

Expand Down Expand Up @@ -382,8 +382,18 @@
}

function enableSendDownload() {
document.getElementById("download").removeAttribute("hidden");
document.getElementById("send").removeAttribute("hidden");
var selectBox = document.getElementById("selectBox");
var selectedValue = selectBox.options[selectBox.selectedIndex].value


var download = document.getElementById("download")
var send = document.getElementById("send")

download.innerHTML = '<span >Downlaod '+ selectedValue +' Feedback<span>';
send.innerHTML = '<span >Send '+ selectedValue +' Feedback by Mail<span>';

download.removeAttribute("hidden");
send.removeAttribute("hidden");

}

Expand Down

0 comments on commit 311948c

Please sign in to comment.