-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
167 lines (158 loc) · 5.77 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
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Artists and Articles</title>
<link rel="stylesheet" href="app/style/assets/css/style.css">
<link rel="stylesheet" href="app/style/assets/css/bootstrap.css">
<script src="app/style/main.css"></script>
<script src="lib/jquery-1.11.3.js"></script>
<script src="lib/handlebars.js"></script>
<script src="app/models/app.js"></script>
<script src="app/models/nytimes.js"></script>
<script src="app/models/spotify.js"></script>
<script src="app/models/concert.js"></script>
<script src="app/controllers/nytimesController.js"></script>
<script src="app/controllers/spotifyController.js"></script>
<script src="app/controllers/eventsController.js"></script>
</head>
<body>
<!-- SUBMIT BUTTON -->
<div class="intro-header">
<div class="col-sm-12 text-center abcen wow fadeIn">
<div class="col-sm-12 text-center">
<div class="h1_home wow fadeIn" data-wow-delay="0.4s">Get Your Newsic</h1>
</div>
<form id = 'artist_form'>
<div class='name'>
Artist Name
<input id='artist' class='input input_name' type="text" >
<input id="submit-button" type="submit">
</div>
</form>
</div>
</div>
</div>
<br>
<div class="artist-container">
<div class="col-sm-12 text-center">
<div class="artist-name"></div>
<div class="row">
<div class="artist-image">
<script id="artist-template" type="text/x-handlebars-template">
<div class="col-sm-12 text-center">
<div class="clear-image">
<img src={{artistImage}} height="400" width="600">
</div>
</div>
</script>
</div>
</div>
<br>
<div class="col-sm-12 text-center">
<div class="artist-albums">
<div class="row">
<script id="album-template" type="text/x-handlebars-template">
{{#each albums as |album|}}
<div class="col-sm-2">
<div class="clear-albums">
<img id="myImg" src={{album.albumImage}} alt={{album.name}} width="80" height="80">
</div>
<div id="myModal" class="modal">
<span class="close" onclick="document.getElementById('myModal').style.display='none'">×</span>
<img class="modal-content" id="img01">
<div id="caption"></div>
</div>
<div class="album-tracks">
<div class="track-names" id={{album.id}}>
{{#each album.tracks as |track|}}
<div class="clear-tracks">
<li> {{track.name}} </li>
</div>
{{/each}}
</div>
</div>
</div>
{{/each}}
</script>
</div>
</div>
</div>
</div>
</div>
<br>
<!-- ARTICLE HANDLEBAR -->
<div class="article-container">
<div class="row">
<div class="col-sm-12">
<div class="row">
<div class="article-row">
<script id="article-template" type="text/x-handlebars-template">
{{#each articles as |article|}}
<div class="col-sm-6 col-sm-6">
<div class="clear-articles">
<h3>{{article.headline}}</h3>
<p>{{article.snippet}}</p>
<a href={{article.web_url}}>Link to Article</a>
</div>
</div>
{{/each}}
</script>
</div>
</div>
</div>
</div>
</div>
<!-- END ARTICLE HANDLEBAR -->
<!-- concert finder form -->
<form id = 'event_form'>
</form>
<!-- event handlebars -->
<div class="container">
<div class="row">
<div class="col-sm-12 text-center">
<div class="row">
<div class="concert-row">
<script id="concert-template" type="text/x-handlebars-template">
{{#if concerts}}
{{#each concerts as |concert|}}
<div class="col-sm-6 col-sm-6">
<div class="clear-events">
<h3>{{concert.title}}</h3>
<h4>{{concert.dateTime}}</h4>
<h4>{{concert.location}}</h4>
<a href={{concert.ticket_url}}>Buy tickets here!</a>
</div>
</div>
{{/each}}
{{else}}
<h3>Sorry there are no concerts in this area!</h3>
{{/if}}
</script>
</div>
</div>
</div>
</div>
</div>
<!-- end of event handlebars -->
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> -->
</body>
</html>
<html>
<head>
<!--Load the AJAX API-->
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
// Load the Visualization API and the corechart package.
google.charts.load('current', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.charts.setOnLoadCallback(drawChart);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
</script>
</head>
<body>
<!--Div that will hold the pie chart-->
<div id="chart_div"></div>
</body>
</html>