Skip to content

Commit

Permalink
Fixed return button placement
Browse files Browse the repository at this point in the history
  • Loading branch information
arc12012 committed Dec 2, 2016
1 parent 1ed4ee9 commit cff4299
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions html/javascript/return.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

var dev1 = {
id: 1,
name:"George",
Expand Down Expand Up @@ -57,7 +58,7 @@ function populateDeviceList()
var name = devicesToList[i].name;
var hardware = devicesToList[i].hardware;
var checkout = devicesToList[i].checkout;
htmlString+="<div class=\"deviceContainer\"><div class=\"imgContainer\"><img src=\"../imgs/";
htmlString+="<div class=\"deviceContainer\"><div><div class=\"imgContainer\"><img src=\"../imgs/";
htmlString+=hardware;
htmlString+=".png\" class=\"device\">";
htmlString+=name;
Expand All @@ -71,11 +72,11 @@ function populateDeviceList()
var days=Math.floor(hours/24);
var weeks=Math.floor(days/7);
htmlString+= weeks+ " weeks!";
htmlString+="<button class=\"returnbutton\" id=\"button ";
htmlString+="</div><div class=\"returnButtonContainer\"><button class=\"returnbutton\" id=\"button ";
htmlString+=(id);
htmlString+="\" type=\"button\">Return ";
htmlString+=name;
htmlString+="</button></p></div></div><br>";
htmlString+="</button></div></p></div></div><br>";
}
document.getElementById("devContainer").innerHTML = htmlString;

Expand Down

0 comments on commit cff4299

Please sign in to comment.