Sha256: f2a26f90ba1212ce26e7b2413bfdd5eea3551c87feb973b0709b4624980316bc

Contents?: true

Size: 673 Bytes

Versions: 94

Compression:

Stored size: 673 Bytes

Contents

<div>
  <style type="text/golf">
  </style>

  <script type="text/golf">
    function(query) {
      var search = $.require("twitter").search;

      search(query, function(i, tweet) {
        $(".results").append(new Component.golf.twitter.Tweet(tweet));
        $(".numresults").text(i+1);
      });

      $("form").submit(function() {
        $.golf.location("/"+$("input[name='query']").val()+"/");
      });
    }
  </script>

  <div class="content">
    <h1>Twitter Search</h1>
    <form>
      <input type="text" name="query"/>
      <input type="submit"/>
    </form>
    <p><span class="numresults">0</span> results:</p>
    <ul class="results"/>
  </div>
</div>

Version data entries

94 entries across 62 versions & 1 rubygems

Version Path
golf-0.7.9 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.7.8 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.7.7 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.7.6 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.7.5 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.7.4 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.7.3 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.7.2 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.7.1 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.7.0 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.6.6 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.6.5 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.6.4 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.6.3 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.6.22 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.6.21 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.6.2 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.6.1 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.6.0 templates/twitter/golfapp/components/golf/twitter/Search/Search.html
golf-0.5.7 templates/twitter/golfapp/components/golf/twitter/Search/Search.html