mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-04-24 15:27:17 +00:00
test search form
This commit is contained in:
parent
e44a44b0db
commit
3b6144dd42
@ -1,13 +1,11 @@
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var cx = '000833618047197874644:rilf4jpvgyo';
|
||||
var gcse = document.createElement('script');
|
||||
gcse.type = 'text/javascript';
|
||||
gcse.async = true;
|
||||
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
|
||||
'//www.google.com/cse/cse.js?cx=' + cx;
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(gcse, s);
|
||||
})();
|
||||
</script>
|
||||
<gcse:search></gcse:search>
|
||||
<form name="gcse" role="search" action="http://www.google.ru/cse">
|
||||
<input type="hidden" name="cx" value="000833618047197874644:rilf4jpvgyo">
|
||||
<input type="hidden" name="ie" value="UTF-8">
|
||||
{% if page.category == "ru" %}
|
||||
<input type="text" name="q" placeholder="Поиск по сайту">
|
||||
<button type="submit" name="sa">Найти</button>
|
||||
{% else %}
|
||||
<input type="text" name="q" placeholder="Site search">
|
||||
<button type="submit" name="sa">Search</button>
|
||||
{% endif %}
|
||||
</form>
|
@ -25,6 +25,8 @@ title: arcanis' homepage
|
||||
<p class="view"><a href="/projects/" title="Projects">Projects</a><br>
|
||||
<a href="ftp://repo.arcanis.name/repo" title="Repository">Repository</a></p>
|
||||
<p class="view"><a href="/about" title="About">About me</a></p>
|
||||
|
||||
{% include cse.html %}
|
||||
</header>
|
||||
<!-- redirection to russian page -->
|
||||
<script type="text/javascript">
|
||||
@ -45,6 +47,3 @@ title: arcanis' homepage
|
||||
|
||||
<h3><a href="#contact" class="anchor" name="contact"><span class="octicon octicon-link"></span></a>Contact me</h3>
|
||||
<p>If you have a question or something else you may <a href="/about" title="About">contact me</a>. If you want to suggest a pull request or to create a bug report for these pages feel free to visit <a href="https://github.com/arcan1s/arcan1s.github.io" title="Pages repository">its GitHub repository</a> and do it.</p>
|
||||
|
||||
<h3><a href="#search" class="anchor" name="search"><span class="octicon octicon-link"></span></a>Site search</h3>
|
||||
{% include cse.html %}
|
||||
|
@ -26,6 +26,8 @@ title: arcanis
|
||||
<p class="view"><a href="/ru/projects/" title="Проекты">Проекты</a><br>
|
||||
<a href="ftp://repo.arcanis.name/repo" title="Репозиторий">Репозиторий</a></p>
|
||||
<p class="view"><a href="/ru/about" title="Обо мне">Обо мне</a></p>
|
||||
|
||||
{% include cse.html %}
|
||||
</header>
|
||||
<section>
|
||||
|
||||
@ -34,6 +36,3 @@ title: arcanis
|
||||
|
||||
<h3><a href="#contact" class="anchor" name="contact"><span class="octicon octicon-link"></span></a>Контакты</h3>
|
||||
<p>Если у Вас есть вопрос или что-нибудь еще, Вы можете <a href="/ru/about" title="Обо мне">связаться со мной</a>. Если Вы хотите предложить пул-реквест или сообщить о баге для этих страничек, не стесняйтесь посетить <a href="https://github.com/arcan1s/arcan1s.github.io" title="Репозиторий сайта">репозиторий на GitHub</a> и сделать это.</p>
|
||||
|
||||
<h3><a href="#search" class="anchor" name="search"><span class="octicon octicon-link"></span></a>Поиск по сайту</h3>
|
||||
{% include cse.html %}
|
||||
|
Loading…
Reference in New Issue
Block a user