-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpopup-with-auth.html
More file actions
188 lines (153 loc) · 7.89 KB
/
popup-with-auth.html
File metadata and controls
188 lines (153 loc) · 7.89 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!doctype html>
<html style="max-height: 80vh; overflow: auto;">
<head>
<meta charset='utf-8'>
<!-- <link href="https://fonts.googleapis.com/css2?family=Baloo+Thambi+2" rel="stylesheet"> -->
<link rel="stylesheet" type="text/css" href="css/popup.css">
</head>
<body>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KVTFCZ4"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- HEADER -->
<div class="header">
<div id="go-back" style="display: none;"><span class="arrow arrow-left"></span></div>
line numbers <span>for GDocs</span>
<div id="close-popup" class="close-button">x</div>
</div>
<!-- LANDING - MAIN CONTENT 1 -->
<div id="landing">
<div class="content">
<section id="loading">
Loading...
</section>
<section id="signed-out-content" style="display: none;">
<div class="active-banner">
Line Numbers is active, but some features are not enabled.
</div>
<div class="ask-to-login-message">
<p>Sign in to keep your settings backed up!</p>
</div>
<button id="g-signin" type="button" class="google-button">
<span class="google-button__icon">
<svg viewBox="0 0 366 372" xmlns="http://www.w3.org/2000/svg"><path d="M125.9 10.2c40.2-13.9 85.3-13.6 125.3 1.1 22.2 8.2 42.5 21 59.9 37.1-5.8 6.3-12.1 12.2-18.1 18.3l-34.2 34.2c-11.3-10.8-25.1-19-40.1-23.6-17.6-5.3-36.6-6.1-54.6-2.2-21 4.5-40.5 15.5-55.6 30.9-12.2 12.3-21.4 27.5-27 43.9-20.3-15.8-40.6-31.5-61-47.3 21.5-43 60.1-76.9 105.4-92.4z" id="Shape" fill="#EA4335"/><path d="M20.6 102.4c20.3 15.8 40.6 31.5 61 47.3-8 23.3-8 49.2 0 72.4-20.3 15.8-40.6 31.6-60.9 47.3C1.9 232.7-3.8 189.6 4.4 149.2c3.3-16.2 8.7-32 16.2-46.8z" id="Shape" fill="#FBBC05"/><path d="M361.7 151.1c5.8 32.7 4.5 66.8-4.7 98.8-8.5 29.3-24.6 56.5-47.1 77.2l-59.1-45.9c19.5-13.1 33.3-34.3 37.2-57.5H186.6c.1-24.2.1-48.4.1-72.6h175z" id="Shape" fill="#4285F4"/><path d="M81.4 222.2c7.8 22.9 22.8 43.2 42.6 57.1 12.4 8.7 26.6 14.9 41.4 17.9 14.6 3 29.7 2.6 44.4.1 14.6-2.6 28.7-7.9 41-16.2l59.1 45.9c-21.3 19.7-48 33.1-76.2 39.6-31.2 7.1-64.2 7.3-95.2-1-24.6-6.5-47.7-18.2-67.6-34.1-20.9-16.6-38.3-38-50.4-62 20.3-15.7 40.6-31.5 60.9-47.3z" fill="#34A853"/></svg>
</span>
<span class="google-button__text">Sign in with Google</span>
</button>
</section>
<section id="signed-in-non-premium-content" style="display: none;">
<div class="active-banner">
Line Numbers is active, but premium features are disabled!
</div>
<div class="support-description">
Please consider going <a target="_blank" href="https://linenumbers.app/#/premium">Premium</a> to support the development and running costs of this extension.
</div>
<div class="premium-description">
Go Premium now and unlock the following:
<ul>
<!-- TODO: Make these features link to a description of them on the website -->
<!-- <li><a target="_blank" href="">Enable on more than 3 documents at once</a></li> -->
<li><a target="_blank" href="https://linenumbers.app/#/premium">Advanced settings for more customization</a></li>
<li><a target="_blank" href="https://linenumbers.app/#/premium">Sync your settings across all your devices</a></li>
<li><a target="_blank" href="https://linenumbers.app/#/premium">Sync line numbering on shared documents</a></li>
</ul>
</div>
<button id="go-premium" class="go-premium-btn">
<span class="go-premium-btn-text">🚀 Go Premium</span>
</button>
</section>
<section id="premium-content" style="display: none;">
<div class="active-banner">
Line Numbers is active with all premium features enabled!
</div>
<div class="thank-you-message">
<p>You have an active Premium subscription!</p>
<p>Thank you for your support!</p>
</div>
<button id="manage-subscription-btn" class="manage-subscription-btn">
<span class="manage-subscription-btn-text">Manage Subscription</span>
</button>
</section>
</div>
</div>
<!-- CHECKOUT - MAIN CONTENT 2 -->
<div id="checkout" class="vertical-flex" style="display: none;">
<div class="checkout-title">
Help support the development <br />and costs of the extension!
</div>
<div class="checkout-question">
How much do you want to pay per year?
</div>
<div class="amount-selection">
<span class="currency">$</span>
<input id="subscription-amount" class="amount-input" name="amount" value="5" min="1" max="1000" type="number">
<span>/ year</span>
</div>
<button id="checkout-btn" class="checkout-btn">
<span class="checkout-btn-text">Support</span>
</button>
<div class="checkout-subscript">
You can cancel and/or update your subscription at anytime!
</div>
</div>
<!-- MANAGE SUBSCRIPTION - MAIN CONTENT 3 -->
<div id="manage-subscription" style="display: none;">
<div id="active-subscription-content" class="vertical-flex" style="display: none;">
<div class="checkout-title">
Thank you for your support!
</div>
<div class="checkout-question">
Want to change how much you pay for your premium subscription?
</div>
<div class="checkout-subscript" style="margin-bottom: 15px;">
This change will only be applied to your next billing cycle.
</div>
<div class="amount-selection" style="padding-top: 0;">
<span class="currency">$</span>
<input id="subscription-update-amount" class="amount-input" name="amount" value="5" min="1" max="1000" type="number">
<span>/ year</span>
</div>
<button id="update-subscription-btn" class="update-subscription-btn">
<span class="update-subscription-btn-text">Update Subscription</span>
</button>
<hr />
<div class="checkout-question">
Looking to cancel your subscription?
</div>
<div class="checkout-subscript" style="margin-bottom: 15px;">
You will still have access to all the premium features until the end of your current subscription cycle.
</div>
<button id="cancel-subscription-btn" class="cancel-subscription-btn">
<span class="cancel-subscription-btn-text">Cancel Subscription</span>
</button>
</div>
<div id="canceled-subscription-content" class="vertical-flex" style="display: none;">
<div class="checkout-question">
Restart your subscription now?
</div>
<div class="checkout-subscript" style="margin-bottom: 15px;">
Your subscription has been canceled.<br />
Restart it now to make sure you don't loose your premium features!
</div>
<button id="restart-subscription-btn" class="restart-subscription-btn">
<span class="restart-subscription-btn-text">Restart Subscription</span>
</button>
</div>
</div>
<!-- FOOTER -->
<div class="footer">
<a target="_blank" href="https://linenumbers.app/#/welcome">Quick Start Guide</a> |
<a target="_blank" href="https://linenumbers.app/#/faq">Frequently Asked Questions</a>
<br />
<a target="_blank" href="https://linenumbers.app/#/premium">Premium Features</a> |
<a target="_blank" href="https://linenumbers.app/#/settings">Available Settings</a> |
<a target="_blank" href="https://linenumbers.app/#/privacy">Privacy Policy</a>
<br />
<a target="_blank" href="https://linenumbers.app/#/contact">Report a Problem</a> |
<a target="_blank" href="https://linenumbers.app/#/contact">Contact the Developer</a>
</div>
<script type="module" src="js/popup.js"></script>
<!-- Load analytics after popup.js for performance reasons -->
<script type="text/javascript" src="js/gtm.js"></script>
<script type="module" src="js/popup-metrics.js"></script>
</body>
</html>