-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
74 lines (56 loc) · 1.62 KB
/
index.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
<html>
<head>
<link rel="stylesheet" href="https://jonudell.info/hlib/hlib.css">
<style>
body {
display: flex;
}
h1 {
font-size: 14pt;
}
#viewer {
width: 40%;
margin-left: 20px;
}
#formContainer {
padding-right: 40px;
}
.logMessage {
font-size: smaller;
margin-bottom: .5em;
color: #272727
}
.help {
width: 500px;
}
</style>
</head>
<body>
<div id="formContainer">
<h1>
Sync Hypothesis annotations to Zotero
</h1>
<div class="formField" id="tokenContainer"></div>
<div class="formField" id="zoteroUserContainer"></div>
<div class="formField" id="zoteroApiKeyContainer"></div>
<div><button onclick="sync()">sync</button></div>
<div class="help">
<hr>
<p>
This tool reads your Zotero library, finds items imported by URL, looks for
associated Hypothesis annotations, and syncs them to Zotero as child notes.
</p>
<p>Existing annotations added to Hypothesis will sync to Zotero.</p>
<p>If you resync with no changes in Zotero or Hypothesis, nothing will happen.</p>
<p>If you delete a Hypothesis-synced note from Zotero, then resync, it will reappear.</p>
<p>If you update an annotation in Hypothesis, it won't resync to Zotero unless you delete the corresponding
note in Zotero.</p>
<p>Only top-level annotations will sync, replies are ignored.</p>
</ul>
</div>
</div>
<div id="viewer"></div>
<script src="https://jonudell.info/hlib/hlib2.bundle.js"></script>
<script src="./index.js"></script>
</body>
</html>