Skip to content

Commit

Permalink
forgot the html file
Browse files Browse the repository at this point in the history
  • Loading branch information
John committed May 5, 2021
1 parent 70e8046 commit 9558362
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion success.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,48 @@
);

});

$('#forcerefresh').click(function()
{

$.ajax(
{
type: 'GET',
url: '/forcerefresh',
dataType: 'json',
data: {},
success: (data) =>
{
refreshdata=data;
console.log("force refresh returned.");
},
error: (jq,tx,err) =>
{
console.log("get albums threw error ");
console.log(tx);
console.log(err);
}
}
);

});

}
);

var refreshdata = null;




</script>

<body>
Success !<br>
<a id="getalbums" href="javascript:void(0)">Click to retrieve albums</a><br>
<a id="getitems" href="javascript:void(0)">Click to retrieve photo list</a><br>
<a id="grabitems" href="javascript:void(0)">Click to re-download items</a>
<a id="grabitems" href="javascript:void(0)">Click to re-download items</a><br>
<a id="forcerefresh" href="javascript:void(0)">Force refresh of access token</a>
</body>

</html>

0 comments on commit 9558362

Please sign in to comment.