-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
279 lines (276 loc) · 16.6 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html>
<head>
<!-- viewport tag telling the browser to set the width of the content to the width of the device itself, and to scale that content to 1 on load. -->
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="utf-8">
<title>Mixtape</title>
<!-- link to bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- google fonts -->
<link href="https://fonts.googleapis.com/css?family=Asset|Audiowide|Balthazar|Bungee+Inline|Bungee+Outline|Bungee+Shade|Holtwood+One+SC|IM+Fell+English+SC|Michroma|Monofett|Monoton|Poller+One|Sigmar+One|Walter+Turncoat" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Days+One|Playfair+Display+SC|Sanchez|Yrsa" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Permanent+Marker" rel="stylesheet">
<!-- css links -->
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<!-- javascript link -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
</head>
<body>
<!-- overall container -->
<div class="container">
<!-- header section which will contain main heading and logo in one row -->
<br>
<header class="row heading-responsive">
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
<h1 id="heading">Mixtape</h1>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4" id="heading-logo">
<img src="assets/images/mixtape7.png" id="heading-logo">
</div>
<!-- end of header section -->
</header>
<!-- adding space between sections -->
<br>
<div id="spacer" class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
</div>
<!-- get started button which will hide upon being clicked -->
<div id="start-button" class="btn btn-xs btn-primary col-lg-4 col-md-4 col-sm-4 col-xs-4">Get Started
</div>
<!-- sample display of visuals with attachments and playlist section to give user an idea of what the app will look like (section will disappear once "get started" is clicked) -->
<section class="row" id="sample">
<!--sample visual section-->
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12" id="visuals">
<br>
<div class="panel panel-primary">
<div class="panel-heading">
<h4 class="panel-title">Your Song and Video Will Play Here</h4>
</div>
<div class="panel-body">
<div id="result-container" style="display: none">
<h4>Video ID</h4>
<div id="result-id-container"></div>
<h4>Video Title</h4>
<div id="result-title-container"></div>
<h4>Link</h4>
<div id="result-link-container"></div>
<h4>JSON</h4>
<div id="result-json-container"></div>
</div>
<div id="sample-result-video-container" class="embed-responsive embed-responsive-16by9" style="display: none">
<div id="sample-player"></div>
</div>
</div>
</div>
</div>
<!--sample playlist section-->
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12" id="playlist">
<br>
<div class="panel panel-primary">
<div class="panel-heading">
<h4 class="panel-title">Mixtape Playlist</h4>
</div>
<div class="panel-body">
<ul id="sample-mixtape-container">
<li>Add songs</li>
</ul>
</div>
</div>
<!-- end sample playlist section -->
</div>
</section>
<!-- main section consisting of one row and two columns housing visuals and playlist -->
<section class="row" id="edit-area">
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12" id="visuals">
<!-- section to name the mix and recipient -->
<div id="letter-head">
<div class="row">
<div id="mixtape-name" class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
<form class="form-inline">
<div class="form-group">
<h6><span id = "mixtape"><label for="mixtape">Mix</label>
<input type="text" class="form-control" id="mixtape-name-input" placeholder="Name of Mix"></span></h6>
</div>
<div class="form-group">
<h6><span id = "recipient"><label for="recipient-input">for: </label>
<input type="text" class="form-control" id="recipient-input" placeholder="Name"></span></h6>
</div>
<button type="submit" class="btn btn-default" id="recipient-input-btn">submit</button>
</form>
</div>
</div>
</div>
</div>
<!-- section to house the main visual window for visuals, messages, and attachments -->
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12" id="visuals">
<div class="panel panel-default">
<!-- video display -->
<div class="panel-heading">
<h4 class="panel-title">YouTube - your video will display here</h4>
</div>
<div class="panel-body">
<div id="result-container" style="display: none">
<h4>Video ID</h4>
<div id="result-id-container"></div>
<h4>Video Title</h4>
<div id="result-title-container"></div>
<h4>Link</h4>
<div id="result-link-container"></div>
<h4>JSON</h4>
<div id="result-json-container"></div>
</div>
<div id="result-video-container" class="embed-responsive embed-responsive-16by9" style="display: none">
<div id="player"></div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<!-- a place to make a note attachment -->
<h4 class="panel-title">Create a note to attach to the selected song</h4>
</div>
<div class="panel-body">
<div id="active-song-container" style="display: none">
<h4 id="active-song-title"></h4>
<form class="form-group">
<input id="active-song-text-input" class="form-control" placeholder="What do you have to say about this song?"></input>
<button id="active-song-add-button" class="btn btn-success">Add Note</button>
</form>
<!-- end form-group -->
<!-- Add a Gif button -->
<button id="active-song-add-gif-button" class="btn btn-success" data-toggle="modal" data-target="#gif-modal">Add GIF</button>
<!-- Button trigger modal for giphy gifs -->
<div class="modal fade" id="gif-modal" tabindex="-1" role="dialog" aria-labelledby="gif-modal-label">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Search for a GIF and click to attach</h4>
</div>
<!-- end modal-header -->
<form class="form-inline">
<div class="form-group" id="gif-container">
<input type="text" id="gif-search-query" class="form-control" placeholder="Search on Giphy">
<button id="gif-search-button" class="btn btn-default">Search</button>
<div id="gif-results"></div>
<!-- end gif-results -->
</div>
<!-- end form-group -->
</form>
<!-- end form-inline -->
</div>
<!-- end modal-content -->
</div>
<!-- end modal-dialog -->
</div>
<!-- end modal -->
<!-- Add external image button -->
<button id="active-song-add-img-button" class="btn btn-success" data-toggle="modal" data-target="#img-modal">Add External Image</button>
<!-- Button trigger modal for any external img link -->
<div class="modal fade" id="img-modal" tabindex="-1" role="dialog" aria-labelledby="img-modal-label">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Attach an external image</h4>
</div>
<!-- end modal-header -->
<form class="form-inline">
<div class="form-group" id="img-container">
<input type="text" id="img-link" class="form-control" placeholder="Image Link">
<button id="img-add-button" class="btn btn-default">Add</button>
</div>
<!-- end form-group -->
</form>
<!-- end form-inline -->
</div>
<!-- end modal-content -->
</div>
<!-- end modal-dialog -->
</div>
<!-- end modal -->
<h4>Notes</h4>
<div id="active-song-notes"></div>
<!-- end active-song-notes -->
</div>
<!-- end active-song-container -->
</div>
<!-- end panel-body -->
</div>
<!-- end panel -->
<div class="panel panel-primary">
<div class="panel-heading">
<!-- section to search for a youtube song and video -->
<h3 class="panel-title">YouTube - search and select songs for your mix</h3>
</div>
<div class="panel-body">
<form class="form-inline">
<div class="form-group">
<label for="search-query">Song</label>
<input type="text" id="song-query" class="form-control" placeholder="Search on YouTube">
<label for="search-query">Artist</label>
<input type="text" id="artist-query" class="form-control" placeholder="Search on YouTube">
<button type="submit" id="search-button" class="btn btn-primary btn-xs">Search + Add to Mixtape</button>
</div>
</form>
<div id="youtube-api-container"></div>
</div>
</div>
<!-- end visual section -->
</div>
<!-- section to display playlist -->
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12" id="playlist">
<div class="panel panel-info">
<div class="panel-heading">
<div>
<h4 class="panel-title" id="firebase-title">Mix Name</h4>
<!-- mix name and recipient populated from the name mix and recipient user input section -->
<span class="panel-title" id="playlist-title"></span>
<span id="giftee"></span>
</div>
</div>
<div class="panel-body">
<ol id="mixtape-container">
</ol>
<!-- delete mix button -->
<button id="delete-button" class="btn btn-danger btn-xs" data-toggle="modal" data-target="#delete-modal">Delete Mixtape</button>
<!-- Button trigger modal for deleting mixtape -->
<div class="modal fade" id="delete-modal" tabindex="-1" role="dialog" aria-labelledby="delete-modal-label">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Are you sure you want to delete your mixtape?</h4>
</div>
<!-- end modal-header -->
<form class="form-inline">
<div class="form-group">
<button id="cancel-button" class="btn btn-default">Cancel</button>
<button id="confirm-delete-button" class="btn btn-danger">Delete</button>
</div>
<!-- end form-group -->
</form>
<!-- end form-inline -->
</div>
<!-- end modal-content -->
</div>
<!-- end modal-dialog -->
</div>
<!-- end modal -->
</div>
</div>
<!-- end playlist section -->
</div>
<!-- end section -->
</section>
<!-- end container div -->
</div>
<!-- link to firebase database -->
<script src="https://www.gstatic.com/firebasejs/3.7.3/firebase.js"></script>
<!-- Latest compiled and minified Bootstrap javascript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Velocity js for animations -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/velocity/1.5.0/velocity.min.js"></script>
<!-- link to local javascript -->
<script type="text/javascript" src="assets/javascript/app.js"></script>
</body>
</html>