Lines 60-65
def alpha_url(baseurl):
Link Here
|
60 |
rel="search" type="application/opensearchdescription+xml" |
60 |
rel="search" type="application/opensearchdescription+xml" |
61 |
href="http://www.gentoo.org/search/packages-gentoo-org.xml" |
61 |
href="http://www.gentoo.org/search/packages-gentoo-org.xml" |
62 |
title="Gentoo Packages" /> |
62 |
title="Gentoo Packages" /> |
|
|
63 |
<script type="text/javascript"> |
64 |
function el(id) { |
65 |
if (document.getElementById) { //W3C |
66 |
return document.getElementById(id); |
67 |
} else if (document.all) { //IE |
68 |
return document.all[id]; |
69 |
} |
70 |
} |
71 |
window.onload = function() { |
72 |
el('searchString').onkeydown = function(e) { |
73 |
var key = (e)? e.keyCode : window.event.keyCode; |
74 |
if (key == 13) { // if ENTER is pressed |
75 |
var siteSearch = 'http://www.google.com/search?q=site:packages.gentoo.org '; |
76 |
var terms = el('searchString').value; |
77 |
|
78 |
window.location = siteSearch + terms; |
79 |
|
80 |
return false; //trap this key |
81 |
} |
82 |
|
83 |
return true; //bubble through |
84 |
} |
85 |
} |
86 |
</script> |
63 |
</head> |
87 |
</head> |
64 |
</py:match> |
88 |
</py:match> |
65 |
|
89 |
|
Lines 68-73
def alpha_url(baseurl):
Link Here
|
68 |
<div id="banner"> |
92 |
<div id="banner"> |
69 |
<a href="/"><img src="/media/packages_gentoo_logo.jpg" alt="Gentoo Logo" /></a> |
93 |
<a href="/"><img src="/media/packages_gentoo_logo.jpg" alt="Gentoo Logo" /></a> |
70 |
</div> |
94 |
</div> |
|
|
95 |
<div id="search"> |
96 |
<form> |
97 |
<label for="searchString"><p>Search:</p></label> |
98 |
<input type="text" id="searchString" name="searchString" size="16" /> |
99 |
</form> |
100 |
</div> |
71 |
<div py:for="day, pvs in daylist"> |
101 |
<div py:for="day, pvs in daylist"> |
72 |
<p>${day}</p> |
102 |
<p>${day}</p> |
73 |
<ul> |
103 |
<ul> |
74 |
- |
|
|