aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: db1280fa87f638b8a1ee9714d08800f3ee90baad (plain) (blame)
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
<!DOCTYPE html>
<!--
    Markup of the Netflix Stats Generator
    @author Marvin Borner
    @copyright Marvin Borner 2018
-->
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta
            content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
            name="viewport"
        />
        <meta content="ie=edge" http-equiv="X-UA-Compatible" />
        <link
            href="https://fonts.googleapis.com/css?family=Varela+Round"
            rel="stylesheet"
        />
        <link href="assets/css/normalize.css" rel="stylesheet" />
        <link href="assets/css/main.css" rel="stylesheet" />
        <title>Netflix Statistics</title>
    </head>

    <body>
        <div class="input" id="cookie_wrap">
            <label for="cookie">Enter your cookie:</label>
            <input
                class="cookie"
                id="cookie"
                placeholder="memclid=***; ..."
                type="text"
            />
        </div>

        <div class="loading" id="loading">
            Loading... (This can take some time, please be patient)
        </div>

        <div class="stats" id="stats">
            <h2>Netflix Statistics</h2>
			<div><b>Note:</b> The statistics don't include rewatches due to technical reasons</div>
            <div>Total watch time: <span id="totalSpent"></span></div>
            <div>
                <p>Title count per hour:</p>
                <div class="chart" id="hourChart"></div>
            </div>
            <div>
                <p>Most watched titles:</p>
                <button id="toggle">View all</button>
                <div class="chart" id="topChart"></div>
            </div>
            <div>
                <p>Title count per day per year:</p>
				<p><span id="prevYear">&#10094;</span> <span id="selectedYear" data-week=0></span> <span id="nextYear">&#10095;</span></p>
                <div class="chart" id="heatMap"></div>
            </div>
        </div>

        <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
        <script src="assets/js/main.js"></script>
    </body>
</html>