Skip to content

Commit b84a79d

Browse files
committed
jquery.org/join: Added stripe payment form
1 parent c11d261 commit b84a79d

File tree

6 files changed

+1338
-4
lines changed

6 files changed

+1338
-4
lines changed

themes/jquery.org/images/icn-fan.png

7.45 KB
Loading
5.21 KB
Loading

themes/jquery.org/images/icn-hero.png

8.96 KB
Loading

themes/jquery.org/style.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ ul.flex-direction-nav {
188188
.member-level-icon {
189189
display: block;
190190
position: absolute;
191-
top: 90px;
191+
top: 60px;
192192
right: -50px;
193193

194194
width: 225px;
@@ -198,15 +198,15 @@ ul.flex-direction-nav {
198198
}
199199

200200
.member-level-icon.fan {
201-
background: url(images/icn-fan.png) center top;
201+
background: url(images/icn-fan.png) center top no-repeat;
202202
}
203203

204204
.member-level-icon.friend {
205-
background: url(images/icn-friend.png) center top;
205+
background: url(images/icn-friend.png) center top no-repeat;
206206
}
207207

208208
.member-level-icon.hero {
209-
background: url(images/icn-hero.png) center top;
209+
background: url(images/icn-hero.png) center top no-repeat;
210210
}
211211

212212

@@ -280,6 +280,10 @@ a.icon-search::before {
280280

281281
}
282282

283+
.member-level form a.button {
284+
clear: none;
285+
}
286+
283287

284288
.choose-gifts {
285289
background-color: #378a9b;

themes/jquery/js/main.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,21 @@ $(function() {
8989
var gift = $( this ).nextAll(".choose-gifts").slideToggle();
9090
gifts.not( gift ).slideUp();
9191
});
92+
93+
$(".member-level .pay").on( "click", function() {
94+
var a = $(this)
95+
StripeCheckout.open({
96+
key: 'pk_NjMf2QUPtR28Wg0xmyWtepIzUziVr',
97+
image: a.data("image"),
98+
name: a.data("name"),
99+
description: a.data("description"),
100+
panelLabel: a.data("panel-label"),
101+
amount: a.data("amount"),
102+
token: function(res) {
103+
alert(res.id);
104+
}
105+
});
106+
});
92107
})();
93108
});
94109

0 commit comments

Comments
 (0)