-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
98 lines (93 loc) · 4.64 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- compile with npm run build-static -->
<!-- <script src="js/actions.js"></script> -->
<link rel="stylesheet" href="index.css">
<meta name="description" content="View and share stats about your WhatsApp chats">
<meta name="author" content="Judy Naamani & Julien Bertazzo Lambert">
<meta name="keywords" content="WhatsApp, Wrapped, WhatsAppWrapped, ">
<meta property="og:title" content="WhatsApp Wrapped">
<meta property="og:description" content="View and share stats about your WhatsApp chats">
<meta property="og:image" content="https://whatsappwrapped.tech/icons/oooo.png">
<meta property="og:url" content="https://whatsappwrapped.tech">
<meta name="twitter:title" content="WhatsApp Wrapped">
<meta name="twitter:description" content="View and share stats about your WhatsApp chats">
<meta name="twitter:image" content="https://whatsappwrapped.tech/icons/oooo.png">
<meta name="twitter:card" content="summary_large_image">
<title>WhatsApp Wrapped</title>
<link rel="shortcut icon" href="icon.png">
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script defer src="https://unpkg.com/@popperjs/core@2/dist/umd/popper.js"></script>
<script defer src="js/wrappeddata.js"></script>
<script defer src="js/script.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4229922602953678"
crossorigin="anonymous"></script>
</head>
<body>
<div class="home">
<div class="titles">
<h1 class="wa">WhatsApp</h1>
<h1 class="wrapped">Wrapped</h1>
</div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#4aca59" fill-opacity="1" d="M0,224L40,186.7C80,149,160,75,240,80C320,85,400,171,480,192C560,213,640,171,720,181.3C800,192,880,256,960,272C1040,288,1120,256,1200,234.7C1280,213,1360,203,1400,197.3L1440,192L1440,320L1400,320C1360,320,1280,320,1200,320C1120,320,1040,320,960,320C880,320,800,320,720,320C640,320,560,320,480,320C400,320,320,320,240,320C160,320,80,320,40,320L0,320Z"></path></svg>
</div>
<div class="upload">
<h2>Upload the chat file</h2>
<div class="drag-upload" ondrop="dropHandler(event)" ondragover="dragOverHandler(event);" ondragleave="dragLeaveHandler(event)">
<span class="material-icons-outlined">
upload_file
</span>
<p id="drag">Drag & drop here</p>
<p>or</p>
<form class="input-div" action="/upload" enctype="multipart/form-data" method="post">
<label for="file-input">Browse files</label>
<input id="file-input" name="fileUploaded" type="file" accept=".txt" hidden></input>
</form>
<span id="file-chosen">No file chosen</span>
<br>
<div id="disclaim">
<div id="data" aria-describedby="tooltip"><span class="material-icons-outlined" id="help-icon">help_outline</span>What happens to my data?</div>
<div id="tooltip" class="hidden" role="tooltip">
We do not see or store your data, it is processed and stored right here in your browser, and cleared when you close the page.
Feel free to check out <a href="https://github.com/judy-n/WhatsAppWrapped">our code</a> for peace of mind.
<div id="p-arrow" class="hidden" data-popper-arrow></div>
</div>
</div>
</div>
<button id="file-submit"><div class="loader hide"></div><span id="status">Submit</span></button>
</div>
<div class="how-to">
<h2>Get Started</h2>
<hr/>
<div class="howto-content">
<div class="howto-text">
<p>WhatsApp Wrapped gives you a summary of your chat with another person!</p>
</div>
<div class="howto-imgs">
<p>To try it, simply open WhatsApp on your phone and click on one of your contacts.
<br> Then click on <span id="bolded"> Export Chat > Without Media</span></p>
<div class="images">
<img src="export2.jpg" alt="">
<span id="arrow" class="material-icons-outlined">
arrow_forward
</span>
<img src="media2.jpg" alt="">
</div>
</div>
<p>Then simply upload the .txt file to this page and click submit!</p>
</div>
</div>
<div class="sample">
<h2>Just looking around?</h2>
<hr/>
<p>Check out the output of a <a id="samp" href="#">sample chat</a></p>
</div>
<footer>
<p>Made with <span id="heart">❤</span> by <a target="_blank" href="https://judyn.me/">Judy</a> and <a target="_blank" href="https://www.julienbl.me/">Julien</a></p>
</footer>
</body>
</html>