-
Notifications
You must be signed in to change notification settings - Fork 0
/
devimg-dialog.html
48 lines (38 loc) · 1.81 KB
/
devimg-dialog.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
<div class="template modal hide">
<div class="modal-header">
<h1 class="dialog-title">DevIMG</h1>
</div>
<div class="modal-body">
<p>Set your desired width and height</p>
<input id="inputWidth" name="inputWidth" type="text" placeholder="width"/>
<span id="x">x</span>
<input id="inputHeight" name="inputHeight" type="text" placeholder="height"/>
<!--
<p>Choose a theme, optionally</p>
<p>
<select id="themes">
<option value="default" selected="true">Comics</option>
<option value="">Memes</option>
<option value="">Food</option>
</select>
</p>
-->
<br><br>
<input type="radio" name="group1" value="imagetag" id="imagetag" checked
onchange="$('#url-info').hide(); $('#imagetag-info').show();"> Generate as img tag<br>
<input type="radio" name="group1" value="urlonly" id="urlonly"
onchange="$('#url-info').show(); $('#imagetag-info').hide();"> Generate the url only<br>
<p class="info" id="imagetag-info">
Code is generated as followed: <i><img src="http://devimg.com/300x300" width="300" height="300"></i>
<br><br>
The witdh and height attribute are added because this speeds up the rendering of the webpage! For more information, read <a href="http://webdesign.about.com/od/beginningtutorials/a/image_tag_img.htm">this.</a>
</p>
<p class="info" id="url-info" style="display:none;">
Code is generated as followed: <i>http://devimg.com/300x300</i>
</p>
</div>
<div class="modal-footer">
<a id="diaglogCancelBtn" class="dialog-button btn" data-button-id="cancel" href="#">Cancel</a>
<a id="dialogSubmitBtn" href="#" class="dialog-button btn primary" data-button-id="ok">Insert</a>
</div>
</div>