-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (41 loc) · 1.57 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
<!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">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;698&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
<script src="./chart.js/package/dist/chart.js"></script>
<title>Snapchat Analysis</title>
</head>
<body>
<div class="container">
<div class="header">
<h1>Snapchat Analysis</h1>
<input type="file" name="file" id="file" onchange="processJSON()" accept=".json">
<label for="file">
<img src="upload.svg" alt="Upload">
<!-- <p>Upload JSON</p> -->
</label>
</div>
<div class="content1">
<div class="chart-label">Saved Recieved Chats</div>
<canvas id="srChats" width="200" height="200"></canvas>
</div>
<div class="content2">
<div class="chart-label">Saved Sent Chats</div>
<canvas id="ssChats" width="200" height="200"></canvas>
</div>
<div class="content3">
<div class="chart-label">Unsaved Recieved Chats</div>
<canvas id="urChats" width="200" height="200"></canvas>
</div>
<div class="content4">
<div class="chart-label">Unsaved Sent Chats</div>
<canvas id="usChats" width="200" height="200"></canvas>
</div>
</div>
<script src="./script.js"></script>
</body>
</html>