-
Notifications
You must be signed in to change notification settings - Fork 4
Pre-render index page #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mihai-vlc
merged 5 commits into
VerbalExpressions:master
from
SignpostMarv:recent-update-display-all
Feb 6, 2016
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a948b0d
moving prettyDate() output to individual repos (no score change)
SignpostMarv 197214b
pre-render page to eliminate "prioritize visible content" (mobile spe…
SignpostMarv cfa087b
removing hotness
SignpostMarv d0567db
lowercasing prettyDate()
SignpostMarv f890d1a
altering technique to update repo info
SignpostMarv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html><html lang="en"><head> | ||
<meta charset="utf-8"> | ||
<title>VerbalExpressions ♥ Open Source</title> | ||
<meta name="description" content="Find all the VerbalExpressions projects in one place."> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<style> | ||
html{font:14px/1.4 Helvetica Neue,Helvetica,Arial,sans-serif;color:#333;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{max-width:940px;padding:20px 10px;margin:0 auto;background:#f5f5f5}img{border:0;-ms-interpolation-mode:bicubic}a{color:#0084b4;text-decoration:none}a:active,a:focus,a:hover{color:#005e80;text-decoration:underline}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1,h2,h3{margin:0 0 1em}.h1,h1{margin:0 0 .25em;font-size:3em}.h2,h2{font-size:1.25em}.h3,h3{font-size:1.125em;color:#777}p{margin:0 0 1em}ol,ul{list-style:none;padding:0;margin:0}.grid{display:block;padding:0;margin:0 -10px;letter-spacing:-.31em;*letter-spacing:normal;word-spacing:-.43em;text-rendering:optimizespeed}.unit-1-3{width:300px;display:inline-block;margin:0 10px 20px;vertical-align:top;letter-spacing:normal;word-spacing:normal;text-rendering:auto;*display:inline;*zoom:1}.box{display:block;overflow:hidden;min-height:200px;padding:15px;border:1px solid #ddd;border-radius:4px;text-decoration:none;background:#fff}a.box:active,a.box:focus,a.box:hover{padding:12px;border-width:4px;border-color:#005e80;text-decoration:none}.site-header{float:left;text-align:center}.site-header a{min-height:48px;min-width:48px;line-height:48px}.stats{font-size:1.125em}.twitter-share-button{margin-top:30px}.repo__name{margin:0 0 .1em;font-size:1.5em}.repo__info{display:block;margin:0 0 1.25em;font-size:12px;font-weight:700;color:#999}.repo__info .repo__updated{display:block}.repo__desc{color:#666}.repo__team{overflow:hidden;margin:20px -1px 0}.repo__team img{float:left;width:23px;height:23px;border:1px solid #999;margin:0 1px;background:#eee}.site-footer{padding:15px;border:1px solid #ddd;border-radius:4px;background:#fff;clear:both}.site-footer p{margin:0}@media (max-width:960px){body{max-width:620px}}@media (max-width:640px){body{max-width:300px}} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="grid"> | ||
<div class="unit-1-3 site-header"> | ||
<div class="box"> | ||
<div class="site-logo"> | ||
<h2>VerbalExpressions</h2> | ||
</div> | ||
<h3>Regular Expressions made easy</h3> | ||
<p class="stats"> | ||
<a href="https://github.com/VerbalExpressions/repositories"> | ||
<b id="num-repos">View</b> public repos | ||
</a> | ||
, | ||
<a href="https://github.com/VerbalExpressions?tab=members"> | ||
<b id="num-members">View</b> members | ||
</a> | ||
</p> | ||
<a class="twitter-share-button" href="http://twitter.com/share" data-text="All the VerbalExpressions projects in one place" data-url="http://VerbalExpressions.github.com/" data-count="none" target="_blank">Tweet</a> | ||
|
||
</div> | ||
</div> | ||
|
||
<div class="site-content" id="repos"></div> | ||
</div> | ||
|
||
<footer class="site-footer"> | ||
<p>VerbalExpressions <span id="year"></span></p> | ||
</footer> | ||
|
||
<script async="">!function(a,b){var c,d=a.getElementsByTagName(b)[0],e=function(e,f,g){var h=f;a.getElementById(h)||(c=a.createElement(b),c.src=e,h&&(c.id=h),g&&(c.onload=g),d.parentNode.insertBefore(c,d))};e("http://platform.twitter.com/widgets.js","twitter-wjs"),e("https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js",!1,function(){"use strict";function a(a){return g[a.name]||a.html_url}function b(a){return h[a.name]||a.description}function c(a){var b,c,d,e,f=0;for(b=new Date(a),c=(new Date-b)/1e3,d=[[60,"seconds",1],[120,"1 minute ago"],[3600,"minutes",60],[7200,"1 hour ago"],[86400,"hours",3600],[172800,"yesterday"],[604800,"days",86400],[1209600,"1 week ago"],[2678400,"weeks",604800]],f=0;f<d.length;f++)if(e=d[f],c<e[0])return e[2]?Math.floor(c/e[2])+" "+e[1]+" ago":e[1];return"a while ago"}function d(d){var f=e('.unit-1-3.repo[data-repo-name="'+d.name+'"]'),g=f.length>=1;g||(f=e('<div class="unit-1-3 repo"><a class="box" href=""><h2 class="repo__name"></h2><p class="repo__info"><span class="repo__watchers"></span> stargazers · <span class="repo__language"></span><span class="repo__updated"> </span></p><p class="repo__desc"></p></a></div>'),f.attr("data-repo-name",d.name)),f.children("a").attr("href",a(d)),f.find(".repo__name").text(d.name),f.find(".repo__watchers").text(d.watchers),f.find(".repo__language").text(d.language),f.find(".repo__desc").text(b(d)),"data-prerendered"===e("body").attr("data-prerendered")&&f.find(".repo__updated").text("Updated "+c(d.pushed_at)),g||f.appendTo("#repos")}var e=window.jQuery,f="VerbalExpressions",g={"verbalexpressions.github.io":"http://verbalexpressions.github.io/"},h={};e.ajax({dataType:"json",url:"https://api.github.com/orgs/"+f+"/repos?per_page=100",headers:{},success:function(a){var b=a;e(function(){e("#num-repos").text(b.length),e.each(b,function(a,b){var c=b;c.pushed_at=new Date(c.pushed_at)}),b.sort(function(a,b){return a.pushed_at<b.pushed_at?1:b.pushed_at<a.pushed_at?-1:0}),e.each(b,function(a,b){d(b)})})}}),e.ajax({dataType:"json",url:"https://api.github.com/orgs/"+f+"/members",headers:{},success:function(a){var b=a;e(function(){e("#num-members").text(b.length)})}}),e("#year").html((new Date).getFullYear())})}(document,"script");</script> | ||
|
||
|
||
</body></html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we include this label in the html to prevent the jumping when the js loads ? We could do something like
$link.find('.repo__updated').html( prettyDate(repo.pushed_at) );
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.