mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2025-09-09 16:17:22 +00:00
Merge branch 'sprint-2' of https://github.com/cse110-fa22-group29/cse110-fa22-group29 into sprint-2
This commit is contained in:
BIN
source/assets/images/icons/Grouppink.png
Normal file
BIN
source/assets/images/icons/Grouppink.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
source/assets/images/icons/Logo.png
Normal file
BIN
source/assets/images/icons/Logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
source/assets/images/icons/favicon.ico
Normal file
BIN
source/assets/images/icons/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
@@ -18,12 +18,12 @@ function init() {
|
||||
* @param {Array<Object>} reviews An array of reviews
|
||||
*/
|
||||
function addReviewsToDocument(reviews) {
|
||||
let mainEl = document.querySelector("main");
|
||||
let box = document.getElementById("review-container");
|
||||
reviews.forEach(review => {
|
||||
let newReview = document.createElement("review-card");
|
||||
newReview.data = review;
|
||||
//TODO: want to append it to whatever the box is in layout
|
||||
mainEl.append(newReview);
|
||||
box.append(newReview);
|
||||
});
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user