-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
116 lines (114 loc) · 4.98 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<meta name="author" content="2015HackNTU">
<meta property="og:title" content="2015黑客週 抽獎網頁">
<link rel="stylesheet" type="text/css" href="./bower_components/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="./css/main.css">
<title>2015HackNTU</title>
<script src="https://cdn.firebase.com/js/client/2.0.3/firebase.js"></script>
<script src="./bower_components/jquery/dist/jquery.js"></script>
<script src="./bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="./js/app.js"></script>
</head>
<body>
<div class="container-fluid">
<h2>2015黑客週 抽獎網頁</h2>
<div class="row" style="margin-top: 10%;">
<div class="col-md-8">
<table class="table">
<thead>
<tr>
<th>項目</th>
<th>筆記本</th>
<th>Microsoft筆</th>
<th>飛盤</th>
<th>鋪克牌</th>
<th>Facebook貼紙</th>
<th>特別襪子</th>
<th>客製化車宣</th>
<th>total</th>
</tr>
</thead>
<tbody>
<tr>
<td>剩餘數量</td>
<td id="notebook">0</td>
<td id="pen">0</td>
<td id="flyingDisk">0</td>
<td id="poker">0</td>
<td id="sticker">0</td>
<td id="sock">0</td>
<td id="hacklcd">0</td>
<td id="total">0</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-4">
<button type="button" class="big btn btn-success btn-lg" id="lottery" data-toggle="modal" data-target=".bs-example-modal-sm">抽獎!</button>
<button type="button" class="big btn btn-danger btn-lg" data-toggle="modal" data-target="#resetData">重新輸入</button>
</div>
</div>
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">抽獎!</h4>
</div>
<div class="modal-body" id="prize_content"></div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">放棄抽獎</button>
<button type="button" class="btn btn-primary" data-dismiss="modal" id="take">確定領獎</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="resetData" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">重新輸入</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="notebookNum">筆記本</label>
<input type="text" class="form-control" id="notebookNum" placeholder="200">
</div>
<div class="form-group">
<label for="penNum">Microsoft筆</label>
<input type="text" class="form-control" id="penNum" placeholder="25">
</div>
<div class="form-group">
<label for="flyingDiskNum">飛盤</label>
<input type="text" class="form-control" id="flyingDiskNum" placeholder="1">
</div>
<div class="form-group">
<label for="pokerNum">撲克牌</label>
<input type="text" class="form-control" id="pokerNum" placeholder="1">
</div>
<div class="form-group">
<label for="stickerNum">Facebook貼紙</label>
<input type="text" class="form-control" id="stickerNum" placeholder="5">
</div>
<div class="form-group">
<label for="sockNum">特別襪子</label>
<input type="text" class="form-control" id="sockNum" placeholder="1">
</div>
<div class="form-group">
<label for="hachlcdNum">客製化車宣</label>
<input type="text" class="form-control" id="hachlcdNum" placeholder="5">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-primary" data-dismiss="modal" id="reset">確認</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>