Commit 8715bcb2
8715bcb26015Merged
Justin Dorfman <[email protected]> · 10 years ago · 4 files · ~4 modified
Description
Removed main.js, added GA, https to fonts.google
Details
- Commit
- 8715bcb26015
- Parent
- 27c320d8f229
public/2016/assets/js/main.jsmodifiedView file
@@ -1,389 +1,3 @@
1-
/*! jquery.rss2-
Copyright (c) 2011 DaWanda GmbH | MIT License | https://github.com/sdepold/jquery-rss3-
*/4-
(function(d){var e=function(a,b,c,f){this.target=a;this.url=b;this.html=[];this.effectQueue=[];this.options=d.extend({ssl:!1,host:"www.feedrapp.info",limit:null,key:null,layoutTemplate:"<ul>{entries}</ul>",entryTemplate:'<li><a href="{url}">[{author}@{date}] {title}</a><br/>{shortBodyPlain}</li>',tokens:{},outputMode:"json",dateFormat:"dddd MMM Do",dateLocale:"en",effect:"show",offsetStart:!1,offsetEnd:!1,error:function(){console.log("jQuery RSS: url doesn't link to RSS-Feed")},onData:function(){},5-
success:function(){}},c||{});this.options.ssl&&"www.feedrapp.info"===this.options.host&&(this.options.host="feedrapp.herokuapp.com");this.callback=f||this.options.success};e.htmlTags="doctype,html,head,title,base,link,meta,style,script,noscript,body,article,nav,aside,section,header,footer,h1-h6,hgroup,address,p,hr,pre,blockquote,ol,ul,li,dl,dt,dd,figure,figcaption,div,table,caption,thead,tbody,tfoot,tr,th,td,col,colgroup,form,fieldset,legend,label,input,button,select,datalist,optgroup,option,textarea,keygen,output,progress,meter,details,summary,command,menu,del,ins,img,iframe,embed,object,param,video,audio,source,canvas,track,map,area,a,em,strong,i,b,u,s,small,abbr,q,cite,dfn,sub,sup,time,code,kbd,samp,var,mark,bdi,bdo,ruby,rt,rp,span,br,wbr".split(",");6-
e.prototype.load=function(a){var b="http"+(this.options.ssl?"s":"")+"://"+this.options.host+"?callback=?&q="+encodeURIComponent(this.url);this.options.offsetStart&&this.options.offsetEnd&&(this.options.limit=this.options.offsetEnd);null!==this.options.limit&&(b+="&num="+this.options.limit);null!==this.options.key&&(b+="&key="+this.options.key);d.getJSON(b,a)};e.prototype.render=function(){var a=this;this.load(function(b){try{a.feed=b.responseData.feed,a.entries=b.responseData.feed.entries}catch(c){return a.entries=7-
[],a.feed=null,a.options.error.call(a)}b=a.generateHTMLForEntries();a.target.append(b.layout);0!==b.entries.length&&(d.isFunction(a.options.onData)&&a.options.onData.call(a),a.appendEntriesAndApplyEffects(d("entries",b.layout),b.entries));0<a.effectQueue.length?a.executeEffectQueue(a.callback):d.isFunction(a.callback)&&a.callback.call(a)})};e.prototype.appendEntriesAndApplyEffects=function(a,b){var c=this;d.each(b,function(b,e){var d=c.wrapContent(e);"show"===c.options.effect?a.before(d):(d.css({display:"none"}),8-
a.before(d),c.applyEffect(d,c.options.effect))});a.remove()};e.prototype.generateHTMLForEntries=function(){var a=this,b={entries:[],layout:null};d(this.entries).each(function(){var c=a.options.offsetStart,f=a.options.offsetEnd;c&&f?index>=c&&index<=f&&a.isRelevant(this,b.entries)&&(c=a.evaluateStringForEntry(a.options.entryTemplate,this),b.entries.push(c)):a.isRelevant(this,b.entries)&&(c=a.evaluateStringForEntry(a.options.entryTemplate,this),b.entries.push(c))});b.layout=this.options.entryTemplate?9-
this.wrapContent(this.options.layoutTemplate.replace("{entries}","<entries></entries>")):this.wrapContent("<div><entries></entries></div>");return b};e.prototype.wrapContent=function(a){return 0!==d.trim(a).indexOf("<")?d("<div>"+a+"</div>"):d(a)};e.prototype.applyEffect=function(a,b,c){switch(b){case "slide":a.slideDown("slow",c);break;case "slideFast":a.slideDown(c);break;case "slideSynced":this.effectQueue.push({element:a,effect:"slide"});break;case "slideFastSynced":this.effectQueue.push({element:a,10-
effect:"slideFast"})}};e.prototype.executeEffectQueue=function(a){var b=this;this.effectQueue.reverse();var c=function(){var f=b.effectQueue.pop();f?b.applyEffect(f.element,f.effect,c):a&&a()};c()};e.prototype.evaluateStringForEntry=function(a,b){var c=a,f=this;d(a.match(/(\{.*?\})/g)).each(function(){var a=this.toString();c=c.replace(a,f.getValueForToken(a,b))});return c};e.prototype.isRelevant=function(a,b){var c=this.getTokenMap(a);return this.options.filter?this.options.filterLimit&&this.options.filterLimit===11-
b.length?!1:this.options.filter(a,c):!0};e.prototype.getFormattedDate=function(a){if(this.options.dateFormatFunction)return this.options.dateFormatFunction(a);return"undefined"!==typeof moment?(a=moment(new Date(a)),a=a.locale?a.locale(this.options.dateLocale):a.lang(this.options.dateLocale),a.format(this.options.dateFormat)):a};e.prototype.getTokenMap=function(a){if(!this.feedTokens){var b=JSON.parse(JSON.stringify(this.feed));delete b.entries;this.feedTokens=b}return d.extend({feed:this.feedTokens,12-
url:a.link,author:a.author,date:this.getFormattedDate(a.publishedDate),title:a.title,body:a.content,shortBody:a.contentSnippet,bodyPlain:function(a){for(var a=a.content.replace(/<script[\\r\\\s\S]*<\/script>/mgi,"").replace(/<\/?[^>]+>/gi,""),b=0;b<e.htmlTags.length;b++)a=a.replace(RegExp("<"+e.htmlTags[b],"gi"),"");return a}(a),shortBodyPlain:a.contentSnippet.replace(/<\/?[^>]+>/gi,""),index:d.inArray(a,this.entries),totalEntries:this.entries.length,teaserImage:function(a){try{return a.content.match(/(<img.*?>)/gi)[0]}catch(b){return""}}(a),13-
teaserImageUrl:function(a){try{return a.content.match(/(<img.*?>)/gi)[0].match(/src="(.*?)"/)[1]}catch(b){return""}}(a)},this.options.tokens)};e.prototype.getValueForToken=function(a,b){var c=this.getTokenMap(b),d=a.replace(/[\{\}]/g,""),d=c[d];if("undefined"!==typeof d)return"function"===typeof d?d(b,c):d;throw Error("Unknown token: "+a+", url:"+this.url);};d.fn.rss=function(a,b,c){(new e(this,a,b,c)).render();return this}})(jQuery);14-
15-
/*! github-calendar16-
Copyright (c) 2016 Ionică Bizău <[email protected]> (http://ionicabizau.net)17-
*/18-
"use strict";function _typeof(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}!function(e){if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.GitHubCalendar=e()}}(function(){return function e(t,n,r){function o(i,f){if(!n[i]){if(!t[i]){var d="function"==typeof require&&require;if(!f&&d)return d(i,!0);if(u)return u(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[i]={exports:{}};t[i][0].call(p.exports,function(e){var n=t[i][1][e];return o(n?n:e)},p,p.exports,e,t,n,r)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){t.exports=function(e,t,n){return"string"==typeof e&&(e=document.querySelector(e)),n=n||{},n.summary_text=n.summary_text||'Summary of pull requests, issues opened, and commits made by <a href="https://github.com/'+t+'" target="blank">@'+t+"</a>",n.proxy=n.proxy||function(e){return"https://urlreq.appspot.com/req?method=GET&url="+e},fetch(n.proxy("https://github.com/"+t)).then(function(e){return e.text()}).then(function(t){var r=document.createElement("div");r.innerHTML=t;var o=r.querySelector("#contributions-calendar");o.querySelector(".left.text-muted").innerHTML=n.summary_text,e.innerHTML=o.innerHTML})}},{}]},{},[1])(1)});19-
20-
/*!21-
* GitHub Activity Stream | v0.1.4 | 10/7/201522-
* Copyright (c) 2015 Casey Scarborough | MIT License | https://github.com/caseyscarborough/github-activity23-
*/24-
25-
var GitHubActivity = (function() {26-
'use strict';27-
28-
var obj = {};29-
30-
var methods = {31-
renderLink: function(url, title, cssClass) {32-
if (!title) { title = url; }33-
if (typeof(cssClass) === 'undefined') cssClass = "";34-
return Mustache.render('<a class="' + cssClass + '" href="{{url}}" target="_blank">{{{title}}}</a>', { url: url, title: title });35-
},36-
renderGitHubLink: function(url, title, cssClass) {37-
if (!title) { title = url; }38-
if (typeof(cssClass) === 'undefined') cssClass = "";39-
return methods.renderLink('https://github.com/' + url, title, cssClass);40-
},41-
getMessageFor: function(data) {42-
var p = data.payload;43-
data.repoLink = methods.renderGitHubLink(data.repo.name);44-
data.userGravatar = Mustache.render('<div class="gha-gravatar-user"><img src="{{url}}" class="gha-gravatar-small"></div>', { url: data.actor.avatar_url });45-
46-
if (p.ref) {47-
if (p.ref.substring(0, 11) === 'refs/heads/') {48-
data.branch = p.ref.substring(11);49-
} else {50-
data.branch = p.ref;51-
}52-
data.branchLink = methods.renderGitHubLink(data.repo.name + '/tree/' + data.branch, data.branch) + ' at ';53-
}54-
55-
if (p.commits) {56-
var shaDiff = p.before + '...' + p.head;57-
var length = p.commits.length;58-
if (length === 2) {59-
60-
data.commitsMessage = Mustache.render('<a href="https://github.com/{{repo}}/compare/{{shaDiff}}">View comparison for these 2 commits »</a>', { repo: data.repo.name, shaDiff: shaDiff });61-
} else if (length > 2) {62-
63-
data.commitsMessage = Mustache.render('<a href="https://github.com/{{repo}}/compare/{{shaDiff}}">{{length}} more ' + pluralize('commit', length - 2) + ' »</a>', { repo: data.repo.name, shaDiff: shaDiff, length: p.size - 2 });64-
}65-
66-
p.commits.forEach(function(d, i) {67-
if (d.message.length > 66) {68-
d.message = d.message.substring(0, 66) + '...';69-
}70-
if (i < 2) {71-
d.shaLink = methods.renderGitHubLink(data.repo.name + '/commit/' + d.sha, d.sha.substring(0, 6), 'gha-sha');72-
d.committerGravatar = Mustache.render('<img class="gha-gravatar-commit" src="https://gravatar.com/avatar/{{hash}}?s=30&d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="16" />', { hash: md5(d.author.email) });73-
} else {74-
75-
p.commits.splice(2, p.size);76-
return false;77-
}78-
});79-
}80-
81-
if (p.issue) {82-
var title = data.repo.name + "#" + p.issue.number;83-
data.issueLink = methods.renderLink(p.issue.html_url, title);84-
data.issueType = "issue";85-
if (p.issue.pull_request) {86-
data.issueType = "pull request";87-
}88-
}89-
90-
if (p.pull_request) {91-
var pr = p.pull_request;92-
data.pullRequestLink = methods.renderLink(pr.html_url, data.repo.name + "#" + pr.number);93-
data.mergeMessage = "";94-
95-
96-
if (p.pull_request.merged) {97-
p.action = "merged";98-
var message = '{{c}} ' + pluralize('commit', pr.commits) + ' with {{a}} ' + pluralize('addition', pr.additions) + ' and {{d}} ' + pluralize('deletion', pr.deletions);99-
data.mergeMessage = Mustache.render('<br><small class="gha-message-merge">' + message + '</small>', { c: pr.commits, a: pr.additions, d: pr.deletions });100-
}101-
}102-
103-
104-
if (p.comment && p.comment.pull_request_url) {105-
var title = data.repo.name + "#" + p.comment.pull_request_url.split('/').pop();106-
data.pullRequestLink = methods.renderGitHubLink(p.comment.pull_request_url, title);107-
}108-
109-
110-
if (p.comment && p.comment.body) {111-
data.comment = p.comment.body;112-
if (data.comment.length > 150) {113-
data.comment = data.comment.substring(0, 150) + '...';114-
}115-
if (p.comment.html_url && p.comment.commit_id) {116-
var title = data.repo.name + '@' + p.comment.commit_id.substring(0, 10);117-
data.commentLink = methods.renderLink(p.comment.html_url, title);118-
}119-
}120-
121-
if (data.type === 'ReleaseEvent') {122-
data.tagLink = methods.renderLink(p.release.html_url, p.release.tag_name);123-
data.zipLink = methods.renderLink(p.release.zipball_url, 'Download Source Code (zip)');124-
}125-
126-
127-
if (data.type === 'GollumEvent') {128-
var page = p.pages[0];129-
data.actionType = page.action;130-
data.message = data.actionType.charAt(0).toUpperCase() + data.actionType.slice(1) + ' ';131-
data.message += methods.renderGitHubLink(page.html_url, page.title);132-
}133-
134-
if (data.type === 'FollowEvent') data.targetLink = methods.renderGitHubLink(p.target.login);135-
if (data.type === 'ForkEvent') data.forkLink = methods.renderGitHubLink(p.forkee.full_name);136-
if (data.type === 'MemberEvent') data.memberLink = methods.renderGitHubLink(p.member.login);137-
138-
if (p.gist) {139-
data.actionType = p.action === 'fork' ? p.action + 'ed' : p.action + 'd';140-
data.gistLink = methods.renderLink(p.gist.html_url, 'gist: ' + p.gist.id);141-
}142-
143-
var message = Mustache.render(templates[data.type], data);144-
var timeString = millisecondsToStr(new Date() - new Date(data.created_at));145-
var icon;146-
147-
if (data.type == 'CreateEvent' && (['repository', 'branch', 'tag'].indexOf(p.ref_type) >= 0)) {148-
149-
icon = icons[data.type + '_' + p.ref_type];150-
} else {151-
icon = icons[data.type]152-
}153-
var activity = { message: message, icon: icon, timeString: timeString, userLink: methods.renderGitHubLink(data.actor.login) };154-
155-
if (singleLineActivities.indexOf(data.type) > -1) {156-
return Mustache.render(templates.SingleLineActivity, activity);157-
}158-
return Mustache.render(templates.Activity, activity);159-
},160-
getHeaderHTML: function(data) {161-
if (data.name) {162-
data.userNameLink = methods.renderLink(data.html_url, data.name);163-
} else {164-
data.withoutName = ' without-name';165-
}166-
data.userLink = methods.renderLink(data.html_url, data.login);167-
data.gravatarLink = methods.renderLink(data.html_url, '<img src="' + data.avatar_url + '">');168-
169-
return Mustache.render(templates.UserHeader, data);170-
},171-
getActivityHTML: function(data, limit) {172-
var text = '';173-
var dataLength = data.length;174-
if (limit && limit > dataLength) {175-
limit = dataLength;176-
}177-
limit = limit ? limit : dataLength;178-
179-
if (limit === 0) {180-
return Mustache.render(templates.NoActivity, {});181-
}182-
for (var i = 0; i < limit; i++) {183-
text += methods.getMessageFor(data[i]);184-
}185-
186-
return text;187-
},188-
getOutputFromRequest: function(url, callback) {189-
var request = new XMLHttpRequest();190-
request.open('GET', url);191-
request.setRequestHeader('Accept', 'application/vnd.github.v3+json');192-
193-
request.onreadystatechange = function() {194-
if (request.readyState === 4) {195-
if (request.status >= 200 && request.status < 300){196-
var data = JSON.parse(request.responseText);197-
callback(undefined, data);198-
} else {199-
callback('request for ' + url + ' yielded status ' + request.status);200-
}201-
}202-
};203-
204-
request.onerror = function() { callback('An error occurred connecting to ' + url); };205-
request.send();206-
},207-
renderStream: function(output, div) {208-
div.innerHTML = Mustache.render(templates.Stream, { text: output, footer: templates.Footer });209-
div.style.position = 'relative';210-
},211-
writeOutput: function(selector, content) {212-
var div = selector.charAt(0) === '#' ? document.getElementById(selector.substring(1)) : document.getElementsByClassName(selector.substring(1));213-
if (div instanceof HTMLCollection) {214-
for (var i = 0; i < div.length; i++) {215-
methods.renderStream(content, div[i]);216-
}217-
} else {218-
methods.renderStream(content, div);219-
}220-
},221-
renderIfReady: function(selector, header, activity) {222-
if (header && activity) {223-
methods.writeOutput(selector, header + activity);224-
}225-
}226-
};227-
228-
obj.feed = function(options) {229-
if (!options.username || !options.selector) {230-
throw "You must specify the username and selector options for the activity stream.";231-
return false;232-
}233-
234-
var selector = options.selector,235-
userUrl = 'https://api.github.com/users/' + options.username,236-
eventsUrl = userUrl + '/events',237-
header,238-
activity;239-
240-
if (!!options.repository){241-
eventsUrl = 'https://api.github.com/repos/' + options.username + '/' + options.repository + '/events';242-
}243-
244-
if (options.clientId && options.clientSecret) {245-
var authString = '?client_id=' + options.clientId + '&client_secret=' + options.clientSecret;246-
userUrl += authString;247-
eventsUrl += authString;248-
}249-
250-
if (!!options.eventsUrl){251-
eventsUrl = options.eventsUrl;252-
}253-
254-
if (typeof options.templates == 'object') {255-
for (var template in templates) {256-
if (typeof options.templates[template] == 'string') {257-
templates[template] = options.templates[template];258-
}259-
}260-
}261-
262-
methods.getOutputFromRequest(userUrl, function(error, output) {263-
if (error) {264-
header = Mustache.render(templates.UserNotFound, { username: options.username });265-
} else {266-
header = methods.getHeaderHTML(output)267-
}268-
methods.renderIfReady(selector, header, activity)269-
});270-
271-
methods.getOutputFromRequest(eventsUrl, function(error, output) {272-
if (error) {273-
activity = Mustache.render(templates.EventsNotFound, { username: options.username });274-
} else {275-
var limit = options.limit != 'undefined' ? parseInt(options.limit, 10) : null;276-
activity = methods.getActivityHTML(output, limit);277-
}278-
methods.renderIfReady(selector, header, activity);279-
});280-
};281-
282-
return obj;283-
}());284-
285-
function millisecondsToStr(milliseconds) {286-
'use strict';287-
288-
function numberEnding(number) {289-
return (number > 1) ? 's ago' : ' ago';290-
}291-
var temp = Math.floor(milliseconds / 1000);292-
293-
var years = Math.floor(temp / 31536000);294-
if (years) return years + ' year' + numberEnding(years);295-
296-
var months = Math.floor((temp %= 31536000) / 2592000);297-
if (months) return months + ' month' + numberEnding(months);298-
299-
var days = Math.floor((temp %= 2592000) / 86400);300-
if (days) return days + ' day' + numberEnding(days);301-
302-
var hours = Math.floor((temp %= 86400) / 3600);303-
if (hours) return 'about ' + hours + ' hour' + numberEnding(hours);304-
305-
var minutes = Math.floor((temp %= 3600) / 60);306-
if (minutes) return minutes + ' minute' + numberEnding(minutes);307-
308-
var seconds = temp % 60;309-
if (seconds) return seconds + ' second' + numberEnding(seconds);310-
311-
return 'just now';312-
}313-
314-
function pluralize(word, number) {315-
316-
if (number !== 1) return word + 's';317-
return word;318-
}319-
320-
/**! MD5 methods written by Joseph Myers. http://www.myersdaily.org/joseph/javascript/md5-text.html */321-
function md5cycle(f,h){var g=f[0],e=f[1],j=f[2],i=f[3];g=ff(g,e,j,i,h[0],7,-680876936);i=ff(i,g,e,j,h[1],12,-389564586);j=ff(j,i,g,e,h[2],17,606105819);e=ff(e,j,i,g,h[3],22,-1044525330);g=ff(g,e,j,i,h[4],7,-176418897);i=ff(i,g,e,j,h[5],12,1200080426);j=ff(j,i,g,e,h[6],17,-1473231341);e=ff(e,j,i,g,h[7],22,-45705983);g=ff(g,e,j,i,h[8],7,1770035416);i=ff(i,g,e,j,h[9],12,-1958414417);j=ff(j,i,g,e,h[10],17,-42063);e=ff(e,j,i,g,h[11],22,-1990404162);g=ff(g,e,j,i,h[12],7,1804603682);i=ff(i,g,e,j,h[13],12,-40341101);j=ff(j,i,g,e,h[14],17,-1502002290);e=ff(e,j,i,g,h[15],22,1236535329);g=gg(g,e,j,i,h[1],5,-165796510);i=gg(i,g,e,j,h[6],9,-1069501632);j=gg(j,i,g,e,h[11],14,643717713);e=gg(e,j,i,g,h[0],20,-373897302);g=gg(g,e,j,i,h[5],5,-701558691);i=gg(i,g,e,j,h[10],9,38016083);j=gg(j,i,g,e,h[15],14,-660478335);e=gg(e,j,i,g,h[4],20,-405537848);g=gg(g,e,j,i,h[9],5,568446438);i=gg(i,g,e,j,h[14],9,-1019803690);j=gg(j,i,g,e,h[3],14,-187363961);e=gg(e,j,i,g,h[8],20,1163531501);g=gg(g,e,j,i,h[13],5,-1444681467);i=gg(i,g,e,j,h[2],9,-51403784);j=gg(j,i,g,e,h[7],14,1735328473);e=gg(e,j,i,g,h[12],20,-1926607734);g=hh(g,e,j,i,h[5],4,-378558);i=hh(i,g,e,j,h[8],11,-2022574463);j=hh(j,i,g,e,h[11],16,1839030562);e=hh(e,j,i,g,h[14],23,-35309556);g=hh(g,e,j,i,h[1],4,-1530992060);i=hh(i,g,e,j,h[4],11,1272893353);j=hh(j,i,g,e,h[7],16,-155497632);e=hh(e,j,i,g,h[10],23,-1094730640);g=hh(g,e,j,i,h[13],4,681279174);i=hh(i,g,e,j,h[0],11,-358537222);j=hh(j,i,g,e,h[3],16,-722521979);e=hh(e,j,i,g,h[6],23,76029189);g=hh(g,e,j,i,h[9],4,-640364487);i=hh(i,g,e,j,h[12],11,-421815835);j=hh(j,i,g,e,h[15],16,530742520);e=hh(e,j,i,g,h[2],23,-995338651);g=ii(g,e,j,i,h[0],6,-198630844);i=ii(i,g,e,j,h[7],10,1126891415);j=ii(j,i,g,e,h[14],15,-1416354905);e=ii(e,j,i,g,h[5],21,-57434055);g=ii(g,e,j,i,h[12],6,1700485571);i=ii(i,g,e,j,h[3],10,-1894986606);j=ii(j,i,g,e,h[10],15,-1051523);e=ii(e,j,i,g,h[1],21,-2054922799);g=ii(g,e,j,i,h[8],6,1873313359);i=ii(i,g,e,j,h[15],10,-30611744);j=ii(j,i,g,e,h[6],15,-1560198380);e=ii(e,j,i,g,h[13],21,1309151649);g=ii(g,e,j,i,h[4],6,-145523070);i=ii(i,g,e,j,h[11],10,-1120210379);j=ii(j,i,g,e,h[2],15,718787259);e=ii(e,j,i,g,h[9],21,-343485551);f[0]=add32(g,f[0]);f[1]=add32(e,f[1]);f[2]=add32(j,f[2]);f[3]=add32(i,f[3])}function cmn(h,e,d,c,g,f){e=add32(add32(e,h),add32(c,f));return add32((e<<g)|(e>>>(32-g)),d)}function ff(g,f,k,j,e,i,h){return cmn((f&k)|((~f)&j),g,f,e,i,h)}function gg(g,f,k,j,e,i,h){return cmn((f&j)|(k&(~j)),g,f,e,i,h)}function hh(g,f,k,j,e,i,h){return cmn(f^k^j,g,f,e,i,h)}function ii(g,f,k,j,e,i,h){return cmn(k^(f|(~j)),g,f,e,i,h)}function md51(c){txt="";var e=c.length,d=[1732584193,-271733879,-1732584194,271733878],b;for(b=64;b<=c.length;b+=64){md5cycle(d,md5blk(c.substring(b-64,b)))}c=c.substring(b-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(b=0;b<c.length;b++){a[b>>2]|=c.charCodeAt(b)<<((b%4)<<3)}a[b>>2]|=128<<((b%4)<<3);if(b>55){md5cycle(d,a);for(b=0;b<16;b++){a[b]=0}}a[14]=e*8;md5cycle(d,a);return d}function md5blk(b){var c=[],a;for(a=0;a<64;a+=4){c[a>>2]=b.charCodeAt(a)+(b.charCodeAt(a+1)<<8)+(b.charCodeAt(a+2)<<16)+(b.charCodeAt(a+3)<<24)}return c}var hex_chr="0123456789abcdef".split("");function rhex(c){var b="",a=0;for(;a<4;a++){b+=hex_chr[(c>>(a*8+4))&15]+hex_chr[(c>>(a*8))&15]}return b}function hex(a){for(var b=0;b<a.length;b++){a[b]=rhex(a[b])}return a.join("")}function md5(a){return hex(md51(a))}function add32(d,c){return(d+c)&4294967295}if(md5("hello")!="5d41402abc4b2a76b9719d911017c592"){function add32(a,d){var c=(a&65535)+(d&65535),b=(a>>16)+(d>>16)+(c>>16);return(b<<16)|(c&65535)}};322-
323-
var templates = {324-
Stream: '<div class="gha-feed">{{{text}}}<div class="gha-push-small"></div>{{{footer}}}</div>',325-
Activity: '<div id="{{id}}" class="gha-activity">\326-
<div class="gha-activity-icon"><span class="octicon octicon-{{icon}}"></span></div>\327-
<div class="gha-message"><div class="gha-time">{{{timeString}}}</div>{{{userLink}}} {{{message}}}</div>\328-
<div class="gha-clear"></div>\329-
</div>',330-
SingleLineActivity: '<div class="gha-activity gha-small">\331-
<div class="gha-activity-icon"><span class="octicon octicon-{{icon}}"></span></div>\332-
<div class="gha-message">{{{userLink}}} {{{message}}}</div><div class="gha-time">{{{timeString}}}</div>\333-
<div class="gha-clear"></div>\334-
</div>',335-
UserHeader: '<div class="gha-header">\336-
<div class="gha-github-icon"><span class="octicon octicon-mark-github"></span></div>\337-
<div class="gha-user-info{{withoutName}}">{{{userNameLink}}}<p>{{{userLink}}}</p></div>\338-
<div class="gha-gravatar">{{{gravatarLink}}}</div>\339-
</div><div class="gha-push"></div>',340-
Footer: '<div class="gha-footer">Public Activity <a href="https://github.com/caseyscarborough/github-activity" target="_blank">GitHub Activity Stream</a>',341-
NoActivity: '<div class="gha-info">This user does not have any public activity yet.</div>',342-
UserNotFound: '<div class="gha-info">User {{username}} wasn\'t found.</div>',343-
EventsNotFound: '<div class="gha-info">Events for user {{username}} not found.</div>',344-
CommitCommentEvent: 'commented on commit {{{commentLink}}}<br>{{{userGravatar}}}<small>{{comment}}</small>',345-
CreateEvent: 'created {{payload.ref_type}} {{{branchLink}}}{{{repoLink}}}',346-
DeleteEvent: 'deleted {{payload.ref_type}} {{payload.ref}} at {{{repoLink}}}',347-
FollowEvent: 'started following {{{targetLink}}}',348-
ForkEvent: 'forked {{{repoLink}}} to {{{forkLink}}}',349-
GistEvent: '{{actionType}} {{{gistLink}}}',350-
GollumEvent: '{{actionType}} the {{{repoLink}}} wiki<br>{{{userGravatar}}}<small>{{{message}}}</small>',351-
IssueCommentEvent: 'commented on {{issueType}} {{{issueLink}}}<br>{{{userGravatar}}}<small>{{comment}}</small>',352-
IssuesEvent: '{{payload.action}} issue {{{issueLink}}}<br>{{{userGravatar}}}<small>{{payload.issue.title}}</small>',353-
MemberEvent: 'added {{{memberLink}}} to {{{repoLink}}}',354-
PublicEvent: 'open sourced {{{repoLink}}}',355-
PullRequestEvent: '{{payload.action}} pull request {{{pullRequestLink}}}<br>{{{userGravatar}}}<small>{{payload.pull_request.title}}</small>{{{mergeMessage}}}',356-
PullRequestReviewCommentEvent: 'commented on pull request {{{pullRequestLink}}}<br>{{{userGravatar}}}<small>{{comment}}</small>',357-
PushEvent: 'pushed to {{{branchLink}}}{{{repoLink}}}<br>\358-
<ul class="gha-commits">{{#payload.commits}}<li><small>{{{committerGravatar}}} {{{shaLink}}} {{message}}</small></li>{{/payload.commits}}</ul>\359-
<small class="gha-message-commits">{{{commitsMessage}}}</small>',360-
ReleaseEvent: 'released {{{tagLink}}} at {{{repoLink}}}<br>{{{userGravatar}}}<small><span class="octicon octicon-cloud-download"></span> {{{zipLink}}}</small>',361-
WatchEvent: 'starred {{{repoLink}}}'362-
},363-
364-
icons = {365-
CommitCommentEvent: 'comment-discussion',366-
CreateEvent_repository: 'repo-create',367-
CreateEvent_tag: 'tag-add',368-
CreateEvent_branch: 'git-branch-create',369-
DeleteEvent: 'repo-delete',370-
FollowEvent: 'person-follow',371-
ForkEvent: 'repo-forked',372-
GistEvent: 'gist',373-
GollumEvent: 'repo',374-
IssuesEvent: 'issue-opened',375-
IssueCommentEvent: 'comment-discussion',376-
MemberEvent: 'person',377-
PublicEvent: 'globe',378-
PullRequestEvent: 'git-pull-request',379-
PullRequestReviewCommentEvent: 'comment-discussion',380-
PushEvent: 'git-commit',381-
ReleaseEvent: 'tag-add',382-
WatchEvent: 'star'383-
},384-
385-
singleLineActivities = [ 'CreateEvent', 'DeleteEvent', 'FollowEvent', 'ForkEvent', 'GistEvent', 'MemberEvent', 'WatchEvent' ];386-
3871
/* main.js */3882
jQuery(document).ready(function($) {3893
public/2016/assets/js/main.min.jsmodifiedView file
Loading diff…
public/2016/index.htmlmodifiedView file
Loading diff…
public/2016/index.source.htmlmodifiedView file
Loading diff…