-
Notifications
You must be signed in to change notification settings - Fork 4
/
popup.html
62 lines (60 loc) · 1.66 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="popup.css">
<title>Wordcapture</title>
<!-- <style>
body {
width: 200px;
}
</style> -->
<script>
function downloadText(fileName, text) {
const blob = new Blob([text], { type: 'text/plain' });
const aTag = document.createElement('a');
aTag.href = URL.createObjectURL(blob);
aTag.target = '_blank';
aTag.download = fileName;
aTag.click();
URL.revokeObjectURL(aTag.href);
}
</script>
</head>
<body>
<div class="import-export">
<h2>登録済み辞書</h2>
<button type="button" id="inputFile">Import</button>
<pre><code id="contents"></code></pre>
<button type="button" id="outputFile">Export</button>
<script src="test.js"></script>
<script src="myscript.js"></script>
</div>
<div>
<ul id="keywordList"></ul>
</div>
<ul id="keywordList"></ul>
<script src="popup.js"></script>
<main>
<div id="modal">
<div class="modal-content">
<div class="modal-header">
<h1 id="wordTitle">単語:</h1>
</div>
<div class="modal-body">
<p id="wordMeaning">意味:</p>
</div>
</div>
</div>
</main>
<script src="script.js"></script>
<div class="save">
<input type="text" id="api_key"><br />
<input type="text" id="secret_key"><br />
<button id="save">Save</button>
<div id="status"></div>
</div>
<script src="options.js"></script>
</body>
</html>