| /trunk/demos/search/demo.html r33 | /trunk/demos/search/demo.html r41 | ||
| Properties | |||
| svn:mime-type | |||
| 1 | text/html | ||
| Contents | |||
| 1 | <html> | 1 | <html> |
| 2 | <head> | 2 | <head> |
| 3 | 3 | ||
| 4 | <link rel="stylesheet" type="text/css" href="../../src/pubtools-search.css"></link> | 4 | <link rel="stylesheet" type="text/css" href="../../src/pubtools-search.css"></link> |
| 5 | 5 | ||
| 6 | <script type="text/javascript" src="../../src/pubtools-util.js"></script> | 6 | <script type="text/javascript" src="../../src/pubtools-util.js"></script> |
| 7 | <script type="text/javascript" src="../../src/pubtools-search.js"></script> | 7 | <script type="text/javascript" src="../../src/pubtools-search.js"></script> |
| 8 | 8 | ||
| 9 | <style> | 9 | <style> |
| 10 | #instructions { | 10 | #instructions { |
| 11 | width: 80%; | 11 | width: 80%; |
| 12 | } | 12 | } |
| 13 | </style> | 13 | </style> |
| 14 | 14 | ||
| 15 | <!-- | 15 | <!-- |
| 16 | Point to a text file that has our list of URLs to index and search | 16 | Point to a text file that has our list of URLs to index and search |
| 17 | on the client-side. If URL not given, defaults to 'search.txt' relative | 17 | on the client-side. If URL not given, defaults to 'search.txt' relative |
| 18 | to the current HTML page. | 18 | to the current HTML page. |
| 19 | --> | 19 | --> |
| 20 | <!-- | 20 | <!-- |
| 21 | <link rel="search.urls" href="search.txt"></link> | 21 | <link rel="search.urls" href="search.txt"></link> |
| 22 | --> | 22 | --> |
| 23 | 23 | ||
| 24 | <!-- | 24 | <!-- |
| 25 | Give the ID of an HTML element that we will dynamically insert the | 25 | Give the ID of an HTML element that we will dynamically insert the |
| 26 | search UI into. If you don't provide an ID, defaults to | 26 | search UI into. If you don't provide an ID, defaults to |
| 27 | 'st-widget', such as <div id="st-widget"></div> | 27 | 'st-widget', such as <div id="st-widget"></div> |
| 28 | --> | 28 | --> |
| 29 | <!-- | 29 | <!-- |
| 30 | <meta name="search.widget" content="st-widget"></meta> | 30 | <meta name="search.widget" content="st-widget"></meta> |
| 31 | --> | 31 | --> |
| 32 | 32 | ||
| 33 | <title>Demo of PubTools Search</title> | 33 | <title>Demo of PubTools Search</title> |
| 34 | </head> | 34 | </head> |
| 35 | 35 | ||
| 36 | <body> | 36 | <body> |
| 37 | <h1>Demo of PubTools Search</h1> | 37 | <h1>Demo of PubTools Search</h1> |
| 38 | 38 | ||
| 39 | <p id="instructions">Easily drop a simple client-side search | 39 | <p id="instructions">Easily drop a simple client-side search |
| 40 | engine into your page. This page indexes and allows you to locally | 40 | engine into your page. This page indexes and allows you to locally |
| 41 | search over several public domain books from Project Gutenberg, | 41 | search over several public domain books from Project Gutenberg, |
| 42 | including Plato, Goethe, Montaigne, and more. Try searching for | 42 | including Plato, Goethe, Montaigne, and more. Try searching for |
| 43 | 'history'. Notice how the search returns results locally as you type.</p> | 43 | 'history'. Notice how the search returns results locally as you type.</p> |
| 44 | 44 | ||
| 45 | <div id="st-widget"></div> | 45 | <div id="st-widget"></div> |
| 46 | </body> | 46 | </body> |
| 47 | </html> | 47 | </html> |