-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
109 lines (77 loc) · 3.61 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<title>Chatroulette Custom Selfie</title>
<!-- Background JS -->
<script src="background.js"></script>
<!-- Local files -->
<script src="js/toasts.js"></script>
<script src="js/init.js"></script>
<script src="js/filehandler.js"></script>
<script src="js/uploader.js"></script>
<!-- Dependencies -->
<link href="./deps/bootstrap.min.css" rel="stylesheet">
<script src="./deps/bootstrap.bundle.min.js"></script>
<link href="./deps/animate.min.css" rel="stylesheet">
<link href="popup.css" rel="stylesheet">
</head>
<body class="animate__animated animate__fadeIn">
<div class="d-flex flex-row justify-content-center m-5">
<div class="d-flex flex-column align-items-center">
<!-- Logo -->
<img src="./assets/images/ccs_logo.png" class="img" style="max-width: 40vh; min-width: 65vw;">
<div id="tabs-container" class="tab-content">
<!-- Unsupported website tab -->
<div id="unsupported-tab" class="tab-pane" role="tabpanel", tabindex="0">
<h6 class="text-center my-5 py-3"> Oops, this extension only works on the chatroulette website :( </h2>
</div>
<!-- Init tab -->
<div id="init-tab" class="tab-pane active show" role="tabpanel", tabindex="0">
<button id="init" type="button" class="btn btn-outline-success m-4" type="button">Initiatlize</button>
<div id="init-error" class="collapse alert alert-danger bg-danger text-light fw-bold font-smaller" role="alert">
<div class="d-flex flex-column align-items-center">
<img src="./assets/images/warning.svg"></img>
</div>
<hr>
<p>> Set a selfie</p>
<p>> Refresh the page</p>
</div>
</div>
<!-- Main execution tab -->
<div id="exec-tab" class="tab-pane" role="tabpanel", tabindex="0">
<div class="d-flex flex-column">
<button id="upload" type="button" class="btn btn-outline-success m-4" type="button"> Upload Selfie </button>
<input hidden type="file" id="upload-file-selector">
<div id="upload-success" class="collapse alert alert-success bg-success text-light fw-bold font-smaller my-5" role="alert">
<div class="d-flex flex-column align-items-center">
<img src="./assets/images/check.svg" ></img>
</div>
<hr>
<p class="text-center"> Selfie changed! </p>
</div>
</div>
<div id="upload-error" class="collapse alert alert-danger bg-danger text-light fw-bold font-smaller" role="alert">
<div class="d-flex flex-column align-items-center">
<img src="./assets/images/warning.svg" ></img>
</div>
<hr>
<p id="upload-error-msg"></p>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="footer">
<div class="footer-inner">
<div class="footer-content mb-1">
<button id="instagram" style="background-color: transparent; border: 0px;">
<img src="./assets/images/instagram.svg"></img> <p style="display: inline; color: white;">   @kronsuki </p> </img>
</button>
</div>
</div>
</div>
</div>
</div>
</container>
</body>
</html>