summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <dold@inria.fr>2015-12-20 18:46:57 +0100
committerFlorian Dold <dold@inria.fr>2015-12-20 18:46:57 +0100
commitdfbd51b6b840eb8346c877a43bf507de0cff035f (patch)
tree9b39b8fcf8485034c417fdf234c26124caa01e9f
parent0d945e7432a67c7c90378b9a9962a94212b52798 (diff)
downloadmerchant-dfbd51b6b840eb8346c877a43bf507de0cff035f.tar.gz
merchant-dfbd51b6b840eb8346c877a43bf507de0cff035f.tar.bz2
merchant-dfbd51b6b840eb8346c877a43bf507de0cff035f.zip
Fulfillment URL.
-rw-r--r--src/frontend/fulfillment.php (renamed from src/frontend/fullfillment.php)0
-rw-r--r--src/frontend/pay.php4
-rw-r--r--src/frontend/style.css58
3 files changed, 61 insertions, 1 deletions
diff --git a/src/frontend/fullfillment.php b/src/frontend/fulfillment.php
index f22fd1d8..f22fd1d8 100644
--- a/src/frontend/fullfillment.php
+++ b/src/frontend/fulfillment.php
diff --git a/src/frontend/pay.php b/src/frontend/pay.php
index e200b382..0ec87cf5 100644
--- a/src/frontend/pay.php
+++ b/src/frontend/pay.php
@@ -118,7 +118,9 @@ else
{
$_SESSION['payment_ok'] = true;
http_response_code (301);
- header("Location: http://" . $_SERVER["SERVER_NAME"] . "/fullfillment");
+ $url = (new http\URL("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"))
+ ->mod(array ("path" => "fulfillment.php"), http\Url::JOIN_PATH);
+ header("Location: $url");
die();
}
diff --git a/src/frontend/style.css b/src/frontend/style.css
index 4346b0d0..c2cc51ee 100644
--- a/src/frontend/style.css
+++ b/src/frontend/style.css
@@ -63,3 +63,61 @@ h3 {
h4, h5, h6 {
font-size: 100%;
}
+
+.loader {
+ font-size: 10px;
+ margin: 50px auto;
+ text-indent: -9999em;
+ width: 11em;
+ height: 11em;
+ border-radius: 50%;
+ background: #ffffff;
+ background: -moz-linear-gradient(left, #000 10%, rgba(255, 255, 255, 0) 42%);
+ background: -webkit-linear-gradient(left, #000 10%, rgba(255, 255, 255, 0) 42%);
+ background: -o-linear-gradient(left, #000 10%, rgba(255, 255, 255, 0) 42%);
+ background: -ms-linear-gradient(left, #000 10%, rgba(255, 255, 255, 0) 42%);
+ position: relative;
+ -webkit-animation: load3 1.4s infinite linear;
+ animation: load3 1.4s infinite linear;
+ -webkit-transform: translateZ(0);
+ -ms-transform: translateZ(0);
+ transform: translateZ(0);
+}
+
+.loader:after {
+ background: #fff;
+ width: 75%;
+ height: 75%;
+ border-radius: 50%;
+ content: '';
+ margin: auto;
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+}
+
+@-webkit-keyframes load3 {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
+
+@keyframes load3 {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
+
+