diff --git a/README.md b/README.md index e91e6d521..e67841f1f 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ -twitter.github.com -====== -The source code of http://twitter.github.com/ +## metacran.github.io -LICENSE ------------- +The source code of https://metacran.github.io/ -Copyright 2012 Twitter, Inc. +## LICENSE + +Copyright 2012, 2016 Twitter, Inc., Gabor Csardi Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 diff --git a/assets/favicon.png b/assets/favicon.png new file mode 100644 index 000000000..85673bc79 Binary files /dev/null and b/assets/favicon.png differ diff --git a/assets/larry.png b/assets/larry.png deleted file mode 100644 index 188597e9e..000000000 Binary files a/assets/larry.png and /dev/null differ diff --git a/assets/logo.png b/assets/logo.png index 34b067db2..88d97b95a 100644 Binary files a/assets/logo.png and b/assets/logo.png differ diff --git a/assets/style.css b/assets/style.css index ce9ed92ad..f9fc82bc7 100644 --- a/assets/style.css +++ b/assets/style.css @@ -18,11 +18,11 @@ h1 { h2 { font-weight: bold; font-size: 20px; - color: #0084b4; + color: #cb3837; } a:link, a:visited { - color: #0084b4; + color: #cb3837; text-decoration: none; } @@ -67,7 +67,7 @@ a:hover { #logo { width: 190px; - height: 64px; + height: 121px; margin: 15px 0 0 15px; background: url("https://github.com/logo.png"); text-indent: -99999px; @@ -92,7 +92,7 @@ div.header h1 { #num-repos, #num-members { font-size: 14px; font-weight: bold; - color: #0084b4; + color: #cb3837; line-height: 15px; } @@ -182,7 +182,7 @@ li.repo h3 { height: 0; border-bottom: 50px solid transparent; border-left: 50px solid transparent; - border-right: 50px solid #0080b0; + border-right: 50px solid #cb3837; pointer-events: none; } @@ -221,27 +221,6 @@ li.repo h3 { @-webkit-keyframes large-swing { 0% { margin-top: 0px } 50% { margin-top: -40px } 100% { margin-top: 0px } } @-ms-keyframes large-swing { 0% { margin-top: 0px } 50% { margin-top: -40px } 100% { margin-top: 0px } } -.larry.size-smaller, .larry.size-small { - animation: small-swing 0.5s infinite ease-in-out; - -moz-animation: small-swing 0.5s infinite ease-in-out; - -webkit-animation: small-swing 0.5s infinite ease-in-out; - -ms-animation: small-swing 0.5s infinite ease-in-out; -} - -.larry.size-medium, .larry.size-large { - animation: medium-swing 1.25s infinite ease-in-out; - -moz-animation: medium-swing 1.25s infinite ease-in-out; - -webkit-animation: medium-swing 1.25s infinite ease-in-out; - -ms-animation: medium-swing 1.25s infinite ease-in-out; -} - -.larry.size-medium, .larry.size-fat { - animation: large-swing 1.5s infinite ease-in-out; - -moz-animation: large-swing 1.5s infinite ease-in-out; - -webkit-animation: large-swing 1.5s infinite ease-in-out; - -ms-animation: large-swing 1.5s infinite ease-in-out; -} - #flyzone { position: fixed; top: 0; diff --git a/index.html b/index.html index 2c120615a..991d253c8 100644 --- a/index.html +++ b/index.html @@ -2,22 +2,22 @@ - Twitter ♥ Open Source + Metacran projects - + @@ -27,9 +27,6 @@ // Put custom repo URL's in this object, keyed by repo name. var repoUrls = { - "bootstrap": "http://twitter.github.com/bootstrap/", - "finagle": "http://twitter.github.com/finagle/", - "hogan.js": "http://twitter.github.com/hogan.js/" }; function repoUrl(repo) { @@ -81,7 +78,7 @@ repos = repos || []; page = page || 1; - var uri = "https://api.github.com/orgs/twitter/repos?callback=?" + var uri = "https://api.github.com/orgs/metacran/repos?callback=?" + "&per_page=100" + "&page="+page; @@ -137,11 +134,11 @@ } addRepos(); - //get total number of Twitter members + //get total number of Metacran members function getNumMembers(page, numMembers) { var page = page || 1; var numMembers = numMembers || 0; - var membersUri = "https://api.github.com/orgs/twitter/members?callback=?" + var membersUri = "https://api.github.com/orgs/metacran/members?callback=?" + "&per_page=100" + "&page="+page; @@ -172,103 +169,31 @@ return $flyzone; } - var sizes = ["smaller", "small", "medium", "large", "fat"]; - - var sizeDimensions = { - "smaller": 50, - "small": 80, - "medium": 130, - "large": 200, - "fat": 300 - }; - - function randomOpacity(threshold) { - var opacity = Math.random(); - - while (opacity < threshold) { - opacity = Math.random(); - } - - return opacity; - } - - function makeLarry(sizeName, speed) { - var size = sizeDimensions[sizeName]; - var top = Math.floor((flyzone().height() - size) * Math.random()); - - var $img = $("") - .addClass("larry size-" + sizeName) - .attr("src", "assets/larry.png") - .attr("width", size) - .attr("height", size) - .css({ - position: "absolute", - opacity: randomOpacity(0.4), - top: top, - left: -size - }); - - $img.prependTo(flyzone()); - - var left = flyzone().width() + size; - - $img.animate({left: left}, speed, function () { - $img.remove(); - makeRandomLarry(); - }); - - return $img; - } - - function makeRandomLarry() { - var size = randomItem(sizes); - var speed = Math.floor(Math.random() * 20000) + 15000; - return makeLarry(size, speed); - } - - $(function () { - $("#logo").click(function () { - makeRandomLarry(); - }); - }); - - var match = (/\blarry(=(\d+))?\b/i).exec(window.location.search); - - if (match) { - var n = parseInt(match[2]) || 20; - - $(function () { - for (var i = 0; i < n; ++i) { - setTimeout(makeRandomLarry, Math.random() * n * 500); - } - }); - } })(jQuery);
- -

Twitter is built on open source software.

-

Want to help? Join the Flock

-

Visit dev.twitter.com

-

Logos and other goodies

+ +

Visit the main Metacran web site

+

These pages are based on + https://twitter.github.com

-

Recently updated View All on GitHub

+

Recently updated View All on GitHub