-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
executable file
·272 lines (266 loc) · 15.9 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<!doctype html>
<html>
<head>
<title>TSSSF Card Generator</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/ripples.min.css" rel="stylesheet">
<link href="css/material-wfont.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="cardStyling.css" rel="stylesheet">
<link href="//cdn.rawgit.com/noelboss/featherlight/1.3.2/release/featherlight.min.css" type="text/css" rel="stylesheet" title="Featherlight Styles" />
<style>
.controls {
font-family: cabin;
}
dt{
width:50%!important;
}
dd{
margin-left: calc(50% + 20px)!important;
}
.featherlight-content {
min-width: 300px !important;
max-width: 600px;
}
.preview-lightbox {
display: none;
margin-left: auto;
margin-right: auto;
}
.preview-lightbox img {
margin-left: auto;
margin-right: auto;
}
.preview-lightbox button {
clear: both;
width: 260px;
}
input[readonly].default-cursor {
cursor: text;
}
</style>
</head>
<body>
<div class="cardHelper">
<div class="name"></div>
<div class="effect"></div>
<div class="flavour"></div>
</div>
<div class="preview-lightbox">
<div class="row">
<div class="col-md-6">
<img width="260" class="preview-image">
</div>
<div class="col-md-6">
<ul class="nav nav-pills nav-justified" style="margin-bottom: 15px;">
<li class="active"><a href="#output-download" data-toggle="tab">Save to File</a></li>
<li><a href="#output-imgur" data-toggle="tab">Save to Imgur</a></li>
</ul>
<div class="radio radio-primary">
<label>
<input name="exportType" id="exportTypeBleed" value="bleed" type="radio">
Output bleed
</label>
</div>
<div class="radio radio-primary">
<label>
<input name="exportType" id="exportTypeCropped" value="cropped" checked="" type="radio">
Output cropped
</label>
</div>
<div class="radio radio-primary">
<label>
<input name="exportType" id="exportTypeVassal" value="vassal" type="radio">
Output vassal
</label>
</div>
<div id="output-tabs" class="tab-content">
<div class="tab-pane fade in active" data-tabname="output-download">
<button id="save_download" class="btn btn-primary">Download image</button>
</div>
<div class="tab-pane fade" data-tabname="output-imgur">
<div class="form-group">
<input class="form-control floating-label" type="text" id="imgur-link" placeholder="Imgur Link" required/>
</div>
<div class="checkbox">
<label>
<input type="checkbox" value="linkthis" checked/>Link to this page in the description
</label>
</div>
<button id="save_imgur" class="btn btn-primary">Save to imgur</button>
</div>
</div>
</div>
</div>
</div>
<main class="clearAfter container">
<div class="row">
<div class="col-md-6">
<div class="panel">
<div class="panel-body cardwrapper">
<div class="card pony malefemale unicorn web-grey">
<textarea class="name" placeholder="Card Name" required></textarea>
<div class="image"></div>
<div class="iconCard"></div>
<div class="iconGender">
<button value="female"></button>
<button value="male"></button>
<button value="malefemale"></button>
<button value="G"></button>
</div>
<div class="iconRace">
<button value="unicorn"></button>
<button value="pegasus"></button>
<button value="earthpony"></button>
<button value="alicorn"></button>
<button value="changeling"></button>
<button value="R"></button>
</div>
<div class="type">
<button value="pony"></button>
<button value="ship"></button>
<button value="goal"></button>
<button value="start"></button>
</div>
<input type="text" class="attrs" placeholder="Keywords"/>
<textarea class="effect" placeholder="Body Text" required></textarea>
<textarea class="flavour" placeholder="Flavor Text" required></textarea>
<div class="iconGoal">
<button value="s0"></button>
<button value="s1"></button>
<button value="s2"></button>
<button value="s3"></button>
<button value="s4"></button>
<button value="s2-3"></button>
<button value="s3-4"></button>
</div>
<div class="iconTime">
<button value="time"></button>
<button value=""></button>
</div>
<div class="iconExpansion">
<button value=""></button>
<button value="web-outline"></button>
<button value="web-grey"></button>
<button value="web-white"></button>
</div>
<input type="text" class="copyright" value='WEB CARD; TSSSF by Horrible People Games. Art by Unknown.' required />
</div>
</div>
</div>
</div>
<div class="controls col-md-6">
<div class="panel">
<div class="panel-heading">
<h1>Twilight Sparkle's Secret Shipfic Folder Card Generator</h1>
Frontend by <a href="https://twitter.com/Ripp_">@Ripp_</a> and <a href="https://github.com/coandco">coandco</a>
</div>
<div class="panel-body">
<p>
Feel free to check out and fork the source on <a href="https://github.com/coandco/TSSSF-Frontend">github</a>.
Please open any issues you find on the <a href="https://github.com/coandco/TSSSF-Frontend/issues">bug tracker</a>,
or email any feedback to <a href="mailto:[email protected]">[email protected]</a><br />
<b>Note:</b> The artwork URL must start with one of the following for export to work:<br />
<a href="http://imgur.com" title="Imgur">i.imgur.com</a>,
<a href="http://secretshipfic.booru.org/index.php" title="Secret Shipfic Booru">img.booru.org/secretshipfic</a>, or
<a href="https://derpibooru.org/" title="Derpibooru">derpicdn.net</a>
</p>
<div class="form-group">
<input class="form-control floating-label" type="text" id="image" placeholder="Card Image" required/>
</div>
<button id="save" class="btn btn-success">Save</button>
<button id="new" class="btn btn-primary">New</button>
<button id="export" class="btn btn-warning">Export</button>
<!--<button id="exportTo" class="btn btn-warning">Export to shipbooru</button>-->
<i id="working" class="fa fa-cog fa-spin fa-3x" style="display:none;vertical-align:middle;"></i>
<div id="error" class="alert alert-danger" style="display:none">
<strong></strong>
<em></em>
</div>
<div class="form-group">
<input class="form-control floating-label default-cursor" type="text" readonly id="shortUrl" placeholder="Shortened Link:"/>
</div>
<div class="form-group">
<input class="form-control floating-label default-cursor" type="text" readonly id="longUrl" placeholder="Unshortened Link:"/>
</div>
Symbols and Powers Guide:
<div class=row>
<div class="col-xs-6">
<dl class="dl-horizontal icon-list">
<dt>♂</dt> <dd>{male}</dd>
<dt>♀</dt> <dd>{female}</dd>
<dt>⚤</dt> <dd>{malefemale}</dd>
<dt>❤</dt> <dd>{ship}</dd>
<dt></dt> <dd>{earth}</dd>
<dt></dt> <dd>{unicorn}</dd>
<dt></dt> <dd>{pegasus}</dd>
<dt></dt> <dd>{alicorn}</dd>
<dt></dt> <dd>{postapocalypse}</dd>
</dl>
</div>
<div class="col-xs-6">
<dl class="dl-horizontal">
<!--We will replace the long unweild hints in code before setting them as tooltips-->
<dt data-original-title="{replace}" data-placement="left">(Replace)</dt>
<dd>{replace}</dd>
<dt data-original-title="{swap}" data-placement="left">(Swap)</dt>
<dd>{swap}</dd>
<dt data-original-title="{3swap}" data-placement="left">(3-Way Swap)</dt>
<dd>{3swap}</dd>
<dt data-original-title="{draw}" data-placement="left">(Draw)</dt>
<dd>{draw}</dd>
<dt data-original-title="{goal}" data-placement="left">(New Goal)</dt>
<dd>{goal}</dd>
<dt data-original-title="{search}" data-placement="left">(Search)</dt>
<dd>{search}</dd>
<dt data-original-title="{copy}" data-placement="left">(Copy)</dt>
<dd>{copy}</dd>
<dt data-original-title="{hermaphrodite}" data-placement="left">Counts as ⚤</dt>
<dd>{hermaphrodite}</dd>
<dt data-original-title="{double pony}" data-placement="left">Counts as 2 Ponies</dt>
<dd>{double pony}</dd>
<dt data-original-title="{love poison}" data-placement="left">Love Poison</dt>
<dd>{love poison}</dd>
<dt data-original-title="{keyword change}" data-placement="left">Keyword Change</dt>
<dd>{keyword change}</dd>
<dt data-original-title="{gender change}" data-placement="left">Gender Change</dt>
<dd>{gender change}</dd>
<dt data-original-title="{race change}" data-placement="left">Race Change</dt>
<dd>{race change}</dd>
<dt data-original-title="{timeline change}" data-placement="left">Timeline Change</dt>
<dd>{timeline change}</dd>
<dt data-original-title="{play from discard}" data-placement="left">Play From Discard</dt>
<dd>{play from discard}</dd>
<dt data-original-title="{clone}" data-placement="left">Clone</dt>
<dd>{clone}</dd>
</dl>
</div>
</div>
(Symbols and powers update when you deselect the field. Powers add the whole description to the card. Hover over each power for its full description.)
</div>
</div>
<div class="panel-footer">
<p>This project is not associated with or necessarily endorsed by HORRIBLE PEOPLE PRODUCTIONS, the creators of Twilight Sparkle's Secret Shipfic Folder. <br/>
For more infomation about the game, please visit <a href="http://tsssf-tcg.tumblr.com/">The offical Twilight Sparkle's Secret Shipfic Folder site</a></p>
<p><a href="https://docs.google.com/document/d/1iptdJ5rFmrAOYl0tDVDKOvHhuHCywItf_xqJrClY0GY/edit">Rule updates</a> provided by
<a href="https://childrenofkefentse.com/">Children of Kefentse</a></p>
</div>
</div>
</div>
</main>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//cdn.rawgit.com/noelboss/featherlight/1.3.2/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/ripples.min.js"></script>
<script src="js/material.min.js"></script>
<script src="js/lz-string.min.js"></script>
<script src="maker.js"></script>
<script>
$(document).ready(function() {
$.material.init();
cardSetup()
});
</script>
</body>
</html>