-
Notifications
You must be signed in to change notification settings - Fork 0
/
upload.html
86 lines (81 loc) · 2.51 KB
/
upload.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Melodies - Upload Page</title>
<link rel="stylesheet" href="upload.css" />
</head>
<body>
<h1 style="position: absolute; left: 53px; top: 0px;">Add Your Favourite Song 😄</h1>
<div class="fileUploadPage">
<center class="uploadLayout">
<input type="text" placeholder="Song Name" class="uploadSongName" />
<input type="text" placeholder="Artist" class="uploadArtistName" />
<input
type="file"
value="upload"
class="uploadThumbnail"
data-buttonText="thumbnail"
accept="image/jpeg,image/gif,image/png,image/jpg"
/>
<input
type="file"
value="upload"
class="uploadBg"
data-buttonText="Background"
accept="image/jpeg,image/gif,image/png,image/jpg"
/>
<input
type="file"
value="upload"
class="uploadMusic"
data-buttonText="Music"
accept="audio/mp3,audio/odd,audio/wav"
/>
<progress
value="0"
min="0"
max="100"
class="uploadProgress"
id="thumbnailUpload"
>
Thumbnail Upload Progress</progress
>
<progress
value="0"
min="0"
max="100"
class="uploadProgress"
id="bgUpload"
>
Background Upload Progress</progress
>
<progress
value="0"
min="0"
max="100"
class="uploadProgress"
id="audioUpload"
>
Audio Upload Progress</progress
>
</center>
</div>
<a href="index.html"><img src="./Screenshot_1.png"></a>
<h2>You can go back to the homepage once the uploading is done</h2>
<script src="https://www.gstatic.com/firebasejs/8.2.3/firebase.js"></script>
<script>
var firebaseConfig = {
apiKey: "AIzaSyClEIWsi-N0Idwl5UMtoXKUoX04EZ0MuLQ",
authDomain: "melodies-58239.firebaseapp.com",
databaseURL: "https://melodies-58239-default-rtdb.firebaseio.com",
projectId: "melodies-58239",
storageBucket: "melodies-58239.appspot.com",
messagingSenderId: "1061029878100",
};
firebase.initializeApp(firebaseConfig);
</script>
<script src="upload.js"></script>
</body>
</html>