Skip to content

Commit e996a64

Browse files
evinmaBuptStEve
authored andcommitted
docs: close #17, update demo link (#30)
1 parent 4a37409 commit e996a64

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

README-zh_CN.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
## 介绍
1616
`tua-body-scroll-lock` 解决了所有场景下滚动穿透的问题。
1717

18-
### 为什么不用 [body-scroll-lock](https://github.com/willmcpo/body-scroll-lock)
18+
### 为什么不用 [body-scroll-lock(BSL)](https://github.com/willmcpo/body-scroll-lock)
1919
* 低版本安卓下失效
2020
* PC 端滚轮行为失效
21-
* iOS 端触摸非 targetElement 时失效
22-
* 使用时必须传 targetElement(即使并不需要)
21+
* iOS 端触摸非 `targetElement` 时失效
22+
* 使用时必须传 `targetElement`(即使并不需要)
2323

24-
[点击尝试](https://codepen.io/buptsteve/pen/EJoKQK)
24+
[😱BSL 居然不能用?不妨自己试试这个用了 BSL 的 demo](https://codepen.io/buptsteve/pen/EJoKQK)
2525

2626
## 安装
2727
### Node Package Manager(recommended)
@@ -145,11 +145,18 @@ unlock(targetElement)
145145

146146
> PC 端和安卓端不需要传 targetElement。
147147
148-
## 测试
149-
[测试链接](https://tuateam.github.io/tua-body-scroll-lock)
148+
## Demo
150149

151150
![bodyScrollLock](./tua-bsl.png)
152151

152+
平台 | 链接 |
153+
| - | -
154+
gh-pages | https://tuateam.github.io/tua-body-scroll-lock |
155+
jsbin | https://jsbin.com/cafiful/edit?output |
156+
codepen | https://codepen.io/buptsteve/pen/PvNQjP |
157+
jsfiddle | https://jsfiddle.net/buptsteve/6u8g3Lf5/ |
158+
codesandbox | https://codesandbox.io/s/o73z4jy5q9 |
159+
153160
## Contributors
154161

155162
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

README.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ English | [简体中文](./README-zh_CN.md)
1515
## Introduction
1616
`tua-body-scroll-lock` enables body scroll locking for everything.
1717

18-
### Why not [body-scroll-lock](https://github.com/willmcpo/body-scroll-lock)?
18+
### Why not [body-scroll-lock(BSL)](https://github.com/willmcpo/body-scroll-lock)?
1919
* Doesn't work on Android webview
2020
* Doesn't work on PC with mouse wheel
21-
* Doesn't work on iOS, if you touch somewhere instead of targetElement
22-
* Must pass targetElement, even if it's not necessary
21+
* Doesn't work on iOS, if you touch somewhere instead of `targetElement`
22+
* Must pass `targetElement`, even if it's not necessary
2323

24-
[Try This](https://codepen.io/buptsteve/pen/EJoKQK)
24+
[😱Can't believe it? Please try this demo with BSL yourself.](https://codepen.io/buptsteve/pen/EJoKQK)
2525

2626
## Install
2727
### Node Package Manager(recommended)
@@ -145,11 +145,18 @@ unlock(targetElement)
145145

146146
> The `targetElement` is not required on the PC and Android.
147147
148-
## Test
149-
[testLink](https://tuateam.github.io/tua-body-scroll-lock)
148+
## Demo
150149

151150
![bodyScrollLock](./tua-bsl.png)
152151

152+
platform | link |
153+
| - | -
154+
gh-pages | https://tuateam.github.io/tua-body-scroll-lock |
155+
jsbin | https://jsbin.com/cafiful/edit?output |
156+
codepen | https://codepen.io/buptsteve/pen/PvNQjP |
157+
jsfiddle | https://jsfiddle.net/buptsteve/6u8g3Lf5/ |
158+
codesandbox | https://codesandbox.io/s/o73z4jy5q9 |
159+
153160
## Contributors
154161

155162
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

0 commit comments

Comments
 (0)