-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathupgrade.html
120 lines (104 loc) · 4.3 KB
/
upgrade.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<link rel="stylesheet" href="{{static}}/css/login.css{{cacheBust}}">
<link rel="stylesheet" type="text/css" href="{{static}}/css/upgrade.css{{cacheBust}}"/>
{{#if_all is_production analyticsId testUnlimited}}
<script>
ga('send', 'event', 'experiment', 'testUnlimited');
</script>
{{/if_all}}
<div class="upgrade-wrapper">
<div class="upgrade-form-wrapper form-container">
<h1>Pro Upgrade</h1>
<form action="/upgrade" method="post" id="payment-form">
{{#unless user}}
<div class="upgrade-details">
<h3>1. Sign in</h3>
<div class="upgrade-signin-wrapper">
<a class="btn-github" href="{{root}}/auth/github">
<img src="{{static}}/images/github-32.png" alt="">
Login or Register via GitHub
</a>
<span class="login-group">
or
<a class="btn-login" href="{{root}}/login" id="btn-login">sign in with your email address</a>
</span>
</div>
<div class="form-container login" id="form-login">
<div class="tabs">
<a class="tab register" href="{{root}}/register">
<span>New to JS Bin</span>
Register
</a>
<a class="tab login" href="#">
<span>Existing users</span>
Login
</a>
</div>
<fieldset class="upgrade-fieldset register" disabled="disabled">
{{> register}}
<input type="hidden" value="1" name="register">
</fieldset>
<fieldset class="upgrade-fieldset login">
{{> login}}
<input type="hidden" value="1" name="login">
</fieldset>
<div class="upgrade-next">
<input type="button" value="next" class="upgrade-details-button upgrade-details-next">
</div>
<div class="upgrade-center">
<span class="login-group">
or
<a class="btn-login" href="{{root}}/auth/github">sign in via GitHub</a>
</span>
</div>
</div>
</div>
{{/unless}}
<div class="upgrade-details">
{{#unless user}}<h3>2. Payment</h3>{{/unless}}
<div class="upgrade-payment-wrapper">
{{> payment}}
</div>
</div>
</form>
</div>
<div class="upgrade-feature-wrapper">
<h1>{{#if testUnlimited}}Pro {{/if}}Features</h1>
{{> features}}
</div>
{{#if tweets}}
<h3 class="tweets">What the web is saying about JS Bin</h3>
<div class="upgrade-tweets-wrapper">
{{#each tweets}}
{{> tweet}}
{{/each}}
</div>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
{{/if}}
<!--
<div class="upgrade-info-wrapper">
<h2>Your Pro accounts keep JS Bin 100% free for education</h2>
<p>Aside from the features listed above, your pro account will help keep JS Bin 100% free for educational uses (schools, universities and community training). Those good people can get free training accounts so they can continue to help young students and new-comers with JS Bin in their tool belt.</p>
<p>Education is dear to our hearts, and pro accounts allows us to keep developing JS Bin with features we want to see land, and to help fix issues that cause problems for the general users and those students stuck working with limited access to technology (like the version of JS Bin that works without a web connection and entirely from a usb stick with zero install).</p>
<p><a href="http://github.com/jsbin/jsbin/issues/new" class="issue">Problem? Feedback? Let us know!</a></p>
</div>
</div>
-->
<!-- <h2> Supporters </h2>
<div class="backers">
{{#each backersList}}
<a href="{{url}}">
<img class="backer-img" src="{{image}}"/>
</a>
{{/each}}
</div>
-->
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
<script type="text/javascript">
// This identifies your website in the createToken call below
Stripe.setPublishableKey('{{stripe.key}}');
// ...
</script>
<script src="{{static}}/js/vendor/polyfills.js{{cacheBust}}"></script>
<script src="{{static}}/js/vendor/jquery-1.11.0.min.js"></script>
<script src="{{static}}/js/vendor/jquery.payment.js{{cacheBust}}"></script>
<script src="{{static}}/js/account/pay.js{{cacheBust}}"></script>