Skip to content

IllustriousVan/EasyDraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

随手抽签 | EasyDraw

简介 | Introduction

随手抽签 (EasyDraw) 是一个简单易用的抽签工具,支持用户手动导入选项并进行随机选择。你可以通过复制选项到文本框来导入抽签内容,并选择是否允许重复抽取,工具可以在手机和电脑端的网页浏览器中本地运行,无需服务器支持。

EasyDraw is a simple and easy-to-use tool for drawing lots. It allows users to manually import options and make random selections. You can paste options into the text box to import them, and choose whether to allow repeated selections. The tool runs locally in web browsers on both mobile devices and desktop computers without the need for server support.


功能特点 | Features

  • 手动导入选项:用户可以通过文本框粘贴内容,每行一个选项。

  • 随机抽签:支持随机从导入的选项中抽取结果。

  • 重复抽取控制:允许用户选择是否在抽取后排除已抽中的选项。

  • 本地运行:无需服务器,可以在手机或电脑的浏览器上本地打开使用。

  • Manual option import: Users can paste options into a text box, one option per line.

  • Random draw: Randomly select from the imported options.

  • Control repeated selections: Allows users to choose whether to exclude previously selected options from future draws.

  • Local use: No server required, can be used locally in browsers on mobile devices or desktops.


使用方法 | How to Use

  1. 复制想要抽签的选项,每行一个,并将其粘贴到输入框中。

  2. 点击“导入选项”按钮,将选项导入工具中。

  3. 勾选“是否允许重复抽取”,根据需要选择抽签方式。

  4. 点击“开始抽签”按钮,随机选择一个选项并显示结果。

  5. Copy the options you want to draw from, one option per line, and paste them into the input box.

  6. Click the "Import Options" button to import the options into the tool.

  7. Check the "Allow Repeated Selections" option if you want to allow repeated selections.

  8. Click the "Start Drawing" button to randomly select an option and display the result.


文件结构 | File Structure

├── index.html             # 主网页文件 | Main HTML file
├── README.md              # 项目说明文件 | Project README file
└── script.js              # JavaScript逻辑文件| JavaScript logic
└── inline抽签工具.js        # 将script内联在html中

示例截图 | Example Screenshot

image


贡献 | Contribution

如果你有任何建议或改进,欢迎提交 issue 或 pull request。

If you have any suggestions or improvements, feel free to submit an issue or pull request.