-
Notifications
You must be signed in to change notification settings - Fork 87
/
index.html
31 lines (31 loc) · 1.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Excel Sheet Generator</title>
<link rel="stylesheet" href="./style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bitter:wght@500&display=swap" rel="stylesheet">
</head>
<body>
<div class="form">
<h1>Excel Sheet Generator</h1>
<input type="number" class="rows" placeholder="Enter number of rows">
<input type="number" class="columns" placeholder="Enter number of columns">
<div class="btns">
<button onclick="generateTable()">Generate</button>
<button onclick="ExportToExcel('xlsx')">Export</button>
</div>
</div>
<div class="table">
<table cellspacing="6px">
<tbody class="sheet-body"></tbody>
</table>
</div>
</body>
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/xlsx.full.min.js"></script>
<script src="./script.js"></script>
</html>