Skip to content

Commit

Permalink
scroll to top of results
Browse files Browse the repository at this point in the history
  • Loading branch information
gitstua committed Sep 5, 2023
1 parent 1185832 commit 42f6ac2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ function setupSurveyFromJson(json) {
console.log(JSON.stringify(sender.data, null, 3));

//after a delay, generate the chart
setTimeout(generateChart(), 2000);
setTimeout(function () {generateChart()}, 500);

//after a delay, scroll to top
setTimeout(function () {window.scrollTo(0, 0);}, 1000);

$("#btnReset").show();
$("#btnExport").show();
Expand Down

0 comments on commit 42f6ac2

Please sign in to comment.