-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
119 lines (116 loc) · 5.44 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
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MusicBox</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"
/>
<link rel="stylesheet" href="./assets/css/style.css" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf"
crossorigin="anonymous"/>
</head>
<body>
<header>
<nav
class="navbar is-primary"
role="navigation"
aria-label="main navigation"
>
<section id="hero" class="columns">
<div class="navbar-brand">
<img id="logo" src="./assets/images/musicBoxLogo.png" alt="" />
<div class="column">
<div class="bd-notification is-info">
<label class="labelSearch"> Search an artist</label>
<div class="field is-grouped">
</div>
<input
class="input search-bar"
type="text"
placeholder="Artist name"
/>
<button class="button is-success search-button" type="submit"> Search </button>
</div>
</div>
</div>
</section>
</nav>
</header>
<section>
<div class="searched-artist">
<h1 id="artist-name">Search for an Artist<span id="span-title"></span></h1>
</div>
</section>
<main>
<div class="columns is-multiline page-content">
<!-- Search History Column -->
<div class="column is-2">
<div id="search-history" class="menu column">
<h2 class="menu-label">Search history</h2>
<ul class="menu-list" id="artist-list">
</ul>
<p class="control">
<button class="button is-success clear-history" type="submit"> Clear history </button>
</p>
</div>
</div>
<!-- Top Songs Column -->
<div class="menu column is-one-quarter">
<h2 class="label">Top 10 Songs</h2>
<ol id="track-list" class="menu-list top-song-list"></ol>
</div>
<!-- Music Player Column -->
<div class="column is-2.5 music-player-container">
<h2 class="label">Music Player <a class="button is-primary is-outlined" id="full-song-url" href="" target="_blank" >Go To Full Song</a></h2>
<img src="./assets/images/musicplayer.jpg" id="placeholder" alt="Music Player Placeholder" />
<iframe id="music-player" style="border-radius:12px" src="" width="100%" height="380" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"></iframe>
</div>
<!-- Lyrics Container -->
<div class="column is-one-quarter" id="lyrics">
<label class="label">Lyrics
<button class="js-modal-trigger button is-primary is-outlined" data-target="modal-of-lyrics">
Copy Lyrics
</button>
</label>
<div class="lyrics-text">Click on a song to display Lyrics!</div>
</div>
</div>
<div id="modal-of-lyrics" class="modal">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Lyrics: <span id="song-title-modal"></span></p>
<button class="button is-info copier"><i class="fas fa-copy"></i></button>
<button class="button is-info close-lyrics">Close</button>
</header>
<section class="modal-card-body">
<p id="song-lyrics-modal"></p>
</section>
</div>
</div>
</div>
<div id="modal-lyrics-not-found" class="modal">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Lyrics not found :( <span id="song-title-modal"></span></p>
<button class="button is-info close-lyrics-not-found">Close</button>
</header>
</div>
</div>
</div>
</main>
<!-- Linked JavaScript files and JQuery -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
referrerpolicy="no-referrer">
</script>
<script src="./assets/js/script.js"></script>
<script src="./assets/js/lyrics.js"></script>
</body>
</html>