Skip to content

Commit

Permalink
docs: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
imtaotao committed Aug 21, 2024
1 parent e66f146 commit 65c6077
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions docs/zh/cases/anti-occlusion.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,42 +23,3 @@
setTimeout(() => update(), 1000);
})();
```

<div align="center">
<h2>danmu</h2>

[![build status](https://github.com/imtaotao/danmu/actions/workflows/deploy.yml/badge.svg?branch=master)](https://github.com/imtaotao/danmu/actions/workflows/deploy.yml) [![NPM version](https://img.shields.io/npm/v/danmu.svg?color=a1b858&label=)](https://www.npmjs.com/package/danmu)

</div>

<div align="center">

<a href="https://imtaotao.github.io/danmu/">Online Demo</a>
&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://imtaotao.github.io/danmu/document/zh/">Documentation</a>

A powerful and flexible danmaku library based on [`hooks-plugin`](https://github.com/imtaotao/hooks-plugin).

</div>

<h1></h1>

```js
import { create } from 'danmu';

const manager = create(
plugin: {
$createNode({ node, data }) {
// Render danmaku content to the DOM
node.textContent = data;
},
},
);

// Initialize
manager.mount(document.getElementById('root'));
manager.startPlaying();

// Send danmuku
manager.push('danmaku content');
```

0 comments on commit 65c6077

Please sign in to comment.