diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..af2ca4e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "bootstrap"] + path = bootstrap + url = https://github.com/twitter/bootstrap.git diff --git a/README.md b/README.md index eaded42..eeed806 100644 --- a/README.md +++ b/README.md @@ -34,3 +34,8 @@ I did file , which later seemed to be ## Shell script feedback on the Web works by disabling Apache's mod_deflate ! + + +# TODO + +Make fetch-tweets.sh return nicer output like a % for diff --git a/bootstrap b/bootstrap new file mode 160000 index 0000000..7f32d15 --- /dev/null +++ b/bootstrap @@ -0,0 +1 @@ +Subproject commit 7f32d15fbb096fdf3146997f10cc91dbbd4589fc diff --git a/bootstrap-buttons.js b/bootstrap-buttons.js deleted file mode 100644 index 16fa161..0000000 --- a/bootstrap-buttons.js +++ /dev/null @@ -1,62 +0,0 @@ -/* ============================================================ - * bootstrap-buttons.js v1.4.0 - * http://twitter.github.com/bootstrap/javascript.html#buttons - * ============================================================ - * Copyright 2011 Twitter, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============================================================ */ - -!function( $ ){ - - "use strict" - - function setState(el, state) { - var d = 'disabled' - , $el = $(el) - , data = $el.data() - - state = state + 'Text' - data.resetText || $el.data('resetText', $el.html()) - - $el.html( data[state] || $.fn.button.defaults[state] ) - - state == 'loadingText' ? - $el.addClass(d).attr(d, d) : - $el.removeClass(d).removeAttr(d) - } - - function toggle(el) { - $(el).toggleClass('active') - } - - $.fn.button = function(options) { - return this.each(function () { - if (options == 'toggle') { - return toggle(this) - } - options && setState(this, options) - }) - } - - $.fn.button.defaults = { - loadingText: 'loading...' - } - - $(function () { - $('body').delegate('.btn[data-toggle]', 'click', function () { - $(this).button('toggle') - }) - }) - -}( window.jQuery || window.ender ); \ No newline at end of file diff --git a/create.cgi b/create.cgi index 0bd3f3d..5fcd6e5 100755 --- a/create.cgi +++ b/create.cgi @@ -38,14 +38,14 @@ cat < Fetching tweets of $id - +
-

Fetching upto 3200 tweets from $id

+

Fetching upto 3200 tweets from $id

Please be patient. Closing this page prematurely you can limit the tweets fetch-tweets.sh gets and trigger a locking bug.

@@ -93,12 +93,12 @@ then cd $oldpwd; ./users.sh > users.shtml cat <

Goto http://$HTTP_HOST/u/$id to grep!

+

Goto http://$HTTP_HOST/u/$id to grep!

END else rm -rf $oldpwd/u/$id - echo '

Sorry the Twitter API is failing. Try again later.

' + echo '

Sorry the Twitter API is failing. Try again later.

' fi cat < Grepping twitter backup - + @@ -18,15 +18,16 @@
  • You are here
  • - - +
    + + +
    +
    -

    Type a search query like foo

    - diff --git a/index.shtml b/index.shtml index ec8b84e..afb3b73 100644 --- a/index.shtml +++ b/index.shtml @@ -4,10 +4,10 @@ GrepTweet - + - + @@ -20,8 +20,9 @@

    @Greptweet you can search your tweets

    -
    + +
    @@ -31,25 +32,17 @@
    -
    -
      -
    • -
    • -
    -
    -
    - -First fetch tweets to search "grep" them + +
    -

    New Try Grepbook for grepping Facebook.

    +

    New Try Grepbook for grepping Facebook.

    Greppable tweeters

    diff --git a/main.js b/main.js index 9324e70..cfed747 100644 --- a/main.js +++ b/main.js @@ -22,20 +22,21 @@ $(document).ready(function() { $("input[type=search]").change(function() { query = this.value; + console.log(query); window.location.search = query; grep(query); }); if (window.location.search) { searchquery = window.decodeURIComponent(window.location.search.substr(1)); - $("input[type=text]").val(searchquery); + $("input[type=search]").val(searchquery); grep(searchquery); } $("input[type=text]").focus(); - footer = ''; + footer = '

    Download'; + footer += ' Update

    ' $("#source").html(footer); document.title = "Greptweet " + NAME; diff --git a/style.css b/style.css index 0b47976..f875b3c 100644 --- a/style.css +++ b/style.css @@ -1,19 +1 @@ #users li { display: inline; } - -html, body { -background-color: #eee; -} - - -/* The white background content wrapper */ -.content { -background-color: #fff; -padding: 20px; -margin: 0 -20px; /* negative indent the amount of the padding to maintain the grid system */ --webkit-border-radius: 0 0 6px 6px; --moz-border-radius: 0 0 6px 6px; -border-radius: 0 0 6px 6px; --webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15); --moz-box-shadow: 0 1px 2px rgba(0,0,0,.15); -box-shadow: 0 1px 2px rgba(0,0,0,.15); -}