github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

tekkub / tekkub.github.com

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.
  cancel

http://tekkub.github.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

ugh 
tekkub (author)
Tue Dec 22 15:56:07 -0800 2009
commit  2596436bd4bad21f87f3a603d941117d864ec232
tree    ec9ab1c4bf32aaf6a7fb49c1475fb63259c91951
parent  b271e6070c5fa7c8fb5cfc38556398b3e1950ad1
tekkub.github.com / js / main.js js/main.js
100644 58 lines (49 sloc) 2.078 kb
edit raw blame history
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
$(function() {
  $("#addon_list").each(function() {
    $("#addon_list").empty()
    $("#addon_list").append(
      $("<tr>").append(
        $("<td>").text("Loading...")
      )
    )
 
    $.getJSON("http://github.com/api/v2/json/repos/show/tekkub?callback=?", function(data) {
      $("#addon_list").empty()
 
      data.repositories.sort(function(a,b) {
        var keya = a.name.toLowerCase()
        var keyb = b.name.toLowerCase()
        if (keya < keyb) return -1
        if (keya > keyb) return 1
        return 0
      })
 
      $.each(data.repositories, function(i,item) {
        if (item.description.substring(0,12).toLowerCase() == "wow addon - " && !item.description.match("fork")) {
          var row = $("<tr>").attr("id", "addon-"+item.name)
          $("<td>").addClass("addon_name").addClass("no_wrap").text(item.name).appendTo(row)
          $("<td>").addClass("addon_desc").text(item.description.substring(12)).appendTo(row)
          var last_cell = $("<td>").addClass("addon_links").addClass("no_wrap").addClass("right-text").addClass("padded_links").appendTo(row)
          if (item.pledgie) {last_cell.append($("<a>").text("Donate").attr("href", "http://pledgie.org/campaigns/" + item.pledgie))}
 
          var buglink = $("<a>").attr("id", "bugs").text("Bugs (0)").attr("href", item.url + "/issues")
          if (item.open_issues > 0) {
            buglink.addClass("has_issues").text("Bugs (" + item.open_issues + ")")
          }
          last_cell.append(buglink)
 
          last_cell.append($("<a>").text("Repo").attr("href", item.url))
          $("#addon_list").append(row)
 
        }
      })
 
      $.each(wowi_links, function(i,v) {
        $("tr#addon-" + i + " td.addon_name").html(
          $("<a>").attr("href", v).text(wowi_names[i] || i)
        )
      })
    })
  })
 
  $(".showmorelink").remove()
  $(".top_post .showmore").before(
    $("<span>").addClass("showmorelink").text("more >>").click(function() {
      $(".top_post .thumb").remove()
      $(".showmorelink").remove()
      $(".top_post .showmore").show()
    })
  )
})
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server