forked from gramener/comicgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
189 lines (171 loc) · 9.58 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
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
189
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Comicgen: Comic Creator</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Create comics for your website or app with a JavaScript library. Choose a character, angle, emotion and pose. Size the image. Embed in your page.">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:site" content="Gramener">
<meta property="og:url" content="https://gramener.com/comicgen/">
<meta property="og:type" content="website">
<meta property="og:title" content="Comicgen: Comic Creator">
<meta property="og:description" content="Create comics for your website or app with a JavaScript library. Choose a character, angle, emotion and pose. Size the image. Embed in your page.">
<meta property="og:image" content="https://gramener.com/comicgen/docs/dee-and-dey-panels.png">
<style>
/* Ensure that this is the first rule in the first stylesheet. Used by JS */
.target-container { background-color: #ffffff; }
/* The rest can be any styles */
.target-container { overflow: hidden; position: relative; }
#code { white-space: pre-wrap; }
img { max-width: 100%; }
.attr { display: inline-block; }
h3 { color: var(--danger); }
</style>
<link href="https://fonts.googleapis.com/css?family=Neucha" rel="stylesheet">
<link href="https://learn.gramener.com/ui/bootstraptheme.css?font-family-base=Neucha%2CChalkboard%2CComic%20Sans%20MS%2Csans-serif&dark=%23675b9e&primary=%238b8ac1" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/styles/github.css">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-42126862-1"></script>
<script>
window.dataLayer = window.dataLayer || []
function gtag() { window.dataLayer.push(arguments) }
gtag('js', new Date())
gtag('config', 'UA-42126862-1')
</script>
</head>
<body class="d-flex flex-column h-full">
<nav class="navbar navbar-expand-md navbar-dark bg-dark text-light border-bottom body-color">
<div class="container">
<a class="navbar-brand font-weight-bold" href="#">Comicgen</a>
<button class="navbar-toggler d-lg-none" type="button" data-toggle="collapse" data-target="#collapsibleNavId" aria-controls="collapsibleNavId"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavId">
<ul class="navbar-nav mr-auto">
<li class="navbar-item"><i class="far fa-smile"></i></li>
</ul>
<ul class="navbar-nav">
<a class="navbar-brand" href="https://gramener.com/" target="_blank" rel="noopener">
<img src="docs/gramener.png" alt="Gramener" height="40">
</a>
</ul>
</div>
</div>
</nav>
<div class="container my-3">
<ul class="nav nav-tabs" id="comic-tab" role="tablist">
<li class="nav-item"><a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Home</a></li>
<li class="nav-item"><a class="nav-link" id="usage-tab" data-toggle="tab" href="#usage" role="tab" aria-controls="usage" aria-selected="false">Usage</a></li>
<li class="nav-item"><a class="nav-link" id="api-tab" data-toggle="tab" href="#api" role="tab" aria-controls="api" aria-selected="false">API</a></li>
<li class="nav-item"><a class="nav-link" id="vision-tab" data-toggle="tab" href="#vision" role="tab" aria-controls="vision" aria-selected="false">Vision</a></li>
<li class="nav-item"><a class="nav-link" id="gallery-tab" data-toggle="tab" href="#gallery" role="tab" aria-controls="gallery" aria-selected="false">Gallery</a></li>
<li class="nav-item"><a class="nav-link" id="development-tab" data-toggle="tab" href="#development" role="tab" aria-controls="development" aria-selected="false">Development</a></li>
<li class="nav-item"><a class="nav-link" id="design-tab" data-toggle="tab" href="#design" role="tab" aria-controls="design" aria-selected="false">Design</a></li>
<li class="nav-item"><a class="nav-link" id="privacy-tab" data-toggle="tab" href="#privacy" role="tab" aria-controls="privacy" aria-selected="false">Privacy</a></li>
</ul>
<div class="tab-content" id="comic-tab-content">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="row my-4">
<div class="col-xl-4">
<h1>Make your own comic</h1>
<md data-target="introduction"></md>
</div>
<div class="col-xl-8">
<form class="selector form-inline">
<div class="comicgen-attrs d-inline-block"></div>
<input name="x" type="hidden" value="0">
<input name="y" type="hidden" value="0">
<input name="scale" type="hidden" value="1">
<input name="width" type="hidden" value="500">
<input name="height" type="hidden" value="600">
</form>
<div class="target-container my-2">
<div class="target"></div>
</div>
<div class="mb-3">
<button type="button" class="btn btn-sm btn-light border download" data-clipboard-target="#code">
<i class="far fa-arrow-alt-circle-down"></i> Save image
</button>
<button type="button" class="btn btn-sm btn-light border copy" data-clipboard-target="#code">
<i class="far fa-copy"></i> Copy code
</button>
<label class="mx-1">
Background <input type="color" value="#ffffff" class="btn btn-light border p-0 bg-color">
</label>
<a class="btn btn-sm btn-light border urlfilter reset" data-target="#" href="#">
<i class="fa fa-arrows-alt"></i> Reset position
</a>
<span>Pinch to zoom. Pan to move</span>
</div>
<script type="text/html" class="codegen">
<pre id="code"><g class="comicgen"<% _.each(q, function(v, k) { %> <%- k %>="<%- v %>"<% }) %>></g></pre>
</script>
</div><!-- .col -->
</div><!-- .row -->
</div><!-- .tab-pane -->
<div class="tab-pane fade" id="usage" role="tabpanel" aria-labelledby="usage-tab">
<md data-target="usage"></md>
</div>
<div class="tab-pane fade" id="api" role="tabpanel" aria-labelledby="api-tab">
<md data-target="api"></md>
</div>
<div class="tab-pane fade" id="vision" role="tabpanel" aria-labelledby="vision-tab">
<md data-target="vision"></md>
</div>
<div class="tab-pane fade" id="gallery" role="tabpanel" aria-labelledby="gallery-tab">
<md data-target="gallery"></md>
</div>
<div class="tab-pane fade" id="development" role="tabpanel" aria-labelledby="development-tab">
<md data-target="development"></md>
</div>
<div class="tab-pane fade" id="design" role="tabpanel" aria-labelledby="design-tab">
<md data-target="design"></md>
<md data-target="credits"></md>
</div>
<div class="tab-pane fade" id="privacy" role="tabpanel" aria-labelledby="privacy-tab">
<md data-target="privacypolicy"></md>
</div>
</div><!-- .container -->
<md data-target="social"></md>
</div>
<footer class="mt-auto text-center pt-3 bg-light border-top">
<p>Made by <a href="https://gramener.com/">Gramener</a>.
Code released under the <a href="https://opensource.org/licenses/MIT">MIT License</a>.
Images under <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY</a>
or <a href="https://creativecommons.org/choose/zero/">CC0</a>
</p>
</footer>
<script type="text/html" class="arrows">
<div class="d-flex justify-content-between">
<button class="btn btn-xs move-left" type="button" title="Move layer below" tabindex="-1"><i class="fa fa-xs fa-arrow-left"></i></button>
<span><%= key %></span>
<button class="btn btn-xs move-right" type="button" title="Move layer above" tabindex="-1"><i class="fa fa-xs fa-arrow-right"></i></button>
</div>
</script>
<datalist id="slider-ticks">
<option>0</option>
<option>0.25</option>
<option>0.5</option>
<option>0.75</option>
<option>1</option>
</datalist>
<script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/[email protected]/lodash.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/g1.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/showdown.min.js"></script>
<script src="https://unpkg.com/[email protected]/highlight.pack.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/clipboard.min.js"></script>
<script src="https://unpkg.com/[email protected]/plain-draggable.min.js"></script>
<script src="https://unpkg.com/[email protected]/lib/saveSvgAsPng.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://d3js.org/d3-color.v1.min.js"></script>
<script src="https://d3js.org/d3-interpolate.v1.min.js"></script>
<script src="dist/comicgen.min.js"></script>
<script src="docs/script.js"></script>
</body>
</html>