-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (69 loc) · 3.09 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>IA</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="./favicon.ico" rel="shrtcut icon">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="theme-color" content="#212121">
<link rel="stylesheet" href="./ia.css?v=1">
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.5/xlsx.full.min.js"></script>
<script>
function exportToExcel(id,name) {
// Select the table element
const table = document.getElementById(id);
// Convert the table to a worksheet
const ws = XLSX.utils.table_to_sheet(table);
// Create a workbook with a single sheet
const wb = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, 'Sheet1');
// Save the workbook as an Excel file
XLSX.writeFile(wb, name+'_data.xlsx');
}
</script>
</head>
<body>
<div class="ia-wrap">
<include src="./ia_head.html"></include>
<div class="ia-body" id="ia-body">
<nav class="navs"></nav>
<ul class="list">
<li>
<button class="bt">메인/공통/기타</button>
<button type="button" class="btnDownload" onclick="exportToExcel('ia_cate_1','메인/공통/기타')">Exls down</button>
<include src="./ia_cate_1.html"></include>
</li>
<li>
<button class="bt">회원/로그인</button>
<button type="button" class="btnDownload" onclick="exportToExcel('ia_cate_2','회원/로그인')">Exls down</button>
<include src="./ia_cate_2.html"></include>
</li>
<li>
<button class="bt">마이페이지</button>
<button type="button" class="btnDownload" onclick="exportToExcel('ia_cate_3','마이페이지')">Exls down</button>
<include src="./ia_cate_3.html"></include>
</li>
<li>
<button class="bt">고객센터</button>
<button type="button" class="btnDownload" onclick="exportToExcel('ia_cate_2','고객센터')">Exls down</button>
<include src="./ia_cate_4.html"></include>
</li>
<li>
<button class="bt">상품</button>
<button type="button" class="btnDownload" onclick="exportToExcel('ia_cate_1','상품')">Exls down</button>
<include src="./ia_cate_1.html"></include>
</li>
<li>
<button class="bt">협력사</button>
<button type="button" class="btnDownload" onclick="exportToExcel('ia_cate_2','협력사')">Exls down</button>
<include src="./ia_cate_2.html"></include>
</li>
</ul>
<nav class="fixs"></nav>
</div>
</div>
<script src="./ia.js"></script>
<script src="./util.js"></script>
</body>
</html>