jquery-timeago
jquery-timeago copied to clipboard
different setings for different page
trafficstars
Simply I want to use the "ago" suffix on some pages only and I know I could edit the js file but that changes it for every page, so how can I change for different pages? I tried the below but it didn't work.
<script>
jQuery("abbr.timeago").timeago({
prefixAgo: null,
prefixFromNow: null,
suffixAgo: "",
suffixFromNow: "from now",
inPast: 'any moment now',
seconds: "Just now",
minute: "1 min",
minutes: "%d mins",
hour: "about an hr",
hours: "about %d hrs",
day: "a day",
days: "%d days",
month: "about a month",
months: "%d months",
year: "about a year",
years: "%d years",
wordSeparator: " ",
});
</script>
This suggestion is 6 years old - apparently this project is no longer maintained.