惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

路明笔记

停更的两个月 使用 AI 从任意博客系统迁移到 Typecho 归档:REDMI Watch 5 eSIM 固件修改计划 路明笔记 2 月优化日志 我不需要一块全智能手表 REDMI Watch 5 eSIM 新固件恢复快应用安装详细教程 彻底解决 REDMI Watch 5(包括eSIM版)快应用数量限制问题及其原理解读 人生“转折点” —— 我的2025 给洛阳八高电教委的一些话
新项目:随机转盘
老陈爱刷机 · 2026-01-03 · via 路明笔记

我们班有一个传统——每周班会课上,老师会允许量化积分排名前五的同学随机抽取一项奖励。

其中有一些奖项,比如"免作业",需要比其它奖项更难被抽到。此时就要使用带有权重功能的抽奖工具了。但是,目前市面上的抽奖工具普遍不符合我的审美,而且带有权重功能的抽奖工具太少了,还都或多或少地有嵌入广告,十分烦人。

既然网上的不能满足我的需求,那就……自己做一个!

接下来向您介绍,由我设计界面,由 AI 编写逻辑代码做出的 HTML 作品——转盘。


界面

主界面

采用上下结构,上方是一系列自定义设置,下方是显示一半的转盘。

转盘只显示一半这点学习了 OPPO Lab 里的抽奖程序。

介绍

首先,转盘可以带权重抽奖。由于权重不是按照百分制计算,所以各个奖项的权重之和不一定是 100,你甚至可以将某个奖项的权重设置为 2147483647。

更改奖项界面

用户可以将当前的一组奖项保存为预设,以便在特定场景快速恢复及使用。

预设会以 Cookies 方式保存在用户的电脑中。保存数量无上限。

编辑预设界面

然后就没了。就是这么简单。

结语

欢迎线上体验:https://random.luming.cool/