forked from GitHub/gf-core
GF home page: adding an experimental site search box
This commit is contained in:
15
index.html
15
index.html
@@ -1,12 +1,23 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
<!DOCTYPE html>
|
||||||
<HTML>
|
<HTML>
|
||||||
<HEAD>
|
<HEAD>
|
||||||
<TITLE>GF - Grammatical Framework</TITLE>
|
<TITLE>GF - Grammatical Framework</TITLE>
|
||||||
<link rel=stylesheet href="css/style.css">
|
<link rel=stylesheet href="css/style.css">
|
||||||
|
<script type="text/javascript">
|
||||||
|
function sitesearch() {
|
||||||
|
var q=document.forms[0].q.value;
|
||||||
|
var site=" site:www.grammaticalframework.org";
|
||||||
|
var search=encodeURIComponent(q+site)
|
||||||
|
document.location.href="http://www.google.com/search?q="+search
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</HEAD>
|
</HEAD>
|
||||||
|
|
||||||
<BODY>
|
<BODY>
|
||||||
|
<script type="text/javascript">
|
||||||
|
document.write('<div style="text-align: right"> <form onsubmit="return sitesearch()" method=get action="http://www.google.com/search"> <input type=search name="q" placeholder="site search"> <input type=submit value="Search"> </form></div>')
|
||||||
|
</script>
|
||||||
<div class=center>
|
<div class=center>
|
||||||
<IMG SRC="doc/Logos/gf0.png" alt="">
|
<IMG SRC="doc/Logos/gf0.png" alt="">
|
||||||
<H1>Grammatical Framework</H1>
|
<H1>Grammatical Framework</H1>
|
||||||
|
|||||||
Reference in New Issue
Block a user