universal 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/get.it.html +1 -1
- data/_includes/head.html +7 -7
- data/_layouts/default.html +0 -1
- data/_layouts/prod.html +0 -1
- data/assets/js/stripe.form.min.js +2 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: befd23816039567b2de05223e6c4ba5bf6f04e82298039199c67561e696ae065
|
|
4
|
+
data.tar.gz: cbb714ce07ac97aa0081f1db20ac032e794a3628f0e22a0d8c184130b0cdafeb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d208e1174208eeed4a6ba6623d23f3291fde83021aa643b2fdabbdddd1c29eaf2078b9c8f70677f31dcf2c2df90b9c1253ce28fce331699560c64027bbb5428
|
|
7
|
+
data.tar.gz: 41618610944b5d56afd6e8482420c3fac0be444b76a5720a93cfc3186c6eaf50752c7642dcb9662942c45fbbcfb2dfac3b522dcab43034235d506b09af9c19ae
|
data/_includes/get.it.html
CHANGED
data/_includes/head.html
CHANGED
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
<!-- Bootstrap and Font Awesome css -->
|
|
15
|
-
<link rel="
|
|
16
|
-
<link rel="
|
|
15
|
+
<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'">
|
|
16
|
+
<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'">
|
|
17
17
|
|
|
18
18
|
<!-- Css animations -->
|
|
19
|
-
<link href="assets/css/animate.css" rel="
|
|
19
|
+
<link href="assets/css/animate.css" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
|
20
20
|
|
|
21
21
|
<!-- Theme stylesheet, if possible do not edit this stylesheet -->
|
|
22
|
-
<link href="assets/css/style.blue.css" rel="
|
|
22
|
+
<link href="assets/css/style.blue.css" rel="preload" id="theme-stylesheet" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
|
23
23
|
|
|
24
24
|
<!-- Custom stylesheet - for your changes -->
|
|
25
|
-
<link href="assets/css/custom.css" rel="
|
|
25
|
+
<link href="assets/css/custom.css" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
|
26
26
|
|
|
27
27
|
<!-- Responsivity for older IE -->
|
|
28
28
|
<!--[if lt IE 9]>
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
<link rel="apple-touch-icon" sizes="152x152" href="assets/img/apple-touch-icon-152x152.png">
|
|
43
43
|
|
|
44
44
|
<!-- owl carousel css -->
|
|
45
|
-
<link href="assets/css/owl.carousel.css" rel="
|
|
46
|
-
<link href="assets/css/owl.theme.css" rel="stylesheet"
|
|
45
|
+
<link href="assets/css/owl.carousel.css" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
|
46
|
+
<link href="assets/css/owl.theme.css" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
|
47
47
|
|
|
48
48
|
</head>
|
data/_layouts/default.html
CHANGED
data/_layouts/prod.html
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var stripe=Stripe('pk_test_NIFiGhJBpoH8kDhbdLTx7TPv');var elements=stripe.elements();var card=elements.create('card',{hidePostalCode:true,style:{base:{iconColor:'#F99A52',color:'#32315E',lineHeight:'34px','::placeholder':{color:'#CFD7DF',padding:0,}},}});card.mount('#card-element');function generatePassword(){var length=8,charset="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",retVal="";for(var i=0,n=charset.length;i<length;++i){retVal+=charset.charAt(Math.floor(Math.random()*n));}return retVal;}function hostingshow(){if(document.getElementById('hosting').checked){document.getElementById('hostingrecap').style.display='';}else{document.getElementById('hostingrecap').style.display='none';}}function setOutcome(result){var successElement=document.querySelector('.success');var errorElement=document.querySelector('.error');successElement.classList.remove('visible');errorElement.classList.remove('visible');if(result.token){Stamplay.init('parsiweb');var userData={email:document.getElementById('email').value,password:generatePassword(),company:document.getElementById('companyId').value,firstname:document.getElementById('firstname').value,lastname:document.getElementById('lastname').value,}
|
|
2
|
+
Stamplay.User.signup(userData).then(function(user){Stamplay.User.login(user).then(function(user){Stamplay.Stripe.createCustomer(user.id).then(function(res){Stamplay.Stripe.createCreditCard(user.id,result.token.id).then(function(creditCard){Stamplay.Webhook("parsiweb_payment").post({userId:user.id,organization_name:document.getElementById('company').value,address:document.getElementById('street').value,zip_code:document.getElementById('zip').value,city:document.getElementById('city').value,country:document.getElementById('country').value,hosting:document.getElementById('hosting').value,}).then(function(res){},function(err){cb("unable to send form data")})},function(err){cb("unable to create customer")})},function(err){cb("unable to create card")})},function(err){cb("unable to login user")})},function(err){cb("unable to signup user")})}else if(result.error){errorElement.textContent=result.error.message;errorElement.classList.add('visible');}}card.on('change',function(event){setOutcome(event);});document.querySelector('form').addEventListener('submit',function(e){e.preventDefault();var options={name:document.getElementById('firstname').value+" "+document.getElementById('lastname').value,address_line1:document.getElementById('company').value,address_line2:document.getElementById('street').value,address_city:document.getElementById('city').value,address_zip:document.getElementById('zip').value,};stripe.createToken(card,options).then(setOutcome);});
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ondrej Svestka
|
|
@@ -139,6 +139,7 @@ files:
|
|
|
139
139
|
- assets/js/stripe.checkout.js
|
|
140
140
|
- assets/js/stripe.form-v2.js
|
|
141
141
|
- assets/js/stripe.form.js
|
|
142
|
+
- assets/js/stripe.form.min.js
|
|
142
143
|
- assets/js/waypoints.min.js
|
|
143
144
|
homepage: https://bootstrapious.com/p/universal-business-e-commerce-template
|
|
144
145
|
licenses:
|