-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from samvera/test-google-search-box
Test switching to google search box
- Loading branch information
Showing
6 changed files
with
46 additions
and
32 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,12 @@ | ||
<div class="grid" id="searchBar"> | ||
<div> | ||
<div id="search"> | ||
<!-- this didn't work locally for me: form role="search" method="get" action="{{ site.baseurl }}//search/" --> | ||
<form role="search" method="get" action="/search"> | ||
<input id="searchString" name="searchString" | ||
placeholder="Enter search term" type="text"> | ||
<input id="searchButton" name="googleSearchName" type="submit" value="Search"> | ||
</form> | ||
</div> | ||
</div> | ||
</div> |
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
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 |
---|---|---|
|
@@ -51,7 +51,6 @@ | |
); | ||
</script> | ||
{% endif %} | ||
|
||
</head> | ||
<body> | ||
{% include topnav.html %} | ||
|
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,21 @@ | ||
--- | ||
layout: page | ||
title: Search | ||
permalink: /search/ | ||
sitemap: false | ||
--- | ||
<div id="home-search" class="home"> | ||
<script> | ||
(function() { | ||
var cx = '008344980058477898326:akk3ovisc-i'; | ||
var gcse = document.createElement('script'); | ||
gcse.type = 'text/javascript'; | ||
gcse.async = true; | ||
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + | ||
'//www.google.com/cse/cse.js?cx=' + cx; | ||
var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(gcse, s); | ||
})(); | ||
</script> | ||
<gcse:search queryParameterName="searchString"></gcse:search> | ||
</div> |