-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
141 lines (141 loc) · 3.63 KB
/
popup.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
<!doctype html>
<!--
This page is shown when the extension button is clicked, because the
"browser_action" field in manifest.json contains the "default_popup" key with
value "popup.html".
-->
<html>
<head>
<title>Getting Started Extension's Popup</title>
<style type="text/css">
body {
color: white;
margin: 10px;
white-space: nowrap;
height: 420px;
width:315px;
border-radius: 30px;
background: #2C3C4E;
}
h1 {
font-family: Rockwell;
text-align:center;
}
h3,h4{
font-family: Rockwell;
margin-left:13px;
margin-right:20px;
overflow:auto;
}
#container {
height: 240px;
width:300px;
border: 1px solid black;
align-items: center;
justify-content: space-between;
border-radius:20px;
}
submit{
width:100px;
height:100px;
background-color: #F7EAC8;
color:white;
}
#button_div{
display:inline-block;
align:center;
}
label{
margin-top: 10px;
}
input{
margin-left:15px;
margin-right:20px;
width:260px;
height:40px
radius: 10px;
padding: 5px;
border-radius:3px;
word-wrap: break-word;
font-weight: bold;
}
.Primary{
border: none;
margin-top:10px;
margin-left:40px;
background-color:#E96F7D;
border-radius:5px;
color: black;
font-weight:900 ;
height:40px;
width:90px;
}
.Primary:hover{
background-color:#e0384c;
transition: 0.3;
}
#IutputSpace{
border: 2px solid green;
border-radius: 10px;
margin-top:10px;
width:300px;
height:100px;
color:white;
text-align:center;
background-color:black;
margin-bottom:5px;
word-wrap: break-word;
color: white;
font-family: georgia
}
img{
margin-top:0px;
margin-bottom:0px;
width:80px;
height:80px;
}
output{
word-wrap: break-word;
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
text-align: left;
text-indent: 0px;
font-weight: bold;
color: white;
font-family: georgia;
overflow:auto;
}
</style>
<script src="jquery-3.1.0.min.js"></script>
<script src="popup.js"></script>
<script src="aes.js"></script>
</head>
<body>
<h2>
<center><img src="./icons/icon-en-de_code_it.png" alt="EN/DE code IT"></center>
</h2>
<div id="container">
<h3>Text to encrypt:</h3>
<input type="text" id="MsgInput" placeholder="Message to encrypt"/>
<h3>Text to decrypt:</h3>
<input type="text" id="EncInput" placeholder="Encrypted message to decrypt"/>
<h3>Key:</h3>
<input type="text" id="Key" placeholder="Key to encrypt/decrypt"/>
</div>
<div id="button_div">
<input type="submit" id="en" value="Encrypt" class="Primary"/>
<input type="submit" id="de" value="Decrypt" class="Primary"/>
<div>
<div id="IutputSpace">
<label>
<center>
<h4>Your output will be here</h4>
</center>
</label>
<p id="output"></p>
</div>
</body>
</html>