Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73166 - in website/public_html/beta: common style-v2 style-v2/css_0
From: dnljms_at_[hidden]
Date: 2011-07-17 05:58:12


Author: danieljames
Date: 2011-07-17 05:58:11 EDT (Sun, 17 Jul 2011)
New Revision: 73166
URL: http://svn.boost.org/trac/boost/changeset/73166

Log:
Website: New google search box. Refs #5691.

Not very well styled. Also causes page rendering to stop while it fetches the
renders the form, this is pretty rubbish but I can't see an easy way to get
round that.

Text files modified:
   website/public_html/beta/common/sidebar-search.html | 32 +++++++++------------
   website/public_html/beta/style-v2/basic.css | 3 ++
   website/public_html/beta/style-v2/css_0/sidebar.css | 58 +++++----------------------------------
   3 files changed, 25 insertions(+), 68 deletions(-)

Modified: website/public_html/beta/common/sidebar-search.html
==============================================================================
--- website/public_html/beta/common/sidebar-search.html (original)
+++ website/public_html/beta/common/sidebar-search.html 2011-07-17 05:58:11 EDT (Sun, 17 Jul 2011)
@@ -1,20 +1,16 @@
   <div id="search">
- <div id="search-0">
- <form method="get" action="http://www.google.com/custom">
- <h4><input type="hidden" name="cof" value=
- "LW:277;L:http://www.boost.org/boost.png;LH:86;AH:center;GL:0;S:http://www.boost.org;AWFID:9b83d16ce652ed5a;" />
- <input type="hidden" name="sa" value="Google Search" /> <input type=
- "hidden" name="domains" value="www.boost.org;lists.boost.org" />
- <input type="hidden" name="hq" value=
- "site:www.boost.org OR site:lists.boost.org" /> <label id=
- "search-label" for="q">Search</label> <span id=
- "search-text"><input type="text" name="q" id="q" size="10" maxlength=
- "255" alt="Search Text" /></span></h4>
- </form>
- </div>
-
- <p><span id="google"><a href="http://www.google.com/search"><img src=
- "/gfx/google_logo_25wht.gif" alt="Google" /></a></span></p>
-
- <div class="box-bottom"></div>
+<!-- Created at http://www.google.com/cse/ -->
+<div id="cse-search-form" style="width: 100%;">Loading</div>
+<script src="http://www.google.com/jsapi" type="text/javascript"></script>
+<script type="text/javascript">
+ google.load('search', '1', {language : 'en'});
+ google.setOnLoadCallback(function() {
+ var customSearchControl = new google.search.CustomSearchControl('011577717147771266991:jigzgqluebe');
+ customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
+ var options = new google.search.DrawOptions();
+ options.enableSearchboxOnly("http://google.com/cse?cx=011577717147771266991:jigzgqluebe");
+ customSearchControl.draw('cse-search-form', options);
+ }, true);
+</script>
+<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
   </div>

Modified: website/public_html/beta/style-v2/basic.css
==============================================================================
--- website/public_html/beta/style-v2/basic.css (original)
+++ website/public_html/beta/style-v2/basic.css 2011-07-17 05:58:11 EDT (Sun, 17 Jul 2011)
@@ -16,3 +16,6 @@
 /*/
 @import url(css_0/theme_grass/theme.css);
 /* */
+
+/* For google search box */
+@import url(http://www.google.com/cse/style/look/default.css)
\ No newline at end of file

Modified: website/public_html/beta/style-v2/css_0/sidebar.css
==============================================================================
--- website/public_html/beta/style-v2/css_0/sidebar.css (original)
+++ website/public_html/beta/style-v2/css_0/sidebar.css 2011-07-17 05:58:11 EDT (Sun, 17 Jul 2011)
@@ -15,7 +15,7 @@
 }
 #sidebar #search {
   width: 16em;
- margin: 0em 0em 0.25em 0em;
+ margin: 0em 0em 0.5em 0em;
 }
 
 /**** The menus... ****/
@@ -103,56 +103,14 @@
 
 /**** Search... ****/
 /* Search box */
-#sidebar #search {
-}
-#sidebar #search #search-0 {
- font-family: "Times New Roman",serif;
- font-variant: small-caps;
- margin: 0em 0em 0.25em 0em;
- border: #CCCCCC 1px solid;
- padding: 2px 2px 2px 0.5em;
-}
-#sidebar #search h4 {
+#search input.gsc-input {
+ border-color: #CCCCCC;
 }
-#sidebar #search #search-label {
- float: left;
-}
-/* - The various parts of the search widget. */
-#sidebar #search #search-text {
- margin: 0em;
- padding: 0em;
- display: block;
- text-align: right;
-}
-#sidebar #search #search-text #q {
- font-size: 90%;
- width: 12.5em;
- /* width: 11.5em; */
- margin: 0em 0em 0em 0em;
- padding: 0em;
- border: none;
- color: #000000;
- background-color: #CCCCCC;
-}
-/* - The custom Google banner and link. */
-#sidebar #search #google {
- display: block;
- margin: 0em 0em 17px 0em;
- padding: 0em;
- border: none;
- border-bottom: 1px solid #CCCCCC;
- text-align: center;
- overflow: visible;
- height: 15px;
-}
-#sidebar #search #google a {
- color: #000000;
-}
-#sidebar #search #google img {
- width: 75px; height: 32px;
- margin: 0em 0em 0em 0em;
- border: none;
- background: #FFFFFF;
+#search input.gsc-search-button {
+ border-color: #6B9D68;
+ background-color: #6B9D68;
+ color: #fff;
+ padding: 2px;
 }
 /* The download button... */
 #get-boost {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk