Difference between revisions of "Template:Exeter"

Line 469: Line 469:
 
</style>
 
</style>
  
<script type="text/javascript">
+
<script>
     document.getElementById('frmSearch').onsubmit = function() {
+
  (function() {
        window.location = 'http://www.google.com/search?q=site:https://2015.igem.org/Team:Exeter' + document.getElementById('txtSearch').value;
+
     var cx = '013872312295473225681:zjqk8ipootc';
        return false;
+
    var gcse = document.createElement('script');
    }
+
    gcse.type = 'text/javascript';
 +
    gcse.async = true;
 +
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
 +
        '//cse.google.com/cse.js?cx=' + cx;
 +
    var s = document.getElementsByTagName('script')[0];
 +
    s.parentNode.insertBefore(gcse, s);
 +
  })();
 
</script>
 
</script>
 +
<gcse:search></gcse:search>
  
 
<script>
 
<script>
Line 618: Line 625:
 
     </li>
 
     </li>
 
         <li class="navbar-search">
 
         <li class="navbar-search">
         <!--<div class="input-group custom-search-form">
+
         <div class="input-group custom-search-form">
 
                 <form id="frmSearch" method="get" action="default.html" />
 
                 <form id="frmSearch" method="get" action="default.html" />
 
                 <input id="txtSearch" type="text" class="form-control" placeholder="Search...">
 
                 <input id="txtSearch" type="text" class="form-control" placeholder="Search...">
Line 626: Line 633:
 
                 </button>
 
                 </button>
 
                 </span>
 
                 </span>
             </div>-->
+
             </div>
 
             <!-- /input-group -->
 
             <!-- /input-group -->
<!--<form id="frmSearch" class="search2" method="get" action="default.html" />
 
<input class="search2" id="txtSearch" type="text" name="serach_bar" size="31" maxlength="255"     
 
value="" style="left: 396px; top: 153px; width: 293px; height: 26px;" />
 
<input class="search1" type="submit" name="submition" value="Search" style=" padding- 
 
bottom:20px; left: 691px; top: 153px; height: 23px" />
 
<input class="search2" type="hidden" name="sitesearch" value="default.html" />-->
 
 
         </li>
 
         </li>
 
       </ul><!-- /.navbar-nav -->
 
       </ul><!-- /.navbar-nav -->

Revision as of 00:19, 19 September 2015