-
Notifications
You must be signed in to change notification settings - Fork 2
/
index_back.html
145 lines (128 loc) · 3.76 KB
/
index_back.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Portrait" content="width=device-width, initial-scale=1.0">
<link rel="manifest" href="/manifest.json">
<link rel="icon" href="/hand.png" type="image/png" />
<title>My Browsing Portrait</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
}
.header,
.section {
padding: 20px;
margin-bottom: 20px;
border: 1px solid #ddd;
}
.header {
background-color: #4476c6;
color: #fff;
text-align: center;
}
.section img {
max-width: 100%;
border: 1px solid black;
}
.section h2 {
border-bottom: 2px solid #333;
padding-bottom: 10px;
}
.section table {
width: 100%;
border-collapse: collapse;
text-align: center;
border: 1px solid black;
table-layout: fixed;
}
.historyTable {
max-height: 400px;
overflow-y: auto;
}
.section table th,
.section table td {
border: 1px solid black;
padding: 8px;
word-wrap: break-word;
white-space: pre-wrap;
overflow: auto;
}
.section p span {
font-weight: bold;
color: #4476c6;
}
.footer {
background-color: #4476c6;
color: #fff;
text-align: center;
font-weight: bold;
padding: 20px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>WebScape Diaries</h1>
<p>
Hi,Elyssa<br />
A look back at the highlights of <br />
the last 7 days.
</p>
</div>
<div class="section" id="portrait">
<h2>Your Digital DNA</h2>
<img src="tag.png" alt="Portrait Highlights">
<p></p>
</div>
<div class="section">
<h2>Web Wanderings</h2>
<!-- <p id="wanderingSum">Over the past 7 days, the top 3 websites you visited the most are [<span
id="websites"></span>] </p> -->
<p id="wanderingSum">Over the past 7 days, <br />
the top 3 websites you visited the most are
[<span>github,microsoft,chat]</span>]
</p>
<br />
<!-- <canvas id="BarChart"></canvas> -->
<img src="CHART.png" alt="BarChart">
<br />
<!-- <table id="historyTable">
<thead>
<tr>
<th>Websites</th>
<th>URL</th>
<th>Visit Count</th>
<th>Last Visit Time</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<br /> -->
</div>
<div class="footer">
<p>Your big fish must be somewhere!</p>
</div>
</div>
<!-- <script src="https://d3js.org/d3.v4.min.js"></script>
<script src="node_modules/d3-cloud/build/d3.layout.cloud.js"></script> -->
<script src="script.js"></script>
</body>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js', { scope: '/' });
}
</script>
</html>