Skip to content

Commit

Permalink
Update Welcome.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ARTIRL committed May 7, 2024
1 parent 6a78bc1 commit ff26e0e
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions Welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ <h4>GameZoneTn</h4>
<h4>get help</h4>
<ul>
<li><a href="#">Online Support</a></li>
<li><a href="#">Shop History</a></li>
<li><a href="#">Refunds</a></li>
<li><a href="#" id="shopHistory">Shop History</a>
<li><a href="#">Refunds</a></li>
<li><a href="#">payment options</a></li>
</ul>
</div>
Expand All @@ -173,6 +173,25 @@ <h4>follow us</h4>
</div>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

<script>
$(document).ready(function() {
$('#shopHistory').click(function(event) {
event.preventDefault(); // Prevent the default link behavior

$.ajax({
url: 'getHistory.php', // Path to your PHP script
type: 'GET',
success: function(data) {
alert(data); // Display data in an alert box
},
error: function() {
alert('Failed to retrieve purchase history.'); // Error handling
}
});
});
});
</script>
</body>
</html>
</html>

0 comments on commit ff26e0e

Please sign in to comment.