155 lines
5.7 KiB
HTML
155 lines
5.7 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8" />
|
||
|
<meta name="robots" content="index, follow, all" />
|
||
|
<title>Search | API</title>
|
||
|
|
||
|
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
||
|
<link rel="stylesheet" type="text/css" href="css/bootstrap-theme.min.css">
|
||
|
<link rel="stylesheet" type="text/css" href="css/sami.css">
|
||
|
<script src="js/jquery-1.11.1.min.js"></script>
|
||
|
<script src="js/bootstrap.min.js"></script>
|
||
|
<script src="js/typeahead.min.js"></script>
|
||
|
<script src="sami.js"></script>
|
||
|
<meta name="MobileOptimized" content="width">
|
||
|
<meta name="HandheldFriendly" content="true">
|
||
|
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
|
||
|
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body id="search-page" data-name="" data-root-path="">
|
||
|
<div id="content">
|
||
|
<div id="left-column">
|
||
|
<div id="control-panel">
|
||
|
<script>
|
||
|
$('option[data-version="'+window.projectVersion+'"]').prop('selected', true);
|
||
|
</script>
|
||
|
<form id="search-form" action="search.html" method="GET">
|
||
|
<span class="glyphicon glyphicon-search"></span>
|
||
|
<input name="search"
|
||
|
class="typeahead form-control"
|
||
|
type="search"
|
||
|
placeholder="Search">
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div id="api-tree"></div>
|
||
|
|
||
|
</div>
|
||
|
<div id="right-column">
|
||
|
<nav id="site-nav" class="navbar navbar-default" role="navigation">
|
||
|
<div class="container-fluid">
|
||
|
<div class="navbar-header">
|
||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-elements">
|
||
|
<span class="sr-only">Toggle navigation</span>
|
||
|
<span class="icon-bar"></span>
|
||
|
<span class="icon-bar"></span>
|
||
|
<span class="icon-bar"></span>
|
||
|
</button>
|
||
|
<a class="navbar-brand" href="index.html">API</a>
|
||
|
</div>
|
||
|
<div class="collapse navbar-collapse" id="navbar-elements">
|
||
|
<ul class="nav navbar-nav">
|
||
|
<li><a href="classes.html">Classes</a></li>
|
||
|
<li><a href="namespaces.html">Namespaces</a></li>
|
||
|
<li><a href="interfaces.html">Interfaces</a></li>
|
||
|
<li><a href="traits.html">Traits</a></li>
|
||
|
<li><a href="doc-index.html">Index</a></li>
|
||
|
<li><a href="search.html">Search</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
|
||
|
<div id="page-content">
|
||
|
|
||
|
<div class="page-header">
|
||
|
<h1>Search</h1>
|
||
|
</div>
|
||
|
|
||
|
<p>This page allows you to search through the API documentation for
|
||
|
specific terms. Enter your search words into the box below and click
|
||
|
"submit". The search will be performed on namespaces, classes, interfaces,
|
||
|
traits, functions, and methods.</p>
|
||
|
|
||
|
<form class="form-inline" role="form" action="search.html" method="GET">
|
||
|
<div class="form-group">
|
||
|
<label class="sr-only" for="search">Search</label>
|
||
|
<input type="search" class="form-control" name="search" id="search" placeholder="Search">
|
||
|
</div>
|
||
|
<button type="submit" class="btn btn-default">submit</button>
|
||
|
</form>
|
||
|
|
||
|
<h2>Search Results</h2>
|
||
|
|
||
|
<div class="container-fluid">
|
||
|
<ul class="search-results"></ul>
|
||
|
</div>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
(function() {
|
||
|
var term = Sami.cleanSearchTerm();
|
||
|
|
||
|
if (!term) {
|
||
|
$('h2').hide();
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
$('#search').val(term);
|
||
|
var container = $('.search-results');
|
||
|
var results = Sami.search(term);
|
||
|
var len = results.length;
|
||
|
|
||
|
if (len == 0) {
|
||
|
container.html('No results were found');
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
for (var i = 0, text_content = ''; i < len; i++) {
|
||
|
|
||
|
var ele = results[i];
|
||
|
var contents = '<li><h2 class="clearfix">';
|
||
|
var class_name = Sami.getSearchClass(ele.type);
|
||
|
contents += '<a href="' + ele.link + '">' + ele.name + '</a>';
|
||
|
contents += '<div class="search-type type-' + ele.type + '"><span class="pull-right label ' + class_name + '">' + ele.type + '</span></div>';
|
||
|
contents += '</h2>';
|
||
|
|
||
|
if (ele.fromName && ele.fromLink) {
|
||
|
contents += '<div class="search-from">from <a href="' + ele.fromLink + '">' + ele.fromName + '</a></div>';
|
||
|
}
|
||
|
|
||
|
contents += '<div class="search-description">';
|
||
|
|
||
|
// Add description, decode entities, and strip wrapping quotes
|
||
|
if (ele.doc) {
|
||
|
text_content = $('<p>' + ele.doc + '</p>').text();
|
||
|
if (text_content[0] == '"') {
|
||
|
text_content = text_content.substring(1);
|
||
|
}
|
||
|
if (text_content[text_content.length - 1] == '"') {
|
||
|
text_content = text_content.substring(0, text_content.length - 1);
|
||
|
}
|
||
|
contents += text_content;
|
||
|
}
|
||
|
|
||
|
contents += '</div></li>';
|
||
|
container.append($(contents));
|
||
|
}
|
||
|
})();
|
||
|
</script>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<div id="footer">
|
||
|
Generated by <a href="http://sami.sensiolabs.org/">Sami, the API Documentation Generator</a>.
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
</html>
|