-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (68 loc) · 2.1 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="style.css" />
<title>Gumroad - Widgets</title>
</head>
<body>
<div class="wrapper">
<h1>Gumroad overlay & embeddable widget generator</h1>
<div id="product-link-input" class="component">
<p>Link to product</p>
<input
type="text"
name="product-link-input"
placeholder="something like https://gum.co/demo"
/>
</div>
<div id="display-style-chooser" class="component">
<p>Choose display style</p>
<label for="button-style">Display an Overlay</label>
<input
type="radio"
name="display-style"
value="overlay"
id="button-style"
checked
/>
<label for="embed-style">Embed the checkout form</label>
<input
type="radio"
name="display-style"
value="embed"
id="embed-style"
/>
</div>
<div id="button-text-input" class="component">
<p>Button text</p>
<input type="text" name="button-text" placeholder="Button text" />
</div>
<p>Copy and paste this code into your website</p>
<div id="widget-code-sinippet" class="component">
<textarea
name="widget-code-sinippet"
id="widget-code-sinippet"
readonly
>
your code snippet will show up here</textarea
>
<div class="preview-wrapper">
<p>This is how it will look like</p>
<div id="preview"></div>
</div>
</div>
</div>
<!-- jQuery -->
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"
></script>
<!-- Flight release -->
<script src="https://flightjs.github.io/release/latest/flight.min.js"></script>
<script src="widget-generator.js"></script>
</body>
</html>