-
Notifications
You must be signed in to change notification settings - Fork 8
/
reader.html
89 lines (87 loc) · 1.87 KB
/
reader.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Text Grabber</title>
<style>
body
{
background-color: #111;
color: #E0E0E0;
font-family: Verdana, Arial, IPAGothic, Noto Sans CJK JP Regular, TakaoGothic, Meiryo, sans-serif;
font-size: 1.4em;
word-break: break-word;
}
html
{
overflow-y: scroll;
}
p
{
margin-top: 5px;
margin-bottom: 5px;
}
button
{
background: rgb(255,255,255);
background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(244,241,238,1) 72%, rgba(219,211,197,1) 100%);
border: none;
border-radius: 5px;
outline: 1px solid rgba(0, 0, 0, 0.5);
-moz-outline-radius: 5px;
cursor: pointer;
font-size: 65%;
font-weight: 600;
height: 2em;
transition: all .05s ease-in-out;
}
#button_pause:hover
{
opacity: 1.0;
}
#button_delete:hover
{
opacity: 1.0;
}
#button_pause
{
opacity: 0.35;
position: fixed;
right: 5px;
height: 2em;
}
#button_delete
{
opacity: 0.35;
position: fixed;
right: 5px;
height: 2em;
}
</style>
<style id=new_style>
body > p:nth-of-type(1)
{
color: #CCCCCC;
}
#button_delete
{
bottom: 5px;
}
#button_pause
{
bottom: calc( 10px + 2em );
}
</style>
<script src="reader.js" charset="UTF-8"></script>
<script src="texthook.js" charset="UTF-8"></script>
</head>
<body lang="ja">
<p>Strings grabbed: <span id="linecount">0</span></p>
<p><i>This page grabs from the clipboard automatically if it contains Japanese text. If this page is not opened, Nazeka will never access the clipboard.</i></p>
<p><i>Use the context menu (right click the page) to toggle Nazeka.</i></p>
<div style="position:absolute;visibility:hidden"><textarea id="nazeka-paste-target"></textarea></div>
<button id=button_pause>Pause</button>
<button id=button_delete>Delete Newest</button>
</body>
</html>