-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35af33a
commit 2d2caf8
Showing
8 changed files
with
65 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!DOCTYPE html> | ||
<html lang="fa"> | ||
<head> | ||
<title>انتقال به درگاه پرداخت</title> | ||
<style> | ||
.progress-bar { | ||
position: relative; | ||
width: 200px; | ||
height: 200px; | ||
border-radius: 50%; | ||
border: 10px solid lightgray; | ||
margin: 50px auto; | ||
} | ||
|
||
.countdown { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
font-size: 24px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="message">در حال انتقال به درگاه پرداخت بانکی. لطفا چند ثانیه صبر کنید...</div> | ||
<div class="progress-bar"> | ||
<div id="countdown" class="countdown">8</div> | ||
</div> | ||
<form id="hidden-form" action="example_url" method="post"> | ||
<input type="hidden" name="key1" value="value1"> | ||
<input type="hidden" name="key2" value="value2"> | ||
<!-- Add more hidden inputs as needed --> | ||
</form> | ||
|
||
<script> | ||
function countdown() { | ||
var countdownElement = document.getElementById("countdown"); | ||
var countdownValue = parseInt(countdownElement.innerHTML); | ||
|
||
// Submit the hidden form after the countdown reaches 0 | ||
if (countdownValue === 0) { | ||
document.getElementById("hidden-form").submit(); | ||
} else { | ||
countdownElement.innerHTML = countdownValue - 1; | ||
setTimeout(countdown, 1000); // Run the countdown every 1 second (1000 milliseconds) | ||
} | ||
} | ||
|
||
window.onload = function () { | ||
setTimeout(countdown, 1000); // Start the countdown when the page loads after 1 second (1000 milliseconds) | ||
}; | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters