-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
117 lines (107 loc) · 4.22 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Hackify Picture</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/components/modal.min.css">
<link href="css/styles.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=Montserrat:700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-63828172-11', 'auto');
ga('send', 'pageview');
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="ui small modal" id="shareModal">
<i class="close icon"></i>
<div class="header">
You've been hackified!
</div>
<div class="image content">
<img alt="Hackified picture" class="image">
</div>
<div class="actions">
<div class="ui button">Unhackify me!</div>
<a class="ui button positive" id="download" download="hackified.png">Download</a>
</div>
</div>
<div id="card">
<div class="container">
<div class="content">
<div class="ui segment">
<div id="pic-container">
<img id="placeholder" src="assets/hackgeneric.png">
<canvas id="fb-img"></canvas>
<div id="timer">
<h1>10</h1>
</div>
</div>
<div id="text">
<div id="title">
HACKIFY
</div>
<div id="info">
<p>
Hackify your picture! Don't worry, this won't change your profile picture. You will have to download it and set it
yourself 😎
</p>
</div>
<div id="load-buttons" class="ui three buttons">
<button id="facebook-init" class="ui button">Login with Facebook</button>
<div class="or"></div>
<button id="webcam-init" class="ui button">Use webcam</button>
</div>
<div id="capture-buttons" class="ui two buttons">
<a id="capture-now" class="fluid ui primary button">Capture</a>
<a id="capture-10" class="fluid ui primary button">Capture (10 s)</a>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
window.fbAsyncInit = function () {
FB.init({
appId: '1824906477822367',
xfbml: true,
version: 'v2.10'
});
FB.AppEvents.logPageView();
};
(function (d, s, id) {
let js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {
return;
}
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.13/components/modal.min.js"></script>
<script src="build/babel-polyfill.min.js"></script>
<script src="build/main.js"></script>
</body>
</html>