You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-30Lines changed: 33 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,48 +1,52 @@
1
-
# Reading Time Counter v3.2.6
1
+
# Read Time Counter
2
2
3
-
A ***simple and robust*** reading time counter that **accurately** counts words, characters, and images in your content. It calculates the estimated reading time for English, CKJ (Chinese, Korean, Japanese), and other Latin-based languages by combining text reading and image viewing times.
4
-
5
-
> ⚠️ **This repo will not be further updated. The project will continue to be maintained at:**[https://github.com/SPACESODA/readtimecounter](https://github.com/SPACESODA/readtimecounter)
3
+
Read Time Counter is a ***simple and robust*** reading time counter that **accurately** counts words, characters, and images in your content. It calculates the estimated reading time for English, CKJ (Chinese, Korean, Japanese), and other Latin-based languages by combining text reading and image viewing times.
6
4
7
5
<br>
8
6
9
7
## How to use?
10
8
11
-
### The script:
9
+
There are three ways to include the script:
12
10
13
-
Simply include the script `readtime.js` in your page’s **footer** code (before `</body>`) and you’re set. For example, add the following to your webpage:
11
+
### 1. Directly embed the script
14
12
15
13
```html
16
-
<scriptdefersrc="readtime.js"></script>
14
+
<script>
15
+
// Paste the code of readtime.js here
16
+
</script>
17
17
```
18
18
19
-
You can also use the CDN version via jsDelivr:
19
+
### 2. Host and link your own .js file
20
+
21
+
Include the script on your page, ideally inside the `<head>` tag with the `defer` attribute so it runs after the HTML is parsed.
0 commit comments