README.rst: Unwind 'If ..., returns a 404' -> 'Returns a 404 if ...'
[nmhive.git] / index.html
1 <!DOCTYPE html>
2 <html>
3         <head>
4                 <meta charset="UTF-8"/>
5
6 <!--
7 Copyright (C) 2014 W. Trevor King <wking@tremily.us>
8
9 Redistribution and use in source and binary forms, with or without
10 modification, are permitted provided that the following conditions are met:
11
12 * Redistributions of source code must retain the above copyright notice, this
13 list of conditions and the following disclaimer.
14
15 * Redistributions in binary form must reproduce the above copyright notice,
16 this list of conditions and the following disclaimer in the documentation
17 and/or other materials provided with the distribution.
18
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 POSSIBILITY OF SUCH DAMAGE.
30 -->
31
32                 <style media="screen" type="text/css">
33                         img {
34                                 display: block;
35                                 margin-left: auto;
36                                 margin-right: auto;
37                                 border: 2px solid black;
38                                 border-radius: 6px;
39                         }
40                 </style>
41
42                 <script type="text/javascript">
43                         function load_bookmarklet(id, source) {
44                                 var request = new XMLHttpRequest();
45                                 request.overrideMimeType('text/plain');
46                                 request.onload = function () {
47                                         var element = document.getElementById(id);
48                                         var href = 'javascript:(function () {\n' + this.responseText + '\n run();})();';
49                                         element.setAttribute('href', href);
50                                 };
51                                 request.open('get', source, true);
52                                 request.send();
53                         }
54                 </script>
55         </head>
56         <body onload="load_bookmarklet('nmbug', 'nmbug.js');">
57                 <p>
58                         This is the <a id="nmbug">nmbug</a> bookmarklet.
59                 </p>
60                 <p>
61                         To use it, just copy the link into your bookmarks, and start
62                         browsing <a href="http://gmane.org/">Gmane</a>.  When you want
63                         to view or edit tags on the message you're viewing, click on the
64                         bookmarklet.  It will pop up a dialog with the list of available
65                         tags with the currently selected tags highlighted:
66                 </p>
67                 <img src="static/article.png"/>
68                 <p>
69                         Clicking on any tag will toggle its selection.  For each tag
70                         change, the bookmarklet will <code>POST</code> to
71                         the <a href="https://github.com/wking/nmhive">nmhive</a> server,
72                         which commits the change to its nmbug database.
73                 </p>
74         </body>
75 </html>