diff --git a/app.js b/app.js
new file mode 100644
index 0000000..91044de
--- /dev/null
+++ b/app.js
@@ -0,0 +1,58 @@
+//getting the object data through API call
+$.get("https://lit-fortress-6467.herokuapp.com/object").done(function(data) {
+ var music = data.results;
+ //to shuffle the object .sort(function(){return 0.5 - Math.random()});
+ var sorter = music.sort(function() {
+ return 0.5 - Math.random();
+ });
+ //creating an array of album cover images and an array of artist and album names from the shuffled object
+ var covers = [];
+ var artistAlbum = [];
+ for (var i = 0; i < music.length; i++) {
+ covers.push("images/" + music[i].cover_art);
+ artistAlbum.push(music[i].title + " by " + music[i].artist);
+ }
+ console.log(artistAlbum);
+ //on the splash page, adding shuffled images over railroad track
+ $('.first_album').append("");
+ $('.second_album').append("");
+ $('.third_album').append("");
+ //allows the select track button to take you to the playlist page
+ $('.track_button').click(function() {
+ window.location.href = 'playlist.html';
+ });
+ //add album covers to the playlist page
+ $('.album_1').append("");
+ $('.album_2').append("");
+ $('.album_3').append("");
+ $('.album_4').append("");
+ $('.album_5').append("");
+ //all of these click functions allow the album cover to be clicked and add the album and artist info to the text area.
+ $('.album_1').click(function() {
+ $('.track_list').append(artistAlbum[0] + " ");
+ });
+ $('.album_2').click(function() {
+ $('.track_list').append(artistAlbum[1] + " ");
+ });
+ $('.album_3').click(function() {
+ $('.track_list').append(artistAlbum[2] + " ");
+ });
+ $('.album_4').click(function() {
+ $('.track_list').append(artistAlbum[3] + " ");
+ });
+ $('.album_5').click(function() {
+ $('.track_list').append(artistAlbum[4] + " ");
+ });
+ //this button clears the tracks from the track list
+ $('.clear_tracks').click(function() {
+ $('.track_list').empty();
+ })
+ //this button submits the info and then emptys the track list
+ $('.submit_button').click(function() {
+ var tracksubmission = $('.track_list').val();
+ $.post("https://lit-fortress-6467.herokuapp.com/post", tracksubmission, function(data) {
+ alert("you did it. you actually did it.");
+ $('.track_list').empty();
+ })
+ });
+})
diff --git a/images/division_bell.jpg b/images/the_division_bell.jpg
similarity index 100%
rename from images/division_bell.jpg
rename to images/the_division_bell.jpg
diff --git a/index.html b/index.html
index b82dcc4..f051053 100644
--- a/index.html
+++ b/index.html
@@ -2,14 +2,62 @@