-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (29 loc) · 1006 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Sorteio de Email</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h2>Sorteio de Email</h2>
<p>Insira os emails abaixo (um por linha) ou anexe um arquivo .xlsx:</p>
<textarea id="emailList" rows="6"></textarea>
<input type="file" id="fileInput" accept=".xlsx">
<button class="button" onclick="realizarSorteio()">Realizar Sorteio</button>
<h3>Vencedor do Sorteio:</h3>
<p id="vencedor" class="winner"></p>
</div>
<div id="modal" class="modal">
<div class="modal-content">
<span class="close" onclick="fecharModal()">×</span>
<h2>Parabéns!</h2>
<p>O ganhador do sorteio é:</p>
<p id="modalWinner" class="winner"></p>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.1/xlsx.full.min.js"></script>
<script src="script.js"></script>
</body>
</html>