Last active
August 29, 2015 14:23
-
-
Save cacheleocode/d02ad3e4cfd438cfd00e to your computer and use it in GitHub Desktop.
old dn search
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form action="/{{ lang }}/search/" id="sitesearch" class="search"> | |
| <div> | |
| <input type="hidden" name="cx" value="{{ GOOGLE_SEARCH_PASSWORD }}" /> | |
| <input type="hidden" name="cof" value="FORID:11" /> | |
| <input type="hidden" name="ie" value="UTF-8" /> | |
| <input type="hidden" name="hl" value="" /> | |
| <input id="id_search_q" type="text" class="query" value="" name="q" | |
| /><input type="submit" name="sa" class="submit" value="{% trans "Search" %}" /> | |
| </div> | |
| </form> | |
| <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=sitesearch&lang={{ lang }}"></script> | |
| <form action="/{{ lang }}/search/" id="search" class="search"> | |
| <h1>{% trans "Search" %}</h1> | |
| <div> | |
| <input type="hidden" name="cx" value="{{ GOOGLE_SEARCH_PASSWORD }}" /> | |
| <input type="hidden" name="cof" value="FORID:11" /> | |
| <input type="hidden" name="ie" value="UTF-8" /> | |
| <input type="hidden" name="hl" value="" /> | |
| <input id="id_search_q" type="text" class="query" value="" name="q" /> | |
| <input type="submit" name="sa" class="submit" value="{% trans "Search" %}" /> | |
| <br/> | |
| {% ifnotequal LANG "en" %}<a href="/en/search/">English</a> {% endifnotequal %} | |
| {% ifnotequal LANG "ja" %}<a href="/ja/search/">日本語</a> {% endifnotequal %} | |
| {% ifnotequal LANG "es" %}<a href="/es/search/">Español</a> {% endifnotequal %} | |
| {% ifnotequal LANG "pt" %}<a href="/pt/search/">Português</a> {% endifnotequal %} | |
| </div> | |
| </form> | |
| <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=search&lang={{ lang }}"></script> | |
| <div id="cse-search-results"> | |
| {% if search_results %}<h1>{% trans "Search results" %}</h1>{% endif %} | |
| <div id="cse-search-results-js-required"> | |
| The Django documentation search uses a Google Custom Search, which requires Javascript. | |
| If your results don't appear here shortly, please | |
| <a href="http://www.google.com/cse?q=&cx={{ GOOGLE_SEARCH_PASSWORD }}&hl=&as_q=more%3Adev_docs&sa=Search&ie=UTF-8">view the results on Google's site</a>. | |
| </div> | |
| </div> | |
| <script type="text/javascript"> | |
| var googleSearchMessage = document.getElementById("cse-search-results-js-required"); | |
| googleSearchMessage.parentNode.removeChild(googleSearchMessage); | |
| var googleSearchIframeName = "cse-search-results"; | |
| var googleSearchFormName = "cse-search-box"; | |
| var googleSearchDomain = "www.google.com"; | |
| var googleSearchPath = "/cse"; | |
| </script> | |
| <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment