-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpanel.html
executable file
·111 lines (98 loc) · 2.25 KB
/
panel.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
<html>
<head>
<style>
body{
font-family: helvetica, arial, sans-serif;
}
.button {
width: 48%;
min-width: 140px;
height: 50px;
font-size: 1em;
color: white;
text-align: center;
margin-top: 20px;
-webkit-appearance: none;
border: none;
box-shadow: 1px 1px 1px black;
}
.opacity-range {
width: 100%;
max-width: 500px;
}
.button:focus {
outline: none;
}
.button:active {
box-shadow: none;
}
.controls {
display: none;
width: 50%;
min-width: 300px;
}
.button-primary {
background-color: lightblue;
float: left;
color: black;
}
.button-secondary {
background-color: lightgrey;
color: black;
float: right;
}
.image-preview {
display: none;
}
.container {
width: 100%;
}
.text-input {
height: 30px;
font-size: 1.2em;
}
@media screen and ( max-height: 669px ){
.controls {
position: absolute;
top: 110px;
left: 378px; }
}
</style>
</head>
<body id = 'body'>
<!-- <button id="insertmessagebutton">Insert button to send a message from page to devtools</button> -->
<script src="messaging.js"></script>
<img src = "logo.png" width = "150px">
<p>Select an image to overlay on your frontend</p>
<div class = "left">
<input id = "input" type="file">
<br>
<img class = "image-preview" src="" width = "150" alt="Image preview...">
</br>
</br>
</br>
</div>
<div class = "controls">
<label>Y-axis</label>
<input class = "text-input"id = "top" type="number" value = "0"> </br>
<!-- <label>Pixel distance right</label>
<input id = "right" type="number"value = "0"></br> -->
</br>
<label>X-axis</label>
<input class = "text-input" id = "left" type="number"value = "0"></br>
<!-- <label>Pixel distance bottom</label>
<input id = "bottom" type="number"value = "0"></br> -->
<!-- <label>Width:</label> -->
<!-- <input type = "text"> -->
</br>
<label>Opacity</label>
<div id = "opacityValue"></div>
<input class = "opacity-range" id = "opacity" value = "40" type="range">
<div class = "container">
<button class = "button button-primary" id="executescript">Add image overlay</button>
<button class = "button button-secondary" id="insertscript">Remove image overlay</button>
</div>
</div>
</body>
<script src="panel.js"></script>
</html>