-
Notifications
You must be signed in to change notification settings - Fork 0
/
journey.html
233 lines (208 loc) · 10.2 KB
/
journey.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Your Messenger Journey</title>
<meta charset='utf-8'>
<link href="styles/journey.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Muli:300,400|Source+Sans+Pro&display=swap" rel="stylesheet">
<link rel="stylesheet" href="node_modules/odometer/themes/odometer-theme-default.css"/>
<script>
if (typeof module === 'object') {
window.module = module;
module = undefined;
}
window.odometerOptions = {
duration: 100,
format: 'd'
}
window.$ = window.jQuery = require("jquery");
window.moment = require('moment');
window.Chart = require('chart.js');
window.odometer = require('odometer');
window.WordCloud = require('wordcloud');
window.daterangepicker = require('daterangepicker');
</script>
<script type="text/javascript" src="scripts/plugins.min.js"></script>
<script type="text/javascript" src="scripts/journey.js"></script>
<script>
if (window.module) module = window.module;
</script>
</head>
<body style="overflow:hidden;">
<div id="header">
<div id="optionWrapper">
<div class="option" id="minimize" onclick="ipcRenderer.send('minimize-me', 'journey')">—</div>
<div class="option" id="maximize" onclick="ipcRenderer.send('maximize-me', 'journey')">🗖</div>
<div class="option" id="exit" onclick="ipcRenderer.send('close-me', 'journey')">🞩</div>
</div>
</div>
<div id="control" style="display: none;">
<i id="uparrow" class="arrow up" onclick="scrollUp()"></i>
<br><br><br>
<i id="downarrow" class="arrow down" onclick="scrollDown()"></i>
</div>
<div id="begin" class="section">
<div style="position:relative; top:50%; left:50%; transform:translate(-50%, -50%);">
<div class="maintitle fade-in-top">
Your Messenger <span id=year_text class="odometer">1998</span> Journey
</div>
<button id="loadbutton" class="fade-in-bottom button">
Loading ...
</button>
</div>
</div>
<div id="year-review">
<div id="sec1" class="section">
<div style="position:relative; top:50%; left:50%; transform:translate(-50%, -50%);">
<div class="maintitle to-animate" data-anime="fade-top">
In <span class="thisYear">2019</span>, you sent <span id="msg_total" class="odometer to-animate" data-anime="odo" data-number="0">0</span> messages
<img src="img/mail.png" style="width: 1em; height: 1em;"><br>
and received <span id="rcd_total" class="odometer to-animate" data-anime="odo" data-number="0">0</span> messages
<img src="img/mailbox.png" style="width: 1em; height: 1em;">
</div>
</div>
</div>
<div id="sec2" class="section">
<br><br><br>
<div class="maintitle to-animate" data-anime="fade-top">
You reacted <span id="rct_total" class="odometer to-animate" data-anime="odo" data-number="0">0</span> times,<br>
of which <span id="rct_max" class="odometer to-animate" data-anime="odo" data-number="0">0</span>% were
<img id="mostRct" src="img/thumbsup.png" style="width: 1em; height: 1em;">
</div>
<div class="bigChart">
<canvas id="reactChart" class="to-animate" data-anime="chart"></canvas>
</div>
</div>
<div id="sec3" class="section">
<br><br><br>
<div class="maintitle to-animate" data-anime="fade-top">
Not all messages are created equal, <br>
<span id="msgType_max" class="odometer to-animate" data-anime="odo" data-number="0">0</span>% of yours were
<span id="mostMsgType"></span>
</div>
<div class="bigChart">
<canvas id="typeChart" class="to-animate" data-anime="chart"></canvas>
</div>
</div>
<div id="sec4" class="section">
<br><br><br><br>
<div class="maintitle to-animate" data-anime="fade-top">
You were the most active from <span id="mostActiveTime"></span>,<br>
and didn't talk much from <span id="leastActiveTime"></span>
</div>
<div class="bigChart">
<canvas id="hourChart" class="to-animate" data-anime="chart"></canvas>
</div>
</div>
<div id="sec5" class="section">
<div style="position:relative; top:50%; left:50%; transform:translate(-50%, -50%);">
<div class="maintitle to-animate" data-anime="fade-top">
You sent the most messages to <strong><span id="topContact"></span></strong>,
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
with <span id="topContactMsgCount" class="odometer to-animate" data-anime="odo" data-number="0">0</span> messages,
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
that's <span id="topContactPercent" class="odometer to-animate" data-anime="odo" data-number="0">0</span>% of your sent DM's!
</div>
</div>
</div>
<div id="sec6" class="section">
<div style="position:relative; top:50%; left:50%; transform:translate(-50%, -50%);">
<div class="maintitle to-animate" data-anime="fade-top">
You <span id="also" style="display: none;">also</span> receieved the most messages from
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
<strong><span id="topContactIn"></span></strong>. At <span id="topContactInMsgCount" class="odometer to-animate" data-anime="odo" data-number="0">0</span> messages, they account
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
for <span id="topContactInPercent" class="odometer to-animate" data-anime="odo" data-number="0">0</span>% of DM's you received this year!
</div>
</div>
</div>
<div id="sec7" class="section">
<div style="position:relative; top:50%; left:50%; transform:translate(-50%, -50%);">
<div class="maintitle to-animate" data-anime="fade-top">
Your top group<span id="multigroup0">s were</span>
<strong><span id="topGroup1"></span></strong>
<span id="multigroup"><br>and
<strong><span id="topGroup2"></span></strong>
</span>
</div><br><br><br><br>
<div class="maintitle to-animate" data-anime="fade-top">
You sent <span id="topGroupOutCount" class="odometer to-animate" data-anime="odo" data-number="0">0</span> messages
<span id="multigroup1"> to the former</span>
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
and received <span id="topGroupInCount" class="odometer to-animate" data-anime="odo" data-number="0">0</span>
<span id="multigroup2"> from the latter</span>
</div>
</div>
</div>
<div id="sec8" class="section">
<div style="position:relative; top:50%; left:50%; transform:translate(-50%, -50%);">
<div class="maintitle to-animate" data-anime="fade-top">
You seem to have had a deep conversation
<br> with <strong><span id="deepTalkName"></span></strong> on
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
<strong><span id="deepTalkDate"></span></strong> at <strong><span id="deepTalkTime"></span></strong>
</div><br><br>
<div class="maintitle to-animate" data-anime="fade-top">
You two sent <span id="deepTalkCount" class="odometer to-animate" data-anime="odo" data-number="0">0</span> messages
<br> to each other within <span id="deepTalkHours" class="odometer to-animate" data-anime="odo" data-number="2">0</span> hour<span id="hoursPlural">s</span>
</div>
<button id="convoButton" class="to-animate button" onclick="openConvo()" data-anime="fade-bottom">
Read this conversation
</button>
</div>
<div id="messagesContainer" style='display: none;'>
<ol id="messages">
</ol>
</div>
</div>
<div id="sec9" class="section">
<div style="position:relative; top:50%; left:50%; transform:translate(-50%, -50%);">
<div class="maintitle to-animate" data-anime="fade-top">
Maybe you lost contact, maybe you drifted apart,
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
but this year, you talked a lot less to
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
<strong><span id="lost1"></span></strong>, <strong><span id="lost2"></span></strong> and <strong><span id="lost3"></span></strong>,
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
with <span id="lostCount" class="odometer to-animate" data-anime="odo" data-number="0">0</span>% less messages sent to <strong><span id="lost1-1"></span></strong>.
</div>
</div>
</div>
<div id="sec10" class="section">
<div style="position:relative; top:50%; left:50%; transform:translate(-50%, -50%);">
<div class="maintitle to-animate" data-anime="fade-top">
On the other hand, you made some new friends,
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
with <span id="friendCount1" class="odometer to-animate" data-anime="odo" data-number="0">0</span> more messages sent to <strong><span id="friend1"></span></strong>,
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
<span id="friendCount2" class="odometer to-animate" data-anime="odo" data-number="0">0</span> more to <strong><span id="friend2"></span></strong>
</div><br>
<div class="maintitle to-animate" data-anime="fade-top">
and <span id="friendCount3" class="odometer to-animate" data-anime="odo" data-number="0">0</span> more to <strong><span id="friend3"></span></strong>
</div>
</div>
</div>
<div id="sec11" class="section">
<div style="position:relative; top:10%; left:50%; transform:translate(-50%, -50%);">
<div class="maintitle to-animate" data-anime="fade-top">
Some of your favorite words this year
</div>
</div>
<div style="position: relative; bottom: 0%; left: 10%; height: 80vh; width: 80vw;">
<div id="wordCloud" class="to-animate" data-anime="cloud" style="width: 80vw; height: 70vh; top: 15%"></div>
</div>
</div>
</div> <!-- end of year-in-review -->
</body>
</html>