universal 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/get.it.html +2 -2
- data/_includes/head.html +2 -24
- data/assets/js/stripe.form-v2.js +4 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d388860c9d5d7125adb0491c3ea3f289bdf07902e33408728a651ab05efa7b7
|
4
|
+
data.tar.gz: e00ee7106b605bcd1bb152070a6b4f872fef60df3b9fb3e3b148367a64f13b9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a195465864b1fcd5197dae0d1983699829620c1a61ff039532786603e51157112b1d13bc1dd7d4cdddf4e27e2ab009f2a7f94756c0fa0be60f2295bc65b41bcc
|
7
|
+
data.tar.gz: dbd0c928511903d0382b195f78391a77f5636b7358ddda6ca7e291cd18528c2bc4510a97f96609915ff53089de4cc5d9bef981ed0a2c57f932450658719d4ec4
|
data/_includes/get.it.html
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
<div class="box">
|
29
29
|
<form id="payment-form">
|
30
30
|
<input type="hidden" name="token" />
|
31
|
-
<input type="hidden" id="
|
31
|
+
<input type="hidden" id="companyId" value="{{ site.companyId }}" />
|
32
32
|
<div class="row">
|
33
33
|
<div class="col-sm-6">
|
34
34
|
<div class="form-group">
|
@@ -167,7 +167,7 @@
|
|
167
167
|
|
168
168
|
<!-- /.col-md-3 -->
|
169
169
|
<div class="col-md-12 clearfix">
|
170
|
-
<button class="btn btn-template-main" type="submit">Je règle ma commande</button>
|
170
|
+
<button class="btn btn-template-main" type="submit" id="pay">Je règle ma commande</button>
|
171
171
|
</div>
|
172
172
|
</div>
|
173
173
|
<br>
|
data/_includes/head.html
CHANGED
@@ -6,33 +6,17 @@
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7
7
|
<meta name="description" content="{{ site.description }}">
|
8
8
|
<meta name="author" content="{{ site.author }}">
|
9
|
-
|
10
9
|
|
11
10
|
<!-- Bootstrap and Font Awesome css -->
|
12
11
|
<link rel="preload" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
13
12
|
<link rel="preload" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
14
|
-
|
15
|
-
<!--<link href="assets/css/animate.css" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">-->
|
16
|
-
|
17
|
-
<!-- Theme stylesheet, if possible do not edit this stylesheet -->
|
18
|
-
<!-- <link href="assets/css/style.blue.css" rel="preload" id="theme-stylesheet" as="style" onload="this.onload=null;this.rel='stylesheet'">-->
|
19
|
-
<link rel="preload" href="assets/css/combined.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
20
|
-
<!--<link rel="stylesheet" href="assets/css/combined.css">-->
|
13
|
+
<link rel="preload" href="assets/css/combined.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
21
14
|
<style type="text/css">
|
22
15
|
.bar.background-image-fixed-1 {
|
23
16
|
background: url("../img/fixed-background-1.jpg") center top / cover no-repeat fixed;
|
24
17
|
}
|
25
18
|
</style>
|
26
19
|
|
27
|
-
<!-- Custom stylesheet - for your changes -->
|
28
|
-
<!-- <link href="assets/css/custom.css" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
29
|
-
|
30
|
-
<!-- Responsivity for older IE -->
|
31
|
-
<!--[if lt IE 9]>
|
32
|
-
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
33
|
-
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
34
|
-
<![endif]-->
|
35
|
-
|
36
20
|
<!-- Favicon and apple touch icons-->
|
37
21
|
<link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon">
|
38
22
|
<link rel="apple-touch-icon" href="assets/img/apple-touch-icon.png">
|
@@ -43,16 +27,10 @@
|
|
43
27
|
<link rel="apple-touch-icon" sizes="120x120" href="assets/img/apple-touch-icon-120x120.png">
|
44
28
|
<link rel="apple-touch-icon" sizes="144x144" href="assets/img/apple-touch-icon-144x144.png">
|
45
29
|
<link rel="apple-touch-icon" sizes="152x152" href="assets/img/apple-touch-icon-152x152.png">
|
46
|
-
|
47
|
-
<!-- owl carousel css -->
|
48
|
-
<!--<link href="assets/css/owl.carousel.css" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
49
|
-
<!--<link href="assets/css/owl.theme.css" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
30
|
+
|
50
31
|
<noscript>
|
51
32
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
|
52
33
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
|
53
|
-
<!-- <link rel="stylesheet" href="assets/css/custom.css">
|
54
|
-
<!-- <link rel="stylesheet" href="assets/css/owl.carousel.css">
|
55
|
-
<!-- <link rel="stylesheet" href="assets/css/owl.theme.css">
|
56
34
|
<link rel="stylesheet" href="assets/css/combined.css">
|
57
35
|
</noscript>
|
58
36
|
|
data/assets/js/stripe.form-v2.js
CHANGED
@@ -40,8 +40,6 @@ function hostingshow() {
|
|
40
40
|
function setOutcome(result) {
|
41
41
|
var successElement = document.getElementById('success');
|
42
42
|
var errorElement = document.getElementById('fail');
|
43
|
-
successElement.classList.remove('visible');
|
44
|
-
errorElement.classList.remove('visible');
|
45
43
|
|
46
44
|
if (result.token) {
|
47
45
|
|
@@ -101,8 +99,7 @@ function setOutcome(result) {
|
|
101
99
|
})
|
102
100
|
|
103
101
|
} else if (result.error) {
|
104
|
-
errorElement.
|
105
|
-
errorElement.classList.add('visible');
|
102
|
+
errorElement.style.display = ''
|
106
103
|
}
|
107
104
|
}
|
108
105
|
|
@@ -110,7 +107,8 @@ card.on('change', function(event) {
|
|
110
107
|
setOutcome(event);
|
111
108
|
});
|
112
109
|
|
113
|
-
document.
|
110
|
+
var payment = document.getElementById('pay');
|
111
|
+
payment.onclick = function(e) {
|
114
112
|
e.preventDefault();
|
115
113
|
var options = {
|
116
114
|
name: document.getElementById('firstname').value + " " + document.getElementById('lastname').value,
|
@@ -120,4 +118,4 @@ document.querySelector('form').addEventListener('submit', function(e) {
|
|
120
118
|
address_zip: document.getElementById('zip').value,
|
121
119
|
};
|
122
120
|
stripe.createToken(card, options).then(setOutcome);
|
123
|
-
}
|
121
|
+
};
|