Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
49 changes: 49 additions & 0 deletions Pages/playList.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script
src="https://code.jquery.com/jquery-3.2.1.js"
integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE="
crossorigin="anonymous"></script>
<script type="text/javascript" src="../app.js"></script>

<link rel="stylesheet" type="text/css" href="../bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="../Style.css">

<title>My Playlist Page!</title>
</head>
<body>
<div class="container">
<div class="col-md-4" id="banner">
<p id="intro">click on album to add tracks to bin</p>
</div>
</div>
<div id="selectionBar">
<!-- <div class="albumart" id="4"><img src="../images/21.jpg" alt="album art">
</div>
<div class="albumart" id="0"><img src="../images/ghost_in_the_machine.jpg" alt="album art">
</div>
<div class="albumart" id="1"><img src="../images/red.jpg" alt="album art">
</div>
<div class="albumart" id="2"><img src="../images/the_division_bell.jpg" alt="album art">
</div>
<div class="albumart" id="3"><img src="../images/thriller.jpg" alt="album art">
</div>
<div class="albumart" id="3"><img src="../images/thriller.jpg" alt="album art">
</div>
<div class="albumart" id="4"><img src="../images/21.jpg" alt="album art">
</div>
<div class="albumart" id="0"><img src="../images/ghost_in_the_machine.jpg" alt="album art">
</div> -->
</div>
<div id="tracklistBox">
<div id="tracks">
</div>
</div>
<div id="albumButtons">
<button class="box" id="clear">Clear Selection</button>
<button class="box" id="submit">submit bin</button>
</div>
</body>
</html>
176 changes: 176 additions & 0 deletions Style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
* {
padding: 0;
margin: 0;
}

@font-face {
font-family: regular;
src: url(fonts/AvenirNextlTPro-Regular.otf);
}

#mainContainer {
display: inline-block;
width: 1800px;
height: 800px;
/*border: 5px;*/

}
#right {
display: inline-block;
float:right;
height: 800px;
width: 60%;
background-image: url("resources/track.fw.png");
opacity: .19;
padding-top: 30px;
}

#left {
float: left;
height: 800px;
width: 40%;
padding-top: 250px;
padding-bottom: 150px;
padding-left: 50px;

}
.basicText {
font-family: regular;
font-size: 150%;
}

.bin{
font-family: regular;
color: purple;
font-size: 450%;
}

#select {
width: 50%;
background-color: darkgrey;
height: 50px;
padding: 10px;
}

.album {
float: right;
display: block;
width: 210px;
height: 210px;
border: 2px solid black;
border-radius: 2px;
background-color: blue;
margin: 10px;


}

img {
max-width: 100%;
max-height: 100%;
opacity: 100;
}


.container {
/*display: inline-block;*/
width: 100%;
height: 100px;
border: 2px;
border-radius: 5px;
background-color: #9B9B8C;
}


#intro {
font-family: regular;
font-size: 30px;
color: white;
padding-top: 50px;
/*border: 5px solid;*/
}

.track {
border:5px solid black;
border-radius: 2px;
width: 100px;
height: 100px;
background-color: green;
padding: 10px;
margin: 15px;

}

#selectionBar {
/*display: inline-block;*/
width: 600px;
height: 120px;
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
padding: 0;
margin: 10px;

}
.albumart {
display: inline-grid;
width: 120px;
height: 120px;
margin-left: 50px;
/*margin-top: 10px;*/
padding: 0;
margin-left: 25px;
}

#tracklistBox {
margin-top: 50px;
margin-left: 40px;
width: 750px;
height: 225px;
border: 2px solid black;
border-radius: 2px;
}

#tracks {
height: 225px;
width: 200px;

}

.box {
display: inline-block;
border: 1px solid black;
height: 50px;
width: 200px;
background-color: #353526;
border-radius: 10%;
font-family: regular;
color: white;
}
#clear{
/*margin: 25px;*/
margin-left: 20px;
}

#noFilter {
float: right;
margin-left: 1180px;
margin-top: 30px;
height: 800px;
width: 220px;
position: absolute;
}

#albumButtons {
padding: 30px;
width: auto;
height: 225px;
}

#submit {
margin-left: 20px;
}

#greeting {
margin-left: 100px;
}
84 changes: 84 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
function Playlist(){
console.log("I'm UP!")

// Random Art code for Splash Page
$.get("https://lit-fortress-6467.herokuapp.com/object", function(data){

$("#box1").append("<img src= images/" + image1(0, 5) + "></img")
$("#box2").append("<img src= images/" + image1(0, 5) + "></img")
$("#box3").append("<img src= images/" + image1(0, 5) + "></img")

function image1(min, max){
var random = Math.floor(Math.random() * (max - min));
for(var i = 0; i <data["results"].length; i++)
for(var key in data["results"][random]){
var images = data["results"][random]["cover_art"]
}
return (images)
}
})
// End of Code for random art on splash page


// populate image artwork Playlist page

$.get("https://lit-fortress-6467.herokuapp.com/object", function(data){
for(var i =0; i <data["results"].length; i++){
for(var k in data["results"]){
var image = data["results"][i]["cover_art"]
}
$("#selectionBar").append("<div class='albumart' id='" + i + "'><img src='../images/" + image + "' alt = albumart></div>" )
}






// Artist and Album Title to populate
$(".albumart").on("click", function(e){
var Id = jQuery(this).attr("id")
$.get("https://lit-fortress-6467.herokuapp.com/object", function(data){
// console.log(data)
for(var i = 0; i < data["results"].length; i++){
for(var k in data["results"]){
var artistName = data["results"][Id]["artist"]
var albumTitle = data["results"][Id]["title"]
}
}
$("#tracks").append("<div>" + artistName + ": " + albumTitle + "</div>")
})
})
})
// end

// clearbox
$("#clear").click(function(){
$("#tracks").empty();
})
// clearbox

// post





















}
$(window).on("load", Playlist)
6 changes: 6 additions & 0 deletions bootstrap.min.css

Large diffs are not rendered by default.

Binary file added images/.DS_Store
Binary file not shown.
File renamed without changes
39 changes: 37 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,45 @@
<html>
<head>
<meta charset="utf-8">
<title></title>
<script
src="https://code.jquery.com/jquery-3.2.1.js"
integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE="
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="Style.css">
<script type="text/javascript" src="app.js"></script>
<title>My Playlist Page!</title>
</head>


<body>

<div class="container">
</div>
<div class="" id="mainContainer">
<div class="internal" id="left">
<div id="greeting">
<h1 class="bin">track bin</h1>
<form action="pages/playlist.html">
<input class="box" id="choose" type="submit" value="Choose Tracks" />
</form>
</div>
</div>
<div class="internal" id="right">
</div>
<div id="noFilter">
<div class="album" id="box1">
</div>
<div class="album" id="box2">
</div>
<div class="album" id="box3">
</div>
</div>

</div>
<div class="container">
</div>



</body>
</html>
Binary file added mockups/.DS_Store
Binary file not shown.