Skip to content

Commit

Permalink
non
Browse files Browse the repository at this point in the history
non
  • Loading branch information
Jerry114514 committed Nov 25, 2024
1 parent e3799f8 commit 9565238
Show file tree
Hide file tree
Showing 81 changed files with 19,853 additions and 40,321 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

7 changes: 0 additions & 7 deletions .gitignore

This file was deleted.

9 changes: 9 additions & 0 deletions .hintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": [
"development"
],
"hints": {
"compat-api/css": "off",
"axe/text-alternatives": "off"
}
}
6 changes: 0 additions & 6 deletions .prettierignore

This file was deleted.

53 changes: 33 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,47 @@
This is the source code for the [Applied Energistics 2 Website](https://appliedenergistics.github.io/).
Bideo.js库自述 (翻译)
======================

## Getting Started
想要在容器或者`body`的背景中播放视频吗?该插件会帮你做到。我也建议你[阅读此文章](http://codetheory.in/html5-fullscreen-background-video/) .

First, run the development server:
Want to play a video in the background of a container or `body` itself ? This plugin will help you do exactly that. I'd suggest you to [read this article](http://codetheory.in/html5-fullscreen-background-video/) too.

```bash
npm run dev
```
[**Demo**](http://rishabhp.github.io/bideo.js/)

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
功能
--------

You can start editing the content in the [content](./content) subfolder.
### 重设大小 || Resizing

The site uses data and images exported from the game using the `/ae2export` client-side command.
`video`元素会根据容器的尺寸大小自适应。浏览器窗口大小同理.\
The `video` element in use will automatically adapt to the container's dimensions. It will also resize as the browser window resizes.

It is only available if developer tools are enabled in the config.
### 覆盖 || Overlay (本段翻译不准确)

## Learn More
插件不支持任何覆盖方式,因为这在[你的代码](http://codetheory.in/html5-fullscreen-background-video/#overlays)中很容易通过纯HTML/CSS的方式实现\
Plugin doesn't supports any overlay as it is easy to implement that with plain HTML/CSS in [your code](http://codetheory.in/html5-fullscreen-background-video/#overlays).

This web site is built using Next.js. To learn more about Next.js, take a look at the following resources:
### 视频封面 || Video Cover

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
视频需要加载一会,这是因为源代码是通过`Javascript`添加的,而这个步骤是在加载完DOM之后;\
到这时你或许会想展示你的视频封面为视频的第一帧(或是其他图片)\
Video might take a few seconds to load, especially because the sources are added via JS which is something you'll load after the DOM's loading. Till then you may want to show a video cover which'll be same as the first frame or the video (or some other image).

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
插件不支持这点,因为只通过HTML/CSS实现这一点相当简单(就像覆盖一样)。详细请看Demo!\
The support for this is not in the plugin as it's fairly simple to achieve this via just HTML/CSS (just like overlays). Check the demo!

## How to Update Game Data
### 网络速度 || Network Speed

Run AE2 in Fabric from your development environment. A quick way to do this is to check out the main repository,
and run `gradlew runData` followed by `gradlew runClient`. Create a new creative-mode void-world (use superflat + the void template).
[阅读此文章](http://codetheory.in/html5-fullscreen-background-video/#network_speed)\
[Read this](http://codetheory.in/html5-fullscreen-background-video/#network_speed).

Run `/ae2export`. After it is done exporting, it will link the export folder in chat. Open it and copy all contents into this
repository.
选项 || Options
-------

查看`main.js`\
Check `main.js`.

More on HTML5 Video/Audio
-------------------------

- https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
- http://www.w3schools.com/tags/ref_av_dom.asp
10 changes: 10 additions & 0 deletions bf1-web-wiki/Vue.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"folders": [
{
"path": "../../../Desktop/Vue"
}
],
"settings": {
"liveServer.settings.multiRootWorkspaceName": "Jerry114514.github.io-main"
}
}
24 changes: 24 additions & 0 deletions bf1-web-wiki/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>战地1网页百科全书(试做)</title>
<script type="module" src="./typename.js"></script>
</head>
<body>
<h1 id="title">战地风云1 网页百科全书</h1>
<br />
<br />
<div id="select">
<div id="home" class="func">首页</div>
<div id="guns" class="func">武器</div>
<div id="vehicle" class="func">载具</div>
<div id="maps" class="func">地图</div>
<div id="other" class="func">其他</div>
</div>
</body>
<script type="module" src="./print.js">
import { weaponType } from './typename.js';
</script>
</html>
Loading

0 comments on commit 9565238

Please sign in to comment.