From d970378e5ce174f136f53124a027988e902622db Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 23 May 2024 22:14:40 -0600 Subject: [PATCH 01/12] fix: remove dollar sign from command currently it copies the `$` when copying --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 34bbe20..57d1ec0 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ If the browser's JavaScript is disabled, the default text served in the cached m Available on [npm](https://www.npmjs.com/) as [**@github/relative-time-element**](https://www.npmjs.com/package/@github/relative-time-element). ``` -$ npm install @github/relative-time-element +npm install @github/relative-time-element ``` This element uses the `Intl.DateTimeFormat` & `Intl.RelativeTimeFormat` APIs, which are supported by all modern JS engines. If you need to support an older browser, you may need to introduce a polyfill for `Intl.DateTimeFormat` & `Intl.RelativeTimeFormat`. From ce767ccb6a658cab0b6778148bcdb0cc030399b7 Mon Sep 17 00:00:00 2001 From: Lindsey Wild <35239154+lindseywild@users.noreply.github.com> Date: Wed, 29 May 2024 17:23:40 +0000 Subject: [PATCH 02/12] Adds flag to optionally hide title attribute --- examples/index.html | 11 +++++++++-- src/relative-time-element.ts | 7 ++++++- test/relative-time.js | 16 ++++++++++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/examples/index.html b/examples/index.html index 2dfeee8..8b7cc58 100644 --- a/examples/index.html +++ b/examples/index.html @@ -21,6 +21,13 @@

Format DateTime

+

+ Hide title attribute: + + Jan 1 1970 + +

+

Customised options: @@ -185,8 +192,8 @@

Localised Dates

- - + + - + + + + - + +