-
Notifications
You must be signed in to change notification settings - Fork 2
/
popup.html
125 lines (125 loc) · 3.03 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
<!doctype html>
<html>
<head>
<title>Cookitor</title>
<style>
body {
min-width: 350px;
overflow-x: hidden;
font-family: arial;
color: #202020;
margin: 15px;
}
h2{
margin-top: 0px;
margin-bottom: 8px;
}
h3 {
margin-top: 4px;
margin-bottom: 2px;
}
label, textarea, input {
display: block;
}
textarea, input {
margin-bottom: 5px;
}
#flasher{
border: 1px solid #A0A0A0;
background-color: #E0E0E0;
padding: 4px;
display: none;
margin-bottom: 10px;
}
#content {
min-width: 330px;
min-height: 50px;
}
#key_value {
min-width: 330px;
}
#key-label {
text-decoration: underline;
}
#session-list a {
cursor: pointer;
border-bottom: 1px solid;
}
#session {
}
#session-name {
text-align: center;
}
#session-domain {
font-weight: bold;
}
#processing-form {
margin-top: 10px;
}
.block {
border: 1px solid #A0A0A0;
background-color: #E0E0E0;
padding: 4px;
display: block;
overflow: auto;
}
.highlight .line {
margin-left: 12px;
margin-right: 10px;
}
.highlight .curly-bracket, .highlight .arrow {
font-weight: bold;
}
.highlight .key {
color: red;
}
.highlight .value {
color: blue;
}
#toolbar {
float: right;
font-size: 10px;
margin-right: 10px;
}
#toolbar a {
cursor: pointer;
}
#toolbar .selected {
font-weight: bold;
}
#data {
margin-bottom: 18px;
}
#hmac-value {
text-align: center;
}
#response.error {
border: 5px dashed #ff6600;
color: #FF3333;
background-color: #ff9900;
padding: 10px;
display: block;
text-align: center;
}
</style>
<script src="jquery.min.js"></script>
<script src="popup.js"></script>
</head>
<body>
<div id="flasher"></div>
<div id="session-list"></div>
<div id="session">
<img id="logo" src="logo.png" />
<h2 id="session-name"></h2>
Domain: <span id="session-domain"></span>
<form accept-charset="UTF-8" action="https://cookitor.herokuapp.com/decode" id="processing-form" method="post">
<label for="content">Encoded cookie content:</label>
<textarea id="content" name="content"></textarea>
<label for="key_value" id="key-label" title="From Rails 4, session cookies are encrypted by default with a secret key. Enter your application key here if the cookie is encrypted.">Secret key base:</label>
<input id="key_value" name="key_value" type="text" value="" />
<input name="commit" class="decode" type="submit" value="Decode" />
</form>
<div id="response"></div>
</div>
</body>
</html>