forked from rojer/a-s-minus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.html
238 lines (238 loc) · 14.7 KB
/
edit.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
<!DOCTYPE html>
<html>
<head>
<title></title>
<link href="stylesheets/selected.css" rel="stylesheet" type="text/css">
<link href="stylesheets/main.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="javascripts/libs/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="javascripts/jquery.helper.js"></script>
<script type="text/javascript" src="javascripts/detect.js"></script>
<script type="text/javascript" src="javascripts/libs/jquery-ui-1.8.custom.min.js"></script>
<script type="text/javascript" src="javascripts/jquery.draggable-edit.js"></script>
<script type="text/javascript" src="javascripts/libs/jquery.ui.resizable.min.js"></script>
<script type="text/javascript" src="javascripts/libs/dragresize.js"></script>
<script type="text/javascript" src="javascripts/libs/jquery.autogrowtextarea.js"></script>
<script type="text/javascript" src="javascripts/libs/jqModal.js"></script>
<script type="text/javascript" src="javascripts/jquery.md5.js"></script>
<script type="text/javascript" src="javascripts/libs/md5.js"></script>
<script type="text/javascript" src="javascripts/libs/swfobject.js"></script>
<script type="text/javascript" src="javascripts/edit.js"></script>
</head>
<body class="edit_page">
<div id="tool-panel">
<a id="logo" style="" href="https://github.com/rojer/a-s-minus" target="_blank">Awesome Screenshot Minus</a>
<div id="annotation_bar">
<a id="crop" class="title enabled"><span></span></a>
<a id="rectangle" class="title enabled"><span></span></a>
<a id="ellipse" class="title enabled"><span></span></a>
<a id="arrow" class="title enabled"><span></span></a>
<a id="line" class="title enabled"><span></span></a>
<a id="free-line" class="title enabled"><span></span></a>
<a id="text-highlighter" class="title enabled"><span></span></a>
<a id="blur" class="title enabled"><span></span></a>
<a id="text" class="title enabled"><span></span></a>
<a id="color" class="title enabled"><span></span>
<ul>
<li style="background-color:#000000" data-highlight-color="rgba(0,0,0,.3)" data-contrast-color="#FFFFFF"></li>
<li style="background-color:#808080" data-highlight-color="rgba(128,128,128,.3)" data-contrast-color="#FFFFFF"></li>
<li style="background-color:#FF0000" data-highlight-color="rgba(255,0,0,.3)" data-contrast-color="#FFFFFF"></li>
<li style="background-color:#FF9900" data-highlight-color="rgba(255,153,0,.3)" data-contrast-color="#FFFFFF"></li>
<li style="background-color:#FFFF00" data-highlight-color="rgba(255,255,0,.3)" data-contrast-color="#808080"></li>
<li style="background-color:#00FF00" data-highlight-color="rgba(0,255,0,.3)" data-contrast-color="#808080"></li>
<li style="background-color:#FFFFFF" data-highlight-color="rgba(255,255,255,.3)" data-contrast-color="#000000"></li>
<li style="background-color:#C0C0C0" data-highlight-color="rgba(192,192,192,.3)" data-contrast-color="#FFFFFF"></li>
<li style="background-color:#00FFFF" data-highlight-color="rgba(0,255,255,.3)" data-contrast-color="#808080"></li>
<li style="background-color:#0000FF" data-highlight-color="rgba(0,0,255,.3)" data-contrast-color="#FFFFFF"></li>
<li style="background-color:#9900FF" data-highlight-color="rgba(153,0,255,.3)" data-contrast-color="#FFFFFF"></li>
<li style="background-color:#FF00FF" data-highlight-color="rgba(255,0,255,.3)" data-contrast-color="#FFFFFF"></li>
</ul>
</a>
<a id="undo" class="title"><span></span></a>
<div id="crop-dimension">
<div>Width:<input type="text" id="cd-width" class="cd-input"></div>
<div>Height:<input id="cd-height" type="text" class="cd-input"></div>
</div>
<a id="save" class="title enabled"><b></b>Done</a>
<a id="done" class="title enabled"><b></b>Crop</a>
<a id="cancel" class="title enabled"><b></b>Cancel</a>
</div>
<div id="tip">
<span id="tip-text"></span>
<span id="tip-close"></span>
</div>
<a id="exit" title="Exit Awesome Screenshot"><span></span></a>
</div>
<div id="edit-area">
<div id="saveWrapper">
<div id="saveImageOuter">
<div id="save_image_wrapper">
<div><span id="image_loader" class="i18n"></span><div id="print_area"><img id="save-image" alt="save image"></div></div>
</div>
</div>
<div id="saveTipOuter">
<div id="save-tip">
<img id="re-edit-icon" src="images/redo.png"> <a id="re-edit"></a>
<div id="saveOptionHead"><span class="title">Save Online</span> <span class="back">« Back</span></div>
<div id="saveOptionBody" class="clear">
<ul id="saveOptionList">
<li class="as">Temporarily</li>
<li class="diigo">Permanently, on Diigo.com</li>
<li class="sgdrive" id="sgdriveOption">On Google Drive <span id="gdrive-username"></span></li>
<li class="imgur" id="imgurOption">Upload to Imgur</li>
<li class="local">Local</li>
</ul>
<ul id="saveOptionContent">
<li class="diigo clear">
<ul class="saveForm">
<li><input type="text" name="title" placeholder="Title"></li>
<li><input type="text" name="tags" placeholder="Tags (Comma seperated)"></li>
<li class="clear"><span><input type="checkbox" name="privacy" id="privacy"><label for="privacy">Private</label></span> <span class="button save">Save</span></li>
</ul>
<div id="account">
<table>
<tbody>
<tr><td><div class="loginByGoogle"><strong>New to Diigo? Connect to diigo.com via</strong> <a href="http://www.diigo.com/account/thirdparty/openid?openid_url=https://www.google.com/accounts/o8/id&redirect_url=chrome-extension%3A%2F%2Falelhddbbhepgpmgidjdcjakblofbmce&request_from=chrome_awesome_screenshot" class="button" target="_blank">Google account</a></div></td></tr>
<tr>
<td>
<div class="loginByDiigo">
<ul>
<li><strong>Already have an Diigo account?</strong></li>
<li><p></p><input type="text" name="username" placeholder="Username/Email" required> <input type="password" name="password" placeholder="Password" required></li>
<li><span class="button">Sign In</span></li>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="accountInfo"><a class="name" title="Your images on diigo.com" target="_blank" href="#"></a> <a class="signout" href="#">Sign Out</a></div>
<div class="premium">You have exceeded free image storage capacity, you can go premium. <a href="http://www.diigo.com/premium" target="_blank">Learn more »</a></div>
</li>
<li class="as clear">
<div class="saveForm">
<div>Your screenshot will be saved on Awesomescreenshot.com, which will be automatically removed after about 3 days.</div>
<span class="button save">Save</span>
</div>
</li>
<li class="sgdrive clear">
<div id="gdrive-save-form" class="saveForm">
<div><input id="gdrive-image-name" type="text" placeholder="image name"></div>
<input type="checkbox" id="gdrive-private"><label for="gdrive-private">Private</label>
<br />
<!-- Folder select -->
<select id="gdrive-folder-select"></select>
<br />
<span id="gdrive-save-button" class="button save">Save</span>
</div>
<div id="gdrive-share-link" class="shareLink">
<p>Image Link (share via MSN, GTalk, etc.)</p>
<input type="text" id="gdrive-image-link">
<input type="checkbox" id="gdrive-short-link"><label for="gdrive-short-link">Short link</label>
</div>
<div id="gdrive-user">
<p>Account: <span></span></p>
</div>
<div id="notice">
<h3>Notice:</h3>
<p>If you want to save image to another google account, please clear the authentication in awesome screenshot and sign out your google account in google.com. <a id="gdrive-signout">clear Authentication</a>.</p>
</div>
</li>
<li class="imgur clear">
<div id="imgur-upload-form">
<div><input id="imgur-image-name" type="text" placeholder="image name"></div>
<br />
<table>
<tbody>
<tr>
<td>
<div class="authImgur">Upload as: <span id="imgur-user"></span>
<span id="imgur-auth-save-button" class="button save">Save</span>
</div>
</td>
</tr>
<tr>
<td>
<div class="anonImgur">
Upload anonymously
<span id="imgur-anon-save-button" class="button save">Save</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="imgur-share-link" class="sharelink">
<p>Image Link</p>
<input type="text" id="imgur-image-link">
</div>
<div id="imgur-error">
</div>
</li>
<li class="local clear">
<div>Save image as a file.</div>
<span class="button save">Save</span>
</li>
</ul>
</div>
<div id="saveOnline">
<h3>
<span id="selectedHost" class="title">Save to Diigo</span>
<span id="selectionListButton"></span>
<ul id="selectionList">
<li class="diigo" data-host="Diigo">Diigo <span id="accountInfo"><a class="name" title="Your images on diigo.com" target="_blank" href="#"></a> <a class="signout" href="#">Sign Out</a></span></li>
<li class="as" data-host="Awesome Screenshot">Awesome Screenshot</li>
</ul>
</h3>
<div class="content">
<div class="diigo">
<ul>
<li><input type="text" name="title" placeholder="Title"></li>
<li><input type="text" name="tags" placeholder="Tags (Comma seperated)"></li>
<li class="clear savebar"><span><input type="checkbox" name="privacy" id="privacy"><label for="privacy">Private</label></span> <span class="button save">Save</span></li>
</ul>
</div>
<div class="as clear"><span>Upload To awesomescreenshot.</span> <span class="button save">Save</span></div>
</div>
</div>
<div id="legacySave">
<h2 id="save_congrats" class="i18n">Congrats! Here is your screenshot.</h2>
<h3 id="save_howto" class="i18n">How to use it?</h3>
<a href="" id="privateLink" target="_blank">See screenshot on diigo.com</a>
<dl>
<dt id="save_local" class="i18n">Option 1: Save image as a file</dt>
<dd><a id="save_button"><span></span>Save</a></dd>
<dt id="share" class="i18n">Option 2: Share</dt>
<dd></dd>
</dl>
</div>
<div id="saveLocal" class="section">
<h3><span class="title">Save Local</span></h3>
<div class="content clear save_button"><span>Save image as a file</span> <span class="button save">Save</span></div>
<!-- TODO: restore copy functionality <div class="content clear copy_button"><span>Copy to clipboard</span> <span class="button save">Copy</span></div> -->
<div class="content clear"><span>Print the screenshot</span> <span class="button save print_button">Print</span></div>
</div>
<div class="copy_message">
<div class="copy_success"><span>Copied to clipboard. Check <a href="#" id="c-tip">the tip</a>.</span></div>
<div class="copy_failed"><span>Failed to copy the screenshot.</span></div>
<div class="copy_unsupport"><span>Sorry,your system doesn't support this function. Please right click on this image to save.</span></div>
</div>
</div>
</div>
</div>
<canvas id="show-canvas" width="0" height="0"></canvas>
<div id="cropdiv" class="drsElement drsMoveHandle" style="z-index:900;left: 0px; top: 0px; width: 0px; height: 0px; background: rgba(0,0,0,0);display:none; text-align: center;position:absolute;outline:1px dashed #777;cursor:move">
<span id="crop-size"></span>
</div>
<span id="crop-tip"></span>
</div>
<div id="networkError" class="jqmWindow" style="display:none">
<a href="#" class="jqmClose btnDark" style="text-decoration:none; margin-top:30px">Close</a>
<div>Network error.</div>
</div>
<div id="authError" class="jqmWindow" style="display:none">You are not signed in. Please <a href="#" class="jqmClose btnDark" style="text-decoration:none; margin-left:10px; float:none; display: inline-block">Sign In</a></div>
<div id="GauthError" class="jqmWindow" style="display:none">Not authenticated.Please <a class="jqmClose btnDark" href="#" id="clear-authentication">clear Authentication</a></div>
<div id="authError-wrong" class="jqmWindow" style="display:none">Wrong username or password.Please <a href="#" class="jqmClose btnDark" style="text-decoration:none; margin-left:10px; float:none; display: inline-block">Sign In</a> again.</div>
<div id="uploadingWarning" class="jqmWindow" style="display:none">Still uploading...Please wait. <a href="#" class="jqmClose btnDark" style="text-decoration:none; margin-left:177px; float:none; display: inline-block">close</a></div>
</body>
</html>