-
Notifications
You must be signed in to change notification settings - Fork 63
/
search.html
48 lines (42 loc) · 920 Bytes
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
permalink: /search
layout: default
---
<!-- Style -->
<style type="text/css" media="screen">
.container {
text-align: center;
}
.list {
text-align: left;
}
h1 {
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
form {
text-align: center;
}
</style>
<!-- Script -->
<script type="text/javascript">
function openURL()
{
// get text box content
var name = document.getElementById('q').value;
// create Google search URL
var url = 'https://www.google.com/search?q=site%3AStatProofBook.github.io+%22' + encodeURIComponent(name) + '%22';
// open Google search URL
window.location.href = url;
}
</script>
<!-- Heading -->
<div class="container">
<h1>Search the StatProofBook</h1>
</div>
<!-- Form -->
<form name="Search">
<input type="text" maxlength="100" name="q" id="q"/>
<input type="button" onclick="openURL()" value="Google Search"/>
</form>