haiku/docs/user/header.html
Augustin Cavalier 67e4499bbe Add search function to the API docs.
* Uses Google site search.
 * CSS taken from the User Guide Translator's CSS.

Signed-off-by: John Scipione <jscipione@gmail.com>
2014-06-30 15:22:52 -04:00

18 lines
628 B
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF8">
<title>$title</title>
<link href="book.css" rel="stylesheet" type="text/css">
<script type="text/javascript">function search(n,e){if(e.keyCode==13)window.location.href='https://www.google.com/search?q='+encodeURIComponent('site:api.haiku-os.org '+n.value);}</script>
</head>
<body>
<div id="banner">
<div class="logo">
<span class="subtitle">
API Documentation<br>
<input type="text" placeholder="Search" onkeydown="search(this,event);">
</span>
</div>
</div>