forked from willmoffat/emacs-edit-chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.html
56 lines (47 loc) · 1.24 KB
/
error.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
<!doctype html>
<title>Emacs Edit - Error</title>
<style>
@keyframes highlight {
/* Allow 0.1% of time to scroll to relevant error msg. */
0% { visibility: hidden; } 0.1% { height: 0em; } 100% { }
}
* { margin:0; padding:0; border:0;}
body { padding-right:10px; }
.container {
background:white;
box-shadow: rgba(0,0,0,0.3) 4px 4px 10px 0px;
border:#CFCFCF solid 2px; border-radius:4px;
animation: 1s highlight;
height: 11em;
overflow: hidden;
}
/* Only show the relevant error message */
section { display: none; }
section:target { display: block; }
h1 {
background:#444444;
color: #B2AFAD;
font-size:100%;
text-align: center;
padding: 3px;
}
h2 {
font-size: 100%;
padding-bottom: 1em;
}
section,a { padding: 1em; }
</style>
<div class="container">
<h1>Emacs Edit</h1>
<section id="NoEmacs">
<h2>Connection Error</h2>
Could not connect to Emacs.
</section>
<section id="NoEditor">
<h2>No editor found</h2>
No active editor found on page.
Click on the text you want to edit.
</section>
<a href="https://github.com/willmoffat/emacs-edit-chrome/blob/master/README.md"
target="_blank">Help</a>
</div>