Skip to content

Commit

Permalink
Add search within current document
Browse files Browse the repository at this point in the history
  • Loading branch information
dondizon committed Mar 8, 2016
1 parent fe29daa commit 2941c12
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: page
title: Search User Guide
permalink: /search/
---

<p>Enter a search string then press Enter or click Search</p>

<script>
function googleSearch() {
var searchString = document.getElementById("searchString").value;
var prefix = "https://www.google.com/search?q=";
var suffix = "%20site:docs.evostream.com/ems_user_guide";
searchURL = prefix + encodeURI(searchString) + suffix;
window.open(searchURL);
}
</script>

<form onChange="googleSearch()">
<input type="text" id="searchString" size="50"><br><br>
<input type="button" onClick="googleSearch()" value="Search"><br>
</form>

0 comments on commit 2941c12

Please sign in to comment.