jquery-timeago icon indicating copy to clipboard operation
jquery-timeago copied to clipboard

different setings for different page

Open magna25 opened this issue 11 years ago • 1 comments
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>

magna25 avatar Jun 07 '14 22:06 magna25

This suggestion is 6 years old - apparently this project is no longer maintained.

vanboom avatar Apr 08 '20 20:04 vanboom