-
Notifications
You must be signed in to change notification settings - Fork 9
/
start.html
230 lines (199 loc) · 10.2 KB
/
start.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
<html>
<head>
<title>BadgeIt - Badge Generator for Events, Conferences|Start</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="The smart way to generate badges for your events">
<script src="resources/js/jquery.js"></script>
<script src="https://apis.google.com/js/client.js"></script>
<script src="resources/js/jquery-csv.js"></script>
<script src="resources/js/store.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<script src="http://www.google.com/jsapi?key=AIzaSyD8CT73BsKLu43ZiU6jv-RCSOhF406XYy8"></script>
<script src="resources/js/demo.js"></script>
<script src="resources/js/jquery.leanModal.min.js"></script>
<script src="resources/js/dataProcess.js"></script>
<script src="resources/js/start.js"></script>
<script src="resources/js/analytics.js"></script>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css" type="text/css">
<link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.css" type="text/css">
<link rel="stylesheet" href="bootstrap/css/head.css" type="text/css">
<style>
#holder { background-color:#FAFAFA; border: 2px dotted #ccc; width: 100px !important; height: 80px !important; margin: 5px auto; margin-top:5px; }
#holderCaption { margin-left:auto; margin-right:auto; width:50px; margin-top:5px;}
#holder.hover { border: 2px dashed #333; }
fieldset { margin-left:20px; width : 500px; }
img { max-width:100px;}
select {width:20px !important; border:none !important; }
select:focus {border:none !important; box-shadow:none !important; -webkit-box-shadow: none !important; outline:none !important;}
#badgeinput { margin-top:2%;width:600px; margin-left:auto; margin-bottom:5%; margin-right:auto; }
legend { font-size:17px;margin-left:25px;margin-bottom:0px;}
legend i { margin-top:2px;}
#lockar {cursor:pointer;margin-left:30px;}
#projectName {font-family:Rancho;text-align:center;margin-left:150px;border-color:white; font-size:30px; box-shadow:none; height:42px;}
#errorholder {width:500px; text-align:center;}
.cpointer {cursor:pointer;}
.invi {display:none;}
.tb_height{height:25px;}
.left {float:left;}
.right {float:right; margin-right:100px;}
.mtop {margin-top:10px}
.action-form{width:400px;}
.mleft{margin-left:5px;}
#lean_overlay { position: fixed; z-index:100; top: 0px; left: 0px; height:100%; width:100%; background: #000; display: none;}
#waitForProject {display: none; position: fixed; opacity: 1; z-index: 101; left: 50%; margin-left: -202px; top: 200px; width:400px; height: 175px; background: whitesmoke; border-radius: 10px; margin: 20px; text-align: center; padding-top: 50px;}
#newProject{display: none;}
#backButton{cursor:pointer; position:relative;}
.bigButton{width: 65px; height: 80px; color: black; padding: 17px 35px; cursor: pointer; margin: 10px; font-size: 75px; font-family: Rancho;}
#goToNewProject{background-color: lightgreen; padding: 17px 51px;}
#goToOpenProject{background-color: lightblue; padding: 17px 41px;}
#goToDemo{background-color: lightgoldenrodyellow;}
#navSpan{margin-right: auto; margin-left: auto; width: 700px; margin-top: 15%;}
#smallFont{font-size: 10px;}
</style>
</head>
<body>
<div id="social"></div>
<div id="headerContainer">
<header>
<h1 id="title-large"> Badge it </h1>
<div style="float:right;">
<ul class="nav nav-pills">
<li><a href="home.html">Home</a></li>
<li class="active"><a href="#">Create</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="tutorial.html">Tutorial</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
<div class="clr"></div>
</header>
</div>
<div id="navButtons" class="container">
<div id="navSpan">
<a class="bigButton" id="goToNewProject" rel="tooltip" title="Create a new Badge It project.">New</a>
<a class="bigButton" id="goToOpenProject" rel="tooltip" title="Opens a saved Project from Google Drive.">Open</a>
<a class="bigButton" id="goToDemo" rel="tooltip" title="Go on a complete Product tour, try out Badge-It with sample data.">Demo</a>
</div>
</div>
<a rel="leanModal" id="triggerWait" name="waitForProject" href="#waitForProject" hidden="true"></a>
<div id="waitForProject">
<h2> Fetching your project. </h2>
<img id="waitLoading" src="bootstrap/img/loadingbig.gif"/>
</div>
<div class="container" id="newProject">
<div id="vetti">
<form class="form-horizontal" id="badgeinput" action="./create.html">
<fieldset>
<div class="control-group">
<a class="left carousel-control" rel="tooltip" title="Go back to start page" id="backButton">‹</a>
<input type="text" placeholder="Event Name" class="input" id="projectName" name="projectName" required="required"></input>
</div>
<div id="errorholder" class="alert alert-success">
<!--<button type="button" class="close" data-dismiss="alert">×</button>-->
<div id="alertmessage">
<strong>Howdy!</strong> First time here? Go back to start page and click on Demo.
</div>
</div>
<fieldset>
<legend> <i class="icon-picture"></i> Badge Template <a rel="tooltip" id="smallFont" title="Download a sample Image here" href="http://makkarlabs.in/badgeit/resources/other/template.png">?</a> </legend>
<div class="control-group">
<label class="control-label" for="templateChooser"> Image </label>
<div class="controls" id="template_chooser">
<a class='btn' rel='tooltip' title='Select Background image from your local drive.' id='template_fs'><i class="icon-folder-open"> </i> My Computer</a>
<a class='btn btn-warning' rel='tooltip' title='Select Background image from Google Drive.' id='template_gd'><img src="bootstrap/img/drive_icon_mono.png" width="14px" height="14px"/> Google Drive</a>
<span id="fs_input" class="invi">
<input type="file" accept="image/*" class="input-file" id="templateChooser" name="templateChooser" onchange="readFileAsDataURL(this.files[0]);"></input>
<a class="icon-repeat cpointer" id="return_image" onclick="change();"></a>
</span>
<span id="gd_input" class="invi">
<input readonly="readonly" placeholder="Google Drive Image" id="google_image" name="google_image" />
<a class="icon-repeat cpointer" onclick="change();" id="return_image1"></a>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="dpiSelection"> DPI </label>
<div class="controls">
<input type="text" placeholder="150" value="150" type="text" id="dpi" class="input-small tb_height" onkeyup="$('#inchwidth').val(($('#pixelwidth').val()/this.value).toFixed(2));$('#inchheight').val(($('#pixelheight').val()/this.value).toFixed(2));">
<select id="dpilist" onchange="$('#dpi').val(this.value);$('#dpi').keyup();">
<option disabled="disabled">Select </option>
<option>72</option>
<option>96</option>
<option>150</option>
<option>300</option>
<option>2540</option>
<option>4000</option>
</select>
<a target="_blank" rel="tooltip" title="Dots per Inch. Set original value for optimal print quality." href="faq.html#imgsize">?</a>
</div>
</div>
<div class="left">
<div class="control-group">
<label class="control-label" for="inchwidth"> Width </label>
<div class="controls">
<input type="text" class="input-small tb_height" id="inchwidth" placeholder="inches" required onkeyup="setPixelWidth()"> </input>
</div>
</div>
<div class="control-group">
<div class="controls">
<a id="lockar" rel='tooltip' title='Locks the aspect ratio of the image.' onclick="lockar();"><i class="icon-lock"></i></a>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inchheight"> Height </label>
<div class="controls">
<input type="text" class="input-small tb_height" id="inchheight" placeholder="inches" required onkeyup="setPixelHeight()"> </input>
</div>
</div>
</div>
<div class="right">
<div id="holder"> <img id="badgepreview"/> </div>
</div>
</fieldset>
<fieldset>
<legend><i class="icon-list"></i> Attendee Info <a rel="tooltip" id="smallFont" title="How to give Attendee info?" href="http://makkarlabs.in/badgeit/faq.html#attendeeInfo">?</a> </legend>
<div class="control-group">
<label class="control-label" for="csvChooser"> List </label>
<div class="controls">
<a class='btn' id='list_fs' rel='tooltip' title='Select a CSV file containing the details of attendees from your local drive.'><i class="icon-folder-open"> </i> My Computer</a>
<a class='btn btn-warning' id='list_gd' rel='tooltip' title='Select a Spreadsheet containing the details of attendees from Google Drive.'><img src="bootstrap/img/drive_icon_mono.png" width="14px" height="14px"/> Google Drive</a>
<span id="fs_list" class="invi">
<input type="file" class="input-file" accept=".csv" id="csvChooser" name="csvChooser" onchange="getAsText(this.files[0]);"> </input>
<a class="icon-repeat cpointer" id="return_image" onclick="changeCsv();"></a>
</span>
<span id="gd_list" class="invi">
<input readonly="readonly" placeholder="Google Drive Spreadsheet" id="csvGoogle" name="csvGoogle" />
<a class="icon-repeat cpointer" onclick="changeCsv();" id="return_image1"></a>
</span>
<div id="csvColumnsSelect"></div>
</div>
</div>
<input type="hidden" id="pixelwidth" value=""> </input>
<input type="hidden" id="pixelheight" value=""> </input>
<div class="control-group">
<label class="control-label" for="pixelheight"> QR Code </label>
<div class="controls">
<input class="mtop" type="checkbox" id="qrcode" name="qrcode" value="Yes" />
<div id="qrCodeSelect"></div>
<div class="mtop" id="container"> </div>
</div>
</div>
</fieldset>
<fieldset>
<div class="form-actions action-form">
<button class="btn btn-large btn-success" type="submit"> Submit </button>
</div>
</fieldset>
</form>
</div>
</div>
<footer class="footer fixed">
<div class="container">
<p> <a target="_blank" href="http://makkarlabs.in">Makkar Labs</a>, 2012</p>
<p> Customized for Google Chrome (Version 13.0+)</p>
<p> <a target="_blank" href="https://github.com/makkarlabs/badgeit">Code</a> is Licensed under <a target="_blank" href="http://www.apache.org/licenses/LICENSE-2.0">Apache License v2.0</a>.</p>
</div>
</footer>
</body>
</html>