universal 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/banner.html +8 -0
- data/_includes/get.it.html +32 -5
- data/_includes/js.html +2 -0
- data/_layouts/default.html +1 -0
- data/_layouts/prod.html +19 -0
- data/assets/js/stripe.form-v2.js +39 -27
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 311d9c7a4e57d41fae1967bef9ee429ac56c4bf505900d41743065c11b906098
|
4
|
+
data.tar.gz: d309507ff657a3f7c888b61762cbcbf89d3a825dcde954a82e6b31072a8eb894
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac76016e339d46f17de2c86313d7e673133313211e76e36834f32695ffb042e30734d43b710ddd8539c3de39637400ab94cafc3355e272df550980a48f7a460
|
7
|
+
data.tar.gz: ae6cee5e0d5c0697f0bfe4135f40d13b82ebef163deeb51941e9cc98d31defeafe74849a240ce6a7a4f45bb41295cb6951dba00797e69fa4ce90d0ea3a1ab40d
|
data/_includes/banner.html
CHANGED
@@ -3,12 +3,20 @@
|
|
3
3
|
<div class="container">
|
4
4
|
<div class="row">
|
5
5
|
<div class="col-md-12">
|
6
|
+
<br>
|
7
|
+
<br>
|
8
|
+
<br>
|
9
|
+
<br>
|
6
10
|
<br>
|
7
11
|
<br>
|
8
12
|
<h3 class="text-uppercase">{{ site.proposition }}</h3>
|
9
13
|
<p class="lead">{{ site.subproposition }}</p>
|
10
14
|
<br>
|
11
15
|
<br>
|
16
|
+
<br>
|
17
|
+
<br>
|
18
|
+
<br>
|
19
|
+
<br>
|
12
20
|
</div>
|
13
21
|
</div>
|
14
22
|
</div>
|
data/_includes/get.it.html
CHANGED
@@ -17,14 +17,23 @@
|
|
17
17
|
<div id="collapse3a" class="panel-collapse collapse">
|
18
18
|
<div class="panel-body">
|
19
19
|
<script src="https://js.stripe.com/v3/"></script>
|
20
|
-
|
20
|
+
<script src="assets/js/stripe.form-v2.js"></script>
|
21
|
+
<script src="https://drrjhlchpvi7e.cloudfront.net/libs/stamplay-js-sdk/2.1.4/stamplay.min.js"></script>
|
22
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
23
|
+
<script>
|
24
|
+
$(document).ready(function(){
|
25
|
+
$('#hosting').change(function(){
|
26
|
+
$('#hostingrecap').toggle();
|
27
|
+
});
|
28
|
+
});
|
29
|
+
</script>
|
30
|
+
|
21
31
|
<div class="col-md-9 clearfix" id="checkout">
|
22
32
|
|
23
33
|
<div class="box">
|
24
34
|
<form id="payment-form">
|
25
35
|
<input type="hidden" name="token" />
|
26
|
-
<input type="hidden"
|
27
|
-
|
36
|
+
<input type="hidden" id="companyId" value="{{ companyId }}" />
|
28
37
|
<div class="row">
|
29
38
|
<div class="col-sm-6">
|
30
39
|
<div class="form-group">
|
@@ -77,9 +86,27 @@
|
|
77
86
|
</div>
|
78
87
|
</div>
|
79
88
|
</div>
|
89
|
+
<div class="row">
|
90
|
+
<div class="col-sm-6">
|
91
|
+
<div class="form-group">
|
92
|
+
<label for="country">Pays</label>
|
93
|
+
<input type="text" class="form-control" id="country">
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
<div class="row">
|
98
|
+
<div class="col-sm-6">
|
99
|
+
<div>
|
100
|
+
<input type="checkbox" id="hosting" checked>
|
101
|
+
<label for="hosting"> Hébergement (Gratuit la première année)</label>
|
102
|
+
<br>
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
</div>
|
80
106
|
<div class="row">
|
81
107
|
<div class="col-sm-12">
|
82
108
|
<div class="form-group">
|
109
|
+
<br>
|
83
110
|
<p>
|
84
111
|
Votre paiement est sécurisé par notre partenaire Stripe. Vos informations confidentielles ne nous sont pas accessibles et sont conservées sur les serveurs sécurisés de Stripe.
|
85
112
|
</p>
|
@@ -111,7 +138,7 @@
|
|
111
138
|
<!-- /.col-md-9 -->
|
112
139
|
|
113
140
|
<div class="col-md-3">
|
114
|
-
|
141
|
+
|
115
142
|
<div class="box" id="order-summary">
|
116
143
|
<div class="box-header">
|
117
144
|
<h3>Résumé</h3>
|
@@ -125,7 +152,7 @@
|
|
125
152
|
<td>Création du site</td>
|
126
153
|
<th>400.00€</th>
|
127
154
|
</tr>
|
128
|
-
<tr>
|
155
|
+
<tr id="hostingrecap">
|
129
156
|
<td>Hébergement</td>
|
130
157
|
<th>Offert la première année</th>
|
131
158
|
</tr>
|
data/_includes/js.html
CHANGED
@@ -3,12 +3,14 @@
|
|
3
3
|
window.jQuery || document.write('<script src="assets/js/jquery-1.11.0.min.js"><\/script>')
|
4
4
|
</script>
|
5
5
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
|
6
|
+
|
6
7
|
|
7
8
|
<script src="assets/js/jquery.cookie.js"></script>
|
8
9
|
<script src="assets/js/waypoints.min.js"></script>
|
9
10
|
<script src="assets/js/jquery.counterup.min.js"></script>
|
10
11
|
<script src="assets/js/jquery.parallax-1.1.3.js"></script>
|
11
12
|
<script src="assets/js/front.js"></script>
|
13
|
+
|
12
14
|
|
13
15
|
<!-- owl carousel -->
|
14
16
|
<script src="assets/js/owl.carousel.min.js"></script>
|
data/_layouts/default.html
CHANGED
data/_layouts/prod.html
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
{% include head.html %}
|
4
|
+
|
5
|
+
<body>
|
6
|
+
<div id="all">
|
7
|
+
{% include header.html %}
|
8
|
+
{% include banner.html %}
|
9
|
+
{% include offer.html %}
|
10
|
+
{% include testimonials.html %}
|
11
|
+
{% include cta.questions.html %}
|
12
|
+
{% include team.html %}
|
13
|
+
{% include customers.html %}
|
14
|
+
{% include footer.html %}
|
15
|
+
{% include copyright.html %}
|
16
|
+
</div>
|
17
|
+
{% include js.html %}
|
18
|
+
</body>
|
19
|
+
</html>
|
data/assets/js/stripe.form-v2.js
CHANGED
@@ -34,48 +34,60 @@ function setOutcome(result) {
|
|
34
34
|
errorElement.classList.remove('visible');
|
35
35
|
|
36
36
|
if (result.token) {
|
37
|
-
|
37
|
+
|
38
38
|
Stamplay.init('parsiweb');
|
39
39
|
|
40
40
|
var userData = {
|
41
41
|
email : document.getElementById('email').value,
|
42
42
|
password : generatePassword(),
|
43
|
-
|
43
|
+
company: document.getElementById('companyId').value,
|
44
|
+
firstname: document.getElementById('firstname').value,
|
45
|
+
lastname: document.getElementById('lastname').value,
|
44
46
|
}
|
45
47
|
|
46
48
|
Stamplay.User.signup(userData)
|
47
49
|
.then(function(user) {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
// Appel sur le webhook avec les data en question
|
55
|
-
Stamplay.Webhook("parsiweb_payment")
|
56
|
-
.post({
|
57
|
-
firstname: document.getElementById('firstname').value
|
58
|
-
lastname: document.getElementById('lastname').value,
|
59
|
-
user.id,
|
60
|
-
organisation_name: document.getElementById('company').value,
|
61
|
-
address: document.getElementById('street').value,
|
62
|
-
city: document.getElementById('city').value,
|
63
|
-
zip: document.getElementById('zip').value,
|
64
|
-
})
|
65
|
-
.then(function(res) {
|
50
|
+
Stamplay.User.login(user)
|
51
|
+
.then(function(user) {
|
52
|
+
Stamplay.Stripe.createCustomer(user.id)
|
53
|
+
.then(function(res) {
|
54
|
+
Stamplay.Stripe.createCreditCard(user.id, result.token.id)
|
55
|
+
.then(function(creditCard) {
|
66
56
|
// success
|
57
|
+
// Appel sur le webhook avec les data en question
|
58
|
+
Stamplay.Webhook("parsiweb_payment")
|
59
|
+
.post({
|
60
|
+
userId : user.id,
|
61
|
+
organization_name: document.getElementById('company').value,
|
62
|
+
address: document.getElementById('street').value,
|
63
|
+
zip_code: document.getElementById('zip').value,
|
64
|
+
city: document.getElementById('city').value,
|
65
|
+
country: document.getElementById('country').value,
|
66
|
+
hosting: document.getElementById('hosting').value,
|
67
|
+
})
|
68
|
+
.then(function(res) {
|
69
|
+
// success
|
70
|
+
}, function(err) {
|
71
|
+
// error
|
72
|
+
cb("unable to send form data")
|
73
|
+
})
|
67
74
|
}, function(err) {
|
68
75
|
// error
|
76
|
+
cb("unable to create customer")
|
69
77
|
})
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
78
|
+
}, function(err){
|
79
|
+
// error
|
80
|
+
cb("unable to create card")
|
81
|
+
})
|
82
|
+
}, function(err) {
|
83
|
+
// error
|
84
|
+
cb("unable to login user")
|
85
|
+
})
|
76
86
|
}, function(err) {
|
77
|
-
|
87
|
+
// error
|
88
|
+
cb("unable to signup user")
|
78
89
|
})
|
90
|
+
|
79
91
|
} else if (result.error) {
|
80
92
|
errorElement.textContent = result.error.message;
|
81
93
|
errorElement.classList.add('visible');
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: universal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondrej Svestka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- _includes/testimonials.html
|
79
79
|
- _layouts/.DS_Store
|
80
80
|
- _layouts/default.html
|
81
|
+
- _layouts/prod.html
|
81
82
|
- assets/.DS_Store
|
82
83
|
- assets/css/.DS_Store
|
83
84
|
- assets/css/animate.css
|