-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (81 loc) · 3.33 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
<!doctype html>
<title>Scaryshot</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Finger+Paint' rel='stylesheet' type='text/css'>
<a href="https://github.com/applieddataconsultants/scaryshot"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub"></a>
<div class='container'>
<h1 style='font-family: "Finger Paint"'>Scaryshot</h1>
<em>PhantomJS Screen Shot Generator</em>
<br><br>
<form class='form form-horizontal' action='/generate' method='post'>
<fieldset>
<legend>POST /generate</legend>
<p>Defaults to Letter (portrait) for PDF, and size of webpage contents for other formats. Either <b>url</b> or <b>html</b> is required.</p>
<br>
<div class='form-group'>
<label class='col-lg-2 control-label'>url</label>
<div class='col-lg-10'>
<input class='form-control' name='url' type='text'>
</div>
</div>
<div class='form-group'>
<label class='col-lg-2 control-label'>html</label>
<div class='col-lg-10'>
<textarea class='form-control' name='html'></textarea>
</div>
</div>
<div class='form-group'>
<label class='col-lg-2 control-label'>name</label>
<div class='col-lg-10'>
<input class='form-control' name='name' type='text'>
</div>
</div>
<div class='form-group'>
<label class='col-lg-2 control-label'>type</label>
<div class='col-lg-10'>
<select class='form-control' name='type'>
<option></option>
<option>pdf</option>
<option>png</option>
<option>jpeg</option>
<option>gif</option>
</select>
</div>
</div>
<div class='form-group'>
<label class='col-lg-2 control-label'>delay (ms)</label>
<div class='col-lg-10'>
<input class='form-control' name='delay' type='text'>
</div>
</div>
<div class='alert-info'> The following only applies to PDF output:</div><br>
<div class='form-group'>
<label class='col-lg-2 control-label'>header</label>
<div class='col-lg-10'>
<input class='form-control' name='header' type='text' placeholder='e.g. <p style="text-align: center">{{page}} of {{pages}}</p'>
</div>
</div>
<div class='form-group'>
<label class='col-lg-2 control-label'>footer</label>
<div class='col-lg-10'>
<input class='form-control' name='footer' type='text' placeholder='e.g. <p style="text-align: center">{{page}} of {{pages}}</p'>
</div>
</div>
<div class='form-group'>
<label class='col-lg-2 control-label'>orientation</label>
<div class='col-lg-10'>
<select class='form-control' name='orientation'>
<option></option>
<option>portrait</option>
<option>landscape</option>
</select>
<br>
<button type='submit' class='btn btn-primary'>Generate</button>
</div>
</div>
<legend>GET /generate</legend>
<p>Same as POST /generate</p>
</fieldset>
</form>
</div>