-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
492 lines (361 loc) · 21.6 KB
/
index.html
File metadata and controls
492 lines (361 loc) · 21.6 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
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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>IDs书友会 · 邮件签名生成器 Email html signature generator</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="index/bootstrap.css" rel="stylesheet" media="screen">
<link href="index/bootstrap-responsive.css" rel="stylesheet" media="screen">
<link href="index/colorpicker.css" rel="stylesheet" media="screen">
<link href="index/style.css" rel="stylesheet" media="screen">
<meta name="description" content="Create an hmtl signature for your email client in just a few steps using our online email signature generator.">
</head>
<body>
<div id="main-container" class="container">
<div id="header" class="row">
<div class="span12">
<h1>IDs书友会 · 邮件签名生成器 <br>Signature Generator</h1>
</div>
</div>
<div class="row">
<div id="intro" class="span12">
<p class="">
亲,把左边的个人,公司和社交相关信息填完后,在右上方选择你自定义的颜色,右下方就会自动生成你所需要的Email客户端签名 · HTML格式,你直接Copy Paste一下的内容到你的邮件客户端,即可完成。IE7以下浏览器非常坑爹!我们建议你使用火狐浏览器<a href="http://www.mozilla.org/en-US/firefox/new/" class="firefox">Firefox</a> 或则谷歌浏览器 <a href="https://www.google.com/intl/en/chrome/browser/" class="chrome">Chrome</a>.
</p>
</div>
</div>
<div class="row">
<div class="span3">
<h4>Your Information</h4>
<form id="sig">
<fieldset>
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
Primary information
</a>
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner">
<label>Name</label>
<input id="name" placeholder="Jobs Steven" type="text">
<label>Title</label>
<input id="title" placeholder="Cheif Excutive Operator" type="text">
<label>Email</label>
<input id="email" placeholder="jobs@idsclub.org" type="text">
<label>Mobile Phone</label>
<input id="mobile" placeholder="0433-888-8888" type="text">
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
Company information
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">
<label>Company Name</label>
<input id="company" placeholder="My awesome Company" type="text">
<input name="logourlcheck" value="" type="hidden">
<label>Company Logo</label>
<p><a href="javascript:;" class="btn btn-primary uploadlogo" onclick="uploadLogo()"><i class="icon-upload icon-white"></i> Upload Logo</a></p>
<span class="help-block">Logo will be resized to fit 200px by 100px. Accepted file formats are jpg, png and gif under 500kbs.</span>
<label>Website</label>
<input id="website" placeholder="http://www.yoursite.com" type="text">
<label>Office Phone</label>
<input placeholder="(03) 8888-8888" id="office" type="text">
<label>Fax</label>
<input id="fax" placeholder="(03) 8888-8888" type="text">
<label>Address</label>
<textarea rows="3" id="address" placeholder="450 St. Kilda Rd. Melbourne VIC 3004"></textarea>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
Social
</a>
</div>
<div id="collapseThree" class="accordion-body collapse">
<div class="accordion-inner">
<label>Twitter</label>
<input id="twitter" type="text">
<span class="help-block">Url of your profile page.</span>
<label>Facebook</label>
<input id="facebook" type="text">
<span class="help-block">Url of your profile page.</span>
<label>Linked in</label>
<input id="linkedin" type="text">
<span class="help-block">Url of your profile page.</span>
<label>Instagram</label>
<input id="instagram" type="text">
<span class="help-block">Url of your profile page.</span>
<label>Dribbble</label>
<input id="dribbble" type="text">
<span class="help-block">Url of your profile page.</span>
<label>Skype</label>
<input id="skype" placeholder="skype:username" type="text">
<span class="help-block">Username as shown in the box</span>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFour">
Other
</a>
</div>
<div id="collapseFour" class="accordion-body collapse">
<div class="accordion-inner">
<label>Disclaimer</label>
<textarea rows="3" id="disclaimer" placeholder="This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.">This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.
</textarea>
<span class="help-block">Replace company name with your comapny name</span>
</div>
</div>
</div>
</div> <!--end accordion2-->
<a class="btn btn-danger" id="clearEmpty"><i class="icon-trash icon-white"></i> Remove Empty</a> <a class="btn btn-success" onclick="window.location.reload()" href="javascript:;"><i class="icon-refresh icon-white"></i> Reset</a><!-- <a class="btn btn-danger btn-small"><i class="icon-trash icon-white"></i> clear all</a>-->
</fieldset>
</form>
<p>Any flied left blank will be removed once you press the Remove empty button.</p>
</div>
<div class="span8 offset1">
<h4>Default Style</h4>
<div class="accordion" id="accordion3">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion3" href="#collapse5">
Set Styling Options
</a>
</div>
<div id="collapse5" class="accordion-body collapse in">
<div class="accordion-inner">
<form id="styles" class="form-inline">
<label>Text Color
<div class="input-append color" data-color="#999" data-color-format="hex" id="cp2">
<input class="span2" value="#999" readonly="readonly" type="text">
<span class="add-on"><i style="background-color: #999; "></i></span>
</div>
</label>
<label>Link Color
<div class="input-append color" data-color="#DDA200" data-color-format="hex" id="cp3">
<input class="span2" value="#DDA200" readonly="readonly" type="text">
<span class="add-on"><i style="background-color: #DDA200; "></i></span>
</div>
</label>
<label>Font Style
<select id="font-style" name="fontstyle">
<option selected="selected" value="Helvetica, Arial, sans-serif">Helvetica / Arial</option>
<option value="Georgia, Times, serif">Georgia / Times</option>
</select>
</label>
<label>Font Size
<select id="font-size" name="fontsize">
<option selected="selected" value="10">Small</option>
<option value="12">Medium</option>
<option value="14">Large</option>
</select>
</label>
</form>
<p><small>More options coming soon.</small></p>
</div>
</div>
</div>
</div>
<!-- <div><a href="#" id="copy-preview" class="btn">Copy</a></div>-->
<div class="preview">
<p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px;"><a href="http://www.idsclub.org/" class="clink"><img src="img/logo.png" alt="3sparks llc" id="sig-logo" border="0"></a></p>
<p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 11px; color: #999;"><span id="name-input" style="font-weight: bold;" class="txt">Jobs Steven</span>
<span id="title-sep">/</span> <span id="title-input" style="color: #999;" class="txt">Cheif Excutive Operator</span><br>
<span id="mobile-input" style="color: #999;" class="txt">0433 880 888</span><span id="email-sep" class="txt">/</span> <a id="email-input" class="link email" href="mailto:opensource@idsclub.org" style="color: #DDA200">opensource@idsclub.org</a></p>
<p style="font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 11px">
<span id="company-input" style="font-weight: bold; color: #999;" class="txt">Company Name</span>
<span id="office-sep" style="color: #999;" class="txt">Office: </span> <span id="office-input" style="color: #999;" class="txt">(03) 8888-8888</span>
<span id="fax-sep" style="color: #999;" class="txt">/ Fax: </span> <span id="fax-input" style="color: #999;" class="txt">(03) 8888-8888</span>
<span id="address-sep"><br></span> <span id="address-input" style="color: #999;" class="txt">450 St. Kilda Rd. Melbourne VIC 3004</span><br>
<a id="website-input" class="link" href="http://www.idsclub.org/" style="color: #DDA200">http://www.idsclub.org</a>
</p>
<p><a id="facebook-input" class="social" href="####"><img src="img/facebook.png" alt="Facebook"></a> <a id="twitter-input" class="social" href="####"><img src="img/twitter.png" alt="Twitter"></a> <a id="linkedin-input" class="social" href="####"><img src="img/linkedin.png" alt="Linkedin"></a> <a id="instagram-input" class="social" href="#####"><img src="img/instagram.png" alt="Instagram"></a> <a id="dribbble-input" class="social" href="####"><img src="img/dribbble.png" alt="Dribbble"></a> <a id="skype-input" class="social" href="######"><img src="img/skype.png" alt="Skype"></a></p>
<p id="disclaimer-input" style="font-family: Helvetica, Arial, sans-serif; color: #999; font-size: 9px; line-height: 11px;" class="txt">This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.
</p>
</div>
</div>
</div>
<div class="row">
<div class="span4 small">by <a href="http://www.idsclub.org/">@IDs书友会</a> with help from <a href="mailto:opensource@idsclub.org">opensource@idsclub.org</a></div>
<div class="span8">
</div>
</div>
</div> <!--close main-container-->
<script src="index/jquery-1.8.0.min.js"></script>
<script src="index/bootstrap.js"></script>
<script src="index/bootstrap-colorpicker.js"></script>
<!-- Adds the Filepicker.io javascript library to the page -->
<script src="index/filepicker.js"></script>
<script type="text/javascript">
//Seting up Filepicker.io with your api key
filepicker.setKey('AicjbPIDKTGu98lDJPbEyz');
function uploadLogo()
{
filepicker.pick(function(fpfile){
theLogo = fpfile.url;
$("#sig-logo").attr("src", theLogo+'/convert?w=150&h=55&fit=clip');
}
);
};
</script>
<script type="text/javascript">
activeContainer = "";
$(document).ready(function() {
// Signature Generator
// replace input containers
var website_url;
$('#website').on('keyup change', function() {
website_url = $(this).val();
if ( (website_url.indexOf("http://") == -1) && (website_url.indexOf("https://") == -1) ) {
website_url = "http://" + website_url;
};
$('a.clink').attr( "href", website_url );
$('a#website-input').attr( "href", website_url );
})
$('#sig input, #sig textarea').on('keyup change', function(){
theID = $(this).attr("id");
target = '#' + theID + '-input';
check_val($(this));
//remove highlight, if different
if(theID != activeContainer){
$(".highlight").removeClass("highlight");
activeContainer = theID;
//set highlight
$(target).addClass('highlight');
}
//check if not a social icon
if(!$(target).hasClass('social')){
// change value, if not blank
if( $(this).val() != ""){
$(target).html( $(this).val() );
}else{
$(target).html( $(this).attr('placeholder') );
}
}else{
}
//if anchor (email), also update the href
if($(target).hasClass('email')) {
$(target).attr( "href", "mailto:" + $(this).val() );
} else if($(target).get(0).tagName == "A") {
if ($(target).attr("id") == "website-input") {}else{
$(target).attr( "href", $(this).val() );
}
}
})
//change font style
$('#font-style').change( function(){
newValue = $(this).val();
$('.preview p').css('font-family', newValue );
});
//change font size
$('#font-size').change( function(){
newValue = $(this).val();
lineHeight = parseFloat(newValue) + 2;
$('.preview p').css('font-size', newValue + 'px' );
$('.preview p').css('line-height', (lineHeight) + 'px' );
//make disclaimer 1 size smaller
smallerValue = parseFloat(newValue) - 1;
smallerValuelh = parseFloat(newValue) +2;
$('#disclaimer-input').css('font-size', smallerValue + 'px');
$('#disclaimer-input').css('line-height', smallerValuelh + 'px');
});
//toggle highlight on click
$('#sig input, #sig textarea').focus(function(){
theID = $(this).attr("id");
target = '#' + theID + '-input';
if(theID != activeContainer){
$(".highlight").removeClass("highlight");
activeContainer = theID;
$(target).addClass('highlight');
}
})
$('#sig input, #sig textarea').blur(function() {
$(".highlight").removeClass("highlight");
})
$('#cp3').colorpicker();
// Function to change link colors as color picker moves
$('#cp3').colorpicker().on('changeColor', function(ev){
$('.link').attr("style", "color: "+ ev.color.toHex());
});
$('.remove').live('click', function(){
ptarget = $(this).prev('input');
if (ptarget.length == 0) {
ptarget = $(this).prev('textarea');
};
ptarget.val('');
eID = ptarget.attr("id");
tg = '#' + eID + '-input';
$(tg).html( ptarget.attr('placeholder') );
$(this).remove();
})
$('#cp2').colorpicker();
// Function to change link colors as color picker moves
$('#cp2').colorpicker().on('changeColor', function(ev){
// $('.txt').attr("style", "color: "+ ev.color.toHex());
$('.txt').css({color: ev.color.toHex()})
});
//Prevent form from submitting when enter key is pressed
$(window).keydown(function(event){
if(event.keyCode == 13) {
event.preventDefault();
return false;
}
});
// clear empty function
function clearEmpty()
{
$('#sig input, #sig textarea').each(function(index, value) {
theID = $(this).attr("id");
target = '#' + theID + '-input';
if( $(this).val() == ""){
$(target).remove();
$('#'+ theID + '-sep').remove();
}
$('img[src*="img/logo.png"]').remove();
});
};
$('#clearEmpty').click(clearEmpty);
});
function check_val(e)
{
if(e.val() != ''){
if (e.next('span.remove').length > 0) {}else{
e.after('<span class="remove"><i class="icon-remove-sign"></i></span>');
}
}else{
e.next('span.remove').remove();
}
};
</script>
<div class="colorpicker dropdown-menu">
<div style="background-color: rgb(255, 187, 0);" class="colorpicker-saturation"><i style="left: 100px; top: 13.3333px;"><b></b></i></div>
<div class="colorpicker-hue"><i style="top: 87.7828px;"></i></div>
<div class="colorpicker-alpha"><i style="top: 0px;"></i></div>
<div style="display: none;" class="colorpicker-color">
<div>
</div>
</div>
</div>
<div class="colorpicker dropdown-menu">
<div style="background-color: rgb(255, 0, 0);" class="colorpicker-saturation"><i style="left: 0px; top: 40px;"><b></b></i></div>
<div class="colorpicker-hue"><i style="top: 0px;"></i></div>
<div class="colorpicker-alpha"><i style="top: 0px;"></i></div>
<div style="display: none;" class="colorpicker-color">
<div></div>
</div>
</div>
</body>
</html>