-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
76 lines (65 loc) · 4.29 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
75
76
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/main.css" media="screen">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="javascripts/murmurhash2_gc.js"></script>
<script src="javascripts/murmurHash3.js"></script>
<script src="javascripts/main.js"></script>
<title>MurmurHash Online - An online version of MurmurHash by ShoreLabs</title>
<meta name="description" content="An online version of Murmurhash and NGINX http_split_clients_module behaviour testing utility." />
<link rel="canonical" href="http://murmurhash.shorelabs.com/"/>
</head>
<body>
<noscript><section class="js-warning">Please enable Javascript in your browser for this page to work!</section></noscript>
<header>
<div class="container">
<h1>MurmurHash online <a href="https://github.com/shorelabs/murmurhash-online" class="btn btn-github"><span class="icon"></span>View on GitHub</a></h1>
<h2>An online implementation of MurmurHash - <a href="http://en.wikipedia.org/wiki/MurmurHash">http://en.wikipedia.org/wiki/MurmurHash</a></h2>
</div>
</header>
<div class="container">
<section>
<form id="murmurhash2-form" data-method="murmurhash2_32_gc">
<h3><a name="murmurhash2" class="anchor" href="#murmurhash2"><span class="octicon octicon-link"></span></a>MurmurHash2 (32 bit)</h3>
<textarea class="str" data-attr="str" placeholder="An ASCII text" rows="5"></textarea>
<input class="result" data-result="value" readonly="1" disabled="1" placeholder="Result - 32-bit positive integer hash"/>
<input class="percent" data-result="percent" readonly="1" disabled="1" placeholder="%" title="position within range (result / uint32_max)"/>
<input type="text" class="seed" data-attr="seed" placeholder="Optional seed - positive integer (uint32)"/>
</form>
</section>
<hr/>
<section>
<form id="murmurhash3-form" data-method="murmurHash3">
<h3><a name="murmurhash2" class="anchor" href="#murmurhash2"><span class="octicon octicon-link"></span></a>MurmurHash3 (32/128 bit, x86/x64)</h3>
<textarea class="str" data-attr="str" placeholder="An ASCII text" rows="5"></textarea>
<!--<a href="#" class="btn submit">Go</a>-->
<input class="result" data-result="value" readonly="1" disabled="1" placeholder="Result - positive integer/hex hash"/>
<input class="percent" data-result="percent" readonly="1" disabled="1" placeholder="%" title="position within range (result / RESULT_MAX)"/>
<input type="text" class="seed small" data-attr="seed" placeholder="Optional seed"/>
<select name="meth2" class="meth">
<option value="hash32">32 bit</option>
<option value="hash128">128 bit</option>
</select>
<select name="meth1" class="meth">
<option value="x86">x86</option>
<option value="x64">x64</option>
</select>
</form>
</section>
<hr/>
<section>
<form id="nginx-split-clients-form" data-method="murmurhash2_32_gc">
<h3><a name="murmurhash2" class="anchor" href="#murmurhash2"><span class="octicon octicon-link"></span></a>NGINX http_split_clients_module testing</h3>
<textarea class="config" data-attr="config" placeholder='NGINX split_clients_module configuration like: 0.5% .one; 2.0% .two; * "";' rows="5"></textarea>
<textarea class="str" data-attr="str" placeholder="Values you want to test, one per line. Please make sure you enter them exactly as seen by NGINX without any leading or trailing spaces." rows="8"></textarea>
<textarea class="result" data-result="value" readonly="1" disabled="1" placeholder="" rows="8"></textarea>
</form>
</section>
</div>
</body>
</html>