initial commit to seperate repo

This commit is contained in:
Don Harper 2015-06-09 22:59:04 -05:00
commit 8630e4db13
23669 changed files with 1067407 additions and 0 deletions

View file

@ -0,0 +1,20 @@
function fancydates(fanciness, date_format) {
if (fanciness == 0) {
return;
}
dates = $('time.published.dt-published');
i = 0;
l = dates.length;
for (i = 0; i < l; i++) {
d = moment(dates[i].attributes.datetime.value);
if (fanciness == 1) {
o = d.local().format(date_format);
} else {
o = d.fromNow();
}
dates[i].innerHTML = o;
}
}