From 65c607730050352734ef975d88a3b2e248216072 Mon Sep 17 00:00:00 2001 From: imtaotao Date: Wed, 21 Aug 2024 21:00:35 +0800 Subject: [PATCH] docs: remove useless code --- docs/zh/cases/anti-occlusion.md | 39 --------------------------------- 1 file changed, 39 deletions(-) diff --git a/docs/zh/cases/anti-occlusion.md b/docs/zh/cases/anti-occlusion.md index 95c5a34b..8be487ec 100644 --- a/docs/zh/cases/anti-occlusion.md +++ b/docs/zh/cases/anti-occlusion.md @@ -23,42 +23,3 @@ setTimeout(() => update(), 1000); })(); ``` - -
-

danmu

- -[![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) - -
- -
- -Online Demo -    |     -Documentation - -A powerful and flexible danmaku library based on [`hooks-plugin`](https://github.com/imtaotao/hooks-plugin). - -
- -

- -```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'); -```