/
test.html
executable file
·56 lines (44 loc) · 1.51 KB
/
test.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
<html>
<head>
<title>JSKOMMENT Test</title>
<!-- required -->
<script src="https://code.jquery.com/jquery.min.js"></script>
<!-- optional, if you want to use Flash -->
<!-- <script src="lib/swfobject.js"></script> -->
<!-- optional, if you want to support browser with no native support for JSON-->
<!-- <script src="http://www.JSON.org/json2.js"></script> -->
<script>
JSKOMMENT_CONFIG={};
JSKOMMENT_CONFIG.url = "server/";
// this URL should return a captcha challenge as JSON
// {
// "challenge_id": "foobar",
//
// // a base64 encoded JPEG image
// "challenge_data" = "76HEBN20jheiutgvh7EJHKZR3ljh......"
// }
JSKOMMENT_CONFIG.captcha_url = 'captcha.php';
JSKOMMENT_CONFIG.authenticate = function(elem) {
JSKOMMENT.authenticate_with_captcha_default(elem);
};
</script>
<script src="client/jskomment-core.js"></script>
</head>
<body>
You can copy this page on another server, the comments will remain, except the first thread which is identified by the page URL (see HTML source).
<h2>this page</h2>
You will receive a legacy which will place you above want.
<!-- No title attribute, the comment thread is identified by the page URL -->
<div class="jskomment"></div>
<h2>foo</h2>
Caution: breathing may be hazardous to your health.
<div class="jskomment" title="http://foo"></div>
<br/>
<h2>bar</h2>
Noise proves nothing. Often a hen who has merely laid an egg cackles
as if she laid an asteroid.
-- Mark Twain
<div class="jskomment" title="http://bar"></div>
</body>
<script> JSKOMMENT.main(); </script>
</html>