-
Notifications
You must be signed in to change notification settings - Fork 3
/
demo.html
35 lines (32 loc) · 1.16 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width">
<title>TypoReporter example</title>
<style>
.ReportTypo {font-family: sans; position: fixed; margin: auto; padding: 12px; top: 30%; left: 0; right: 0; max-width: 480px; background: #d7d7d7; border: 1px solid #aaa;}
.ReportTypo-message {font-family: mono; width: 100%; height: 50px; margin: 12px 0;}
.ReportTypo-comment {display: block; width: 100%; height: 100px;}
.ReportTypo-header {font-size: 21px; font-weight: bold;}
.ReportTypo-label {margin: 12px 0 6px 0;}
.ReportTypo-heighlight {
color: red;
font-weight: bold;
text-decoration: underline;
}
</style>
</head>
<body>
<p>Select some text containing a typo on this page and hit "CTRL+Enter"</p>
<p>This txet <b>contins</b> a bnuch of typos.</p>
<script src="lib/TypoReporter.min.js"></script>
<script type="text/javascript">
var rootNode = document.createElement('div');
document.body.appendChild(rootNode);
var typo = new TypoReporter({
formId: '1FAIpQLSd4bAaZYLlY38abAVosRCuZw9jJpe18sXK522IyftFYQdkvkg'
}, rootNode);
</script>
</body>
</html>