Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add generation of HTML search page from search_template.html; require…
…s jQuery UI
- Loading branch information
Geoffrey Broadwell
committed
Jul 20, 2012
1 parent
36fe0e4
commit 1b78322
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
| <title>Perl 6 Doc Search</title> | ||
| <link type="text/css" href="css/custom-theme/jquery-ui-1.8.21.custom.css" rel="stylesheet" /> | ||
| <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> | ||
| <script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script> | ||
| <script type="text/javascript"> | ||
| function display () { | ||
| var iframe_doc = $("#buffer").get()[0].contentDocument; | ||
| $("#display").html(iframe_doc.body.innerHTML); | ||
| } | ||
| $(function(){ | ||
| $("#query").autocomplete({ | ||
| source: [ | ||
| ITEMS | ||
| ], | ||
| select: function (event, ui) { | ||
| $("#buffer").attr("src", ui.item.url); | ||
| } | ||
| }).focus(); | ||
| }); | ||
| </script> | ||
| <style type="text/css"> | ||
| #buffer { height: 0; width: 0; border: none; } | ||
|
|
||
| </style> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div id="search" class="ui-widget"> | ||
| <label for="query">Search for: </label> | ||
| <input id="query" style="z-index: 100; position: relative" title="Enter Perl 6 document to search for" /> | ||
| </div> | ||
| <div id="display"></div> | ||
| <iframe id="buffer" onload="display()"></iframe> | ||
| </body> | ||
| </html> |