Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lucky-canvas

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucky-canvas

一个基于原生 js 的(大转盘抽奖 / 九宫格抽奖)插件

  • 1.7.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.4K
decreased by-1.61%
Maintainers
2
Weekly downloads
 
Created
Source
logo

lucky-canvas 抽奖插件

一个基于 JavaScript 的跨平台 ( 大转盘 / 九宫格 ) 抽奖插件

stars forks author license


官方文档 & Demo演示

中文https://100px.net/usage/js.html

EnglishIf anyone can help translate the document, please contact me ldq404@qq.com


在 Js / JQuery 中使用

方式 1:通过 script 标签引入

<div id="my-lucky"></div>
<script src="https://cdn.jsdelivr.net/npm/lucky-canvas@1.6/dist/index.umd.min.js"></script>
<script>
  const myLucky = new LuckyCanvas.LuckyWheel('#my-lucky', {
    width: '200px',
    height: '200px',
    blocks: [{ padding: '10px', background: '#869cfa' }],
    prizes: [
      { fonts: [{ text: '0' }], background: '#e9e8fe' },
      { fonts: [{ text: '1' }], background: '#b8c5f2' },
      { fonts: [{ text: '2' }], background: '#e9e8fe' },
      { fonts: [{ text: '3' }], background: '#b8c5f2' },
      { fonts: [{ text: '4' }], background: '#e9e8fe' },
      { fonts: [{ text: '5' }], background: '#b8c5f2' },
    ],
  })
</script>

🙏🙏🙏 点个Star

如果您觉得这个项目还不错, 可以在 Github 上面帮我点个star, 支持一下作者 ☜(゚ヮ゚☜)

Keywords

FAQs

Package last updated on 18 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc