search.html 865 Bytes
Newer Older
Jacek Lebioda's avatar
Develop  
Jacek Lebioda committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
---
layout: default
---

<article class="body-wrapper margin-wrapper">

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

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

        <form>
          <input class="search" placeholder="What are you looking for?" />
          <button class="search" type="submit">Find it with Google</button>
        </form>

        <small>Note: you will be redirected to Google.com website</small>
    </div>
</article>

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

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