1 Star 1 Fork 0

红色核潜艇 / luckdraw

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

#luckdraw

luckdraw是一个html5+js的抽奖程序。

原型是参考了oschina.net中的OSChina现版的抽奖程序改的。 http://www.oschina.net/code/snippet_12_23318

原型中存在小问题,产生的抽奖号码会多。luckdraw对它做了调整。

#使用方法 初始化时需要定义以下数据: PERSON_COUNT = 211; //抽奖参加人数(每个人一个号码) arr = [13, 158, 176, 157, 103, 113, 108, 6, 195, 162,136]; //在下一轮抽奖文件中需要将已经抽中的号码需要放到这个数组中 results1=new Array(); //抽中号码数组;

如设置1、2、3等奖项,每次抽奖需要重新定义一个文件,抽奖顺序为3、2、1的话,2、1等奖抽奖时需初始化arr数组及调整抽奖按钮。

目前这个版本功能很弱,经测试能用。

The MIT License (MIT) Copyright (c) 2015 红色核潜艇 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

web版抽奖程序 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/redflag009/luckdraw.git
git@gitee.com:redflag009/luckdraw.git
redflag009
luckdraw
luckdraw
master

搜索帮助