Commit 712f157f authored by David Garner's avatar David Garner
Browse files

Merge branch 'master' of https://git.assignitapp.com/coms319/lab6

parents 27a8a8a9 fc6aef02
......@@ -6,8 +6,25 @@
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="library.js"></script>
<script src="booksLibrary.js"></script>
<style>
body {
background: #fcfce8;
font-family: "Comic Sans MS", sans-serif;
}
table, tr, td {
border-collapse: collapse;
border-style: solid;
border-width: 1px;
padding: 4px;
}
th {
background: #e8fcea;
padding: 6px;
}
</style>
</head>
<body>
</body>
</html>
\ No newline at end of file
......@@ -4,7 +4,7 @@
jQuery(function() {
var i, j, lib, table, currentShelf, currentBook;
lib = new Library("Iowa State");
lib = new Library("Iowa State Library");
i = 0;
while (i < 3) {
lib.addShelf(new Shelf("Shelf" + i));
......@@ -17,6 +17,9 @@ jQuery(function() {
}
table = "";
table += "<h1>";
table += lib.name;
table += "</h1>";
table += "<table>";
for(i = 0; i < lib.shelves.length; i++) {
table += "<tr>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment