Skip to content

Commit

Permalink
添加示例页面
Browse files Browse the repository at this point in the history
  • Loading branch information
moshang-ax committed Sep 22, 2022
1 parent 2ffc294 commit c801aee
Show file tree
Hide file tree
Showing 25 changed files with 17,112 additions and 118 deletions.
11 changes: 11 additions & 0 deletions docs/css/animate.min.css

Large diffs are not rendered by default.

193 changes: 193 additions & 0 deletions docs/data/getTempData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
{
"cfgData": {
"prizes": [
{ "type": 0, "count": 1000, "title": "", "text": "特别奖" },
{
"type": 1,
"count": 2,
"text": "特等奖",
"title": "神秘大礼",
"img": "./img/secrit.jpg"
},
{
"type": 2,
"count": 5,
"text": "一等奖",
"title": "Mac Pro",
"img": "./img/mbp.jpg"
},
{
"type": 3,
"count": 6,
"text": "二等奖",
"title": "华为 Mate30",
"img": "./img/huawei.png"
},
{
"type": 4,
"count": 7,
"text": "三等奖",
"title": "Ipad Mini5",
"img": "./img/ipad.jpg"
},
{
"type": 5,
"count": 8,
"text": "四等奖",
"title": "大疆无人机",
"img": "./img/spark.jpg"
},
{
"type": 6,
"count": 8,
"text": "五等奖",
"title": "Kindle",
"img": "./img/kindle.jpg"
},
{
"type": 7,
"count": 11,
"text": "六等奖",
"title": "漫步者蓝牙耳机",
"img": "./img/edifier.jpg"
}
],
"EACH_COUNT": [1, 1, 5, 6, 7, 8, 9, 10],
"COMPANY": "MoShang"
},
"leftUsers": [
["000033", "伊万", "WTA"],
["000068", "贝克尔", "ATP"],
["000203", "宝官", "红楼梦"],
["000301", "蕾哈娜", "MUSIC"],
["000074", "特松佳", "ATP"],
["000002", "哈勒普", "WTA"],
["000080", "贾元春", "红楼梦"],
["000001", "OSAKA", "WTA"],
["000094", "雪雁", "红楼梦"],
["000066", "索萨", "ATP"],
["000049", "锦织圭", "ATP"],
["000046", "安德森", "ATP"],
["000091", "麝月", "红楼梦"],
["000003", "黑妹", "WTA"],
["000037", "考特", "WTA"],
["000107", "贾珍", "红楼梦"],
["000050", "伊斯内尔", "ATP"],
["000019", "王蔷", "WTA"],
["000073", "马胡", "ATP"],
["000071", "穆雷", "ATP"],
["000097", "平儿", "红楼梦"],
["000057", "戈芬", "ATP"],
["000054", "西西帕斯", "ATP"],
["000042", "纳达尔", "ATP"],
["000079", "贾宝玉", "红楼梦"],
["000092", "袭人", "红楼梦"],
["000065", "克里赞", "ATP"],
["000030", "萨拉波娃", "WTA"],
["000300", "布兰妮", "MUSIC"],
["000006", "小白菜", "WTA"],
["000017", "梅尔滕斯", "WTA"],
["000102", "贾政", "红楼梦"],
["000053", "福格尼尼", "ATP"],
["000045", "大师兄", "ATP"],
["000108", "贾蓉", "红楼梦"],
["000012", "巴蒂", "WTA"],
["000083", "李纨", "红楼梦"],
["000051", "卡恰", "ATP"],
["000022", "奥胖", "WTA"],
["000075", "吴迪", "ATP"],
["000305", "A妹", "MUSIC"],
["000063", "米尔曼", "ATP"],
["000206", "蕊官", "红楼梦"],
["000058", "阿古特", "ATP"],
["000201", "碧昂丝", "MUSIC"],
["000020", "加西亚", "WTA"],
["000209", "芳官", "红楼梦"],
["000211", "麦丹娜", "MUSIC"],
["000048", "蒂姆", "ATP"],
["000088", "秦可卿", "红楼梦"],
["000008", "科贝尔", "WTA"],
["000015", "格格", "WTA"],
["000078", "薛宝钗", "红楼梦"],
["000061", "约翰逊", "ATP"],
["000302", "阿黛尔", "MUSIC"],
["000021", "穆古鲁扎", "WTA"],
["000043", "费德勒", "ATP"],
["000104", "贾敬", "红楼梦"],
["000027", "克妈", "WTA"],
["000009", "萨巴", "WTA"],
["000064", "查迪", "ATP"],
["000059", "郑玄", "ATP"],
["000082", "惜春", "红楼梦"],
["000010", "小威", "WTA"],
["000029", "塞莱斯", "WTA"],
["000026", "谢淑薇", "WTA"],
["000093", "鸳鸯", "红楼梦"],
["000307", "阿姆", "MUSIC"],
["000077", "林黛玉", "红楼梦"],
["000007", "贝尔滕斯", "WTA"],
["000087", "巧姐", "红楼梦"],
["000309", "林肯公园", "MUSIC"],
["000204", "龄官", "红楼梦"],
["000004", "科维托娃", "WTA"],
["000100", "思琪", "红楼梦"],
["000031", "齐步", "WTA"],
["000096", "碧痕", "红楼梦"],
["000005", "卡普", "WTA"],
["000095", "紫鹃", "红楼梦"],
["000039", "彭帅", "WTA"],
["000200", "琪官", "红楼梦"],
["000035", "文奇", "WTA"],
["000072", "瓦林卡", "ATP"],
["000040", "张帅", "WTA"],
["000109", "贾云", "红楼梦"],
["000306", "贾老板", "MUSIC"],
["000202", "茄官", "红楼梦"],
["000106", "贾环", "红楼梦"],
["000076", "张泽", "ATP"],
["000014", "卡萨", "WTA"],
["000056", "迪米", "ATP"],
["000207", "药官", "红楼梦"],
["000062", "塞皮", "ATP"],
["000067", "哈赛", "ATP"],
["000084", "妙玉", "红楼梦"],
["000208", "藕官", "红楼梦"],
["000081", "探春", "红楼梦"],
["000025", "阿扎", "WTA"],
["000070", "布莱恩", "ATP"],
["000303", "GAGA", "MUSIC"],
["000400", "艾薇儿", "MUSIC"],
["000023", "本西奇", "WTA"],
["000089", "秦钟", "红楼梦"],
["000308", "火星哥", "MUSIC"],
["000024", "李娜", "WTA"],
["000047", "西里奇", "ATP"],
["000036", "佩内塔", "WTA"],
["000205", "玉官", "红楼梦"],
["000016", "凯斯", "WTA"],
["000402", "Pink", "MUSIC"],
["000099", "金川", "红楼梦"],
["000090", "晴雯", "红楼梦"],
["000401", "泰勒", "MUSIC"],
["000013", "沃兹", "WTA"],
["000041", "德约", "ATP"],
["000304", "水果姐", "MUSIC"],
["000085", "史湘云", "红楼梦"],
["000105", "贾琏", "红楼梦"],
["000011", "大威", "WTA"],
["000101", "抱琴", "红楼梦"],
["000052", "丘里奇", "ATP"],
["000038", "埃拉尼", "WTA"],
["000044", "小兹", "ATP"],
["000069", "阿加西", "ATP"],
["000086", "王熙凤", "红楼梦"],
["000060", "西蒙", "ATP"],
["000098", "香莲", "红楼梦"],
["000028", "辛吉斯", "WTA"],
["000032", "维基奇", "WTA"],
["000034", "杨科", "WTA"],
["000103", "贾赦", "红楼梦"],
["000055", "拉奥", "ATP"]
],
"luckyData": {}
}
134 changes: 134 additions & 0 deletions docs/data/getUsers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
[
["000033", "伊万", "WTA"],
["000068", "贝克尔", "ATP"],
["000203", "宝官", "红楼梦"],
["000301", "蕾哈娜", "MUSIC"],
["000074", "特松佳", "ATP"],
["000002", "哈勒普", "WTA"],
["000080", "贾元春", "红楼梦"],
["000001", "OSAKA", "WTA"],
["000094", "雪雁", "红楼梦"],
["000066", "索萨", "ATP"],
["000049", "锦织圭", "ATP"],
["000046", "安德森", "ATP"],
["000091", "麝月", "红楼梦"],
["000003", "黑妹", "WTA"],
["000037", "考特", "WTA"],
["000107", "贾珍", "红楼梦"],
["000050", "伊斯内尔", "ATP"],
["000019", "王蔷", "WTA"],
["000073", "马胡", "ATP"],
["000071", "穆雷", "ATP"],
["000097", "平儿", "红楼梦"],
["000057", "戈芬", "ATP"],
["000054", "西西帕斯", "ATP"],
["000042", "纳达尔", "ATP"],
["000079", "贾宝玉", "红楼梦"],
["000092", "袭人", "红楼梦"],
["000065", "克里赞", "ATP"],
["000030", "萨拉波娃", "WTA"],
["000300", "布兰妮", "MUSIC"],
["000006", "小白菜", "WTA"],
["000017", "梅尔滕斯", "WTA"],
["000102", "贾政", "红楼梦"],
["000053", "福格尼尼", "ATP"],
["000045", "大师兄", "ATP"],
["000108", "贾蓉", "红楼梦"],
["000012", "巴蒂", "WTA"],
["000083", "李纨", "红楼梦"],
["000051", "卡恰", "ATP"],
["000022", "奥胖", "WTA"],
["000075", "吴迪", "ATP"],
["000305", "A妹", "MUSIC"],
["000063", "米尔曼", "ATP"],
["000206", "蕊官", "红楼梦"],
["000058", "阿古特", "ATP"],
["000201", "碧昂丝", "MUSIC"],
["000020", "加西亚", "WTA"],
["000209", "芳官", "红楼梦"],
["000211", "麦丹娜", "MUSIC"],
["000048", "蒂姆", "ATP"],
["000088", "秦可卿", "红楼梦"],
["000008", "科贝尔", "WTA"],
["000015", "格格", "WTA"],
["000078", "薛宝钗", "红楼梦"],
["000061", "约翰逊", "ATP"],
["000302", "阿黛尔", "MUSIC"],
["000021", "穆古鲁扎", "WTA"],
["000043", "费德勒", "ATP"],
["000104", "贾敬", "红楼梦"],
["000027", "克妈", "WTA"],
["000009", "萨巴", "WTA"],
["000064", "查迪", "ATP"],
["000059", "郑玄", "ATP"],
["000082", "惜春", "红楼梦"],
["000010", "小威", "WTA"],
["000029", "塞莱斯", "WTA"],
["000026", "谢淑薇", "WTA"],
["000093", "鸳鸯", "红楼梦"],
["000307", "阿姆", "MUSIC"],
["000077", "林黛玉", "红楼梦"],
["000007", "贝尔滕斯", "WTA"],
["000087", "巧姐", "红楼梦"],
["000309", "林肯公园", "MUSIC"],
["000204", "龄官", "红楼梦"],
["000004", "科维托娃", "WTA"],
["000100", "思琪", "红楼梦"],
["000031", "齐步", "WTA"],
["000096", "碧痕", "红楼梦"],
["000005", "卡普", "WTA"],
["000095", "紫鹃", "红楼梦"],
["000039", "彭帅", "WTA"],
["000200", "琪官", "红楼梦"],
["000035", "文奇", "WTA"],
["000072", "瓦林卡", "ATP"],
["000040", "张帅", "WTA"],
["000109", "贾云", "红楼梦"],
["000306", "贾老板", "MUSIC"],
["000202", "茄官", "红楼梦"],
["000106", "贾环", "红楼梦"],
["000076", "张泽", "ATP"],
["000014", "卡萨", "WTA"],
["000056", "迪米", "ATP"],
["000207", "药官", "红楼梦"],
["000062", "塞皮", "ATP"],
["000067", "哈赛", "ATP"],
["000084", "妙玉", "红楼梦"],
["000208", "藕官", "红楼梦"],
["000081", "探春", "红楼梦"],
["000025", "阿扎", "WTA"],
["000070", "布莱恩", "ATP"],
["000303", "GAGA", "MUSIC"],
["000400", "艾薇儿", "MUSIC"],
["000023", "本西奇", "WTA"],
["000089", "秦钟", "红楼梦"],
["000308", "火星哥", "MUSIC"],
["000024", "李娜", "WTA"],
["000047", "西里奇", "ATP"],
["000036", "佩内塔", "WTA"],
["000205", "玉官", "红楼梦"],
["000016", "凯斯", "WTA"],
["000402", "Pink", "MUSIC"],
["000099", "金川", "红楼梦"],
["000090", "晴雯", "红楼梦"],
["000401", "泰勒", "MUSIC"],
["000013", "沃兹", "WTA"],
["000041", "德约", "ATP"],
["000304", "水果姐", "MUSIC"],
["000085", "史湘云", "红楼梦"],
["000105", "贾琏", "红楼梦"],
["000011", "大威", "WTA"],
["000101", "抱琴", "红楼梦"],
["000052", "丘里奇", "ATP"],
["000038", "埃拉尼", "WTA"],
["000044", "小兹", "ATP"],
["000069", "阿加西", "ATP"],
["000086", "王熙凤", "红楼梦"],
["000060", "西蒙", "ATP"],
["000098", "香莲", "红楼梦"],
["000028", "辛吉斯", "WTA"],
["000032", "维基奇", "WTA"],
["000034", "杨科", "WTA"],
["000103", "贾赦", "红楼梦"],
["000055", "拉奥", "ATP"]
]
Binary file added docs/data/music.mp3
Binary file not shown.
Binary file added docs/data/抽奖结果.xlsx
Binary file not shown.
Binary file added docs/img/edifier.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/huawei.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/ipad.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/kindle.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/mbp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/secrit.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/spark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><title>年会抽奖</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,user-scalable=no,minimum-scale=1,maximum-scale=1"><!-- <link rel="stylesheet" href="./index.css"> --></head><body><script src="./lib/three.min.js"></script><script src="./lib/tween.min.js"></script><script src="./lib/TrackballControls.js"></script><script src="./lib/CSS3DRenderer.js"></script><script src="./lib/ajax.js"></script><div class="canvas-box"><canvas id="canvas">你的浏览器不支持canvas</canvas></div><div class="music"><audio id="music" src="./data/music.mp3" class="music-item" loop></audio><div id="musicBox" class="music-box" title="播放/暂停背景音乐">Music</div></div><div id="prizeBar"></div><div id="container"></div><div id="menu"><button id="enter">进入抽奖</button><div id="lotteryBar" class="none"><button id="lottery">开始抽奖</button> <button id="reLottery">重新抽奖</button><div class="fixed-bar"><button id="save" class="fixed-btn">导出抽奖结果</button> <button id="reset" class="fixed-btn">重置</button></div></div></div><div class="qipao-container"></div><script type="text/javascript" src="lottery.js?0a96b7bc8977a25c1c36"></script></body></html>
Loading

0 comments on commit c801aee

Please sign in to comment.