Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shjwudp/online_webpage_diff
online webpage diff
https://github.com/shjwudp/online_webpage_diff
Last synced: about 1 month ago
JSON representation
online webpage diff
- Host: GitHub
- URL: https://github.com/shjwudp/online_webpage_diff
- Owner: shjwudp
- Created: 2016-09-24T05:17:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-24T05:58:58.000Z (over 8 years ago)
- Last Synced: 2024-11-19T01:54:04.011Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 128 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Online Page Diff
> [page-monitor](https://github.com/fouber/page-monitor) 的在线形式
# 效果
![illustrate](./illustrate.png)
## 使用
```javascript
SHJWUDP_DIFF.showdiff(left_dom, right_dom, legend);
```
left_dom 和 right_dom是参与比对的两个DOM,legend是可选项,显示比对结果的统计
具体请看demo
demo的使用方法:
> 在demo目录下
> python2:
> ```python2
> python -m SimpleHTTPServer
> ```> python3:
> ```python3
> python3 -m http.server
> ```> 打开浏览器访问