search.html 827 Bytes
Newer Older
Jacek Lebioda's avatar
Jacek Lebioda committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
---
layout: default
---

<article>

    <div id="left-column"></div>

    <div>
        <header>
            <h1>
                {{ page.title | escape }}
            </h1>
        </header>

Jacek Lebioda's avatar
Jacek Lebioda committed
16
        <form>
Jacek Lebioda's avatar
Jacek Lebioda committed
17 18
          <input class="search" placeholder="What are you looking for?" />
          <button class="search" type="submit">Find it with Google</button>
Jacek Lebioda's avatar
Jacek Lebioda committed
19
        </form>
20 21

        <small>Note: you will be redirected to Google.com website</small>
Jacek Lebioda's avatar
Jacek Lebioda committed
22 23
    </div>
</article>
24 25 26 27 28 29 30 31 32 33 34

<script>
  var button = document.getElementsByTagName('button')[0];
  var edit_box = document.getElementsByClassName('search')[0];
  var edit_box_contents = edit_box.value;

  button.onclick = function(e) {
    document.location = 'https://www.google.com/search?q=site%3Aelixir-luxembourg.org+' + edit_box_contents;
    e.preventDefault();
  }
</script>