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
2 changes: 1 addition & 1 deletion app/assets/javascripts/bands.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ recentAlbums();
//CAPITALIZES BANDNAME THROUGH WAY TOO MUCH EFFORT
var lowerband = $("#bandName").val();
var BandName = lowerband.charAt(0).toUpperCase() + lowerband.substring(1);
$('#bands').append("<div>" + BandName + '<button class="delete" type="submit">Delete</button>' + "</div>");
$('#bands').append("<div class='bander'>" + BandName + '<button class="delete" type="submit">Delete</button>' + "</div>");

$("#bandName").val("");
//SAVES BANDS TO THE DATABASE
Expand Down
16 changes: 14 additions & 2 deletions app/assets/javascripts/test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// $(document).ready(funciton(){
// $('.albumbox').perfectScrollbar('update');
// $(document).ready(function(){
// ('submit').click(function(e){
// $('.newreleasebox').animate({top:'+=10em'},500);
// $('.concertsbox').animate({top:'+=10em'},500);
// $('.savedartists').animate({top:'+=10em'},500);
// $('#map-canvas').animate({top:'+=10em'},500);
// });
// });




// // $(document).ready(funciton(){
// // $('.albumbox').perfectScrollbar('update');
// // });

40 changes: 24 additions & 16 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,18 @@ body {
font-family: 'Signika', sans-serif;
font-size: 1.5em;
text-align: center;
width: 49%;
width: 49.5%;
/*border-radius: .3em;*/
border: 2px, rgba(192, 57, 43, 1);
position: absolute;
right: 33%;
top: 2.35em;
right: 40%;
top: 3em;
}

.button {
position: absolute;
right: 22%;
top: 3.3em;
right: 29%;
top: 4.3em;
font-family: 'Signika', sans-serif;
font-size: 1.1em;
height: 1.8em;
Expand All @@ -142,8 +142,8 @@ body {
position: absolute;
width: 61%;
height: 10em;
top: 6.2em;
left: 17.5%;
top: 8em;
left: 10%;
background-color: rgba(189,189,189,.8);
z-index: -1;
/*border-radius: .5em;*/
Expand All @@ -157,14 +157,15 @@ body {
/*line-height: 1.5;*/
font-size: 2em;
left: 1%;
top: -10%;
}

.concertsbox {
position: absolute;
width: 61%;
height: 15em;
top: 16.6em;
left: 17.5%;
top: 19em;
left: 10%;
background-color: rgba(189,189,189,.8);
z-index: -1;
/*border-radius: .5em;*/
Expand All @@ -177,12 +178,12 @@ body {
}

#map-canvas {
top: 16.6em;
top: 19em;
position: absolute;
height: 15em;
width: 15em;
float: right;
right: 21.5%;
right: 29%;
/*margin-top: 340px;*/
/*padding: 20px;*/

Expand All @@ -201,8 +202,8 @@ body {
position: absolute;
width: 61%;
height: 10em;
top: 27.1em;
left: 17.5%;
top: 46em;
left: 10%;
background-color: rgba(189,189,189,.8);
z-index: -1;
/*border-radius: .5em;*/
Expand Down Expand Up @@ -237,6 +238,12 @@ body {
list-style-type: none;
}

.bander {
float: left;
position: relative;
clear: both;
}

.albumlist ul {
font-family: 'Signika', sans-serif;
color: rgba(255, 255, 255, 1);
Expand All @@ -255,11 +262,12 @@ body {
position: absolute;
width: 61%;
height: 11em;
top: 47.1em;
left: 17.5%;
top: 35em;
left: 10%;
background-color: rgba(189,189,189,.8);
z-index: -1;
/*border-radius: .5em;*/
overflow: scroll;
overflow-x: scroll;
overflow-y: hidden;
/*text-overflow: ellipsis;*/
}
13 changes: 7 additions & 6 deletions app/views/bands/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
<button class="button" id="submit" type="submit">Add</button>
</form>

<div class="albumbox">
<h2 class="headline1" id='albumheader'>New Artist's Albums</h2>
<div class="albumlist">
<ul id='albums'></ul>
</div>
</div>

<div class="newreleasebox">
<h2 class="headline1">New Releases</h2>
<ul class= "recentalbums" id='recentalbums'></ul>
Expand All @@ -24,12 +31,6 @@
</div>
</div>

<div class="albumbox">
<h2 class="headline1" id='albumheader'>New Artist's Albums</h2>
<div class="albumlist">
<ul id='albums'></ul>
</div>
</div>
</div>
<br>
<br>
Expand Down