- Timestamp:
- 01/10/25 19:07:51 (5 days ago)
- Branches:
- master
- Children:
- cd64b06
- Parents:
- 53bad7e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/js/formHandler.js
r53bad7e r1c51912 74 74 nameParagraph.textContent = item.hotelName; 75 75 WrapperDiv.appendChild(nameParagraph); 76 77 76 //Destination 78 77 const countryParagraph = document.createElement('p'); … … 92 91 else peopleParaghraph.textContent = item.numPeople + " лица"; 93 92 WrapperDiv.appendChild(peopleParaghraph); 94 95 const infoDiv = document.createElement('div');96 97 98 99 100 93 //price 101 94 const priceHeading = document.createElement('h1'); … … 107 100 WrapperDiv.appendChild(priceParagraph); 108 101 102 103 const infoDiv = document.createElement('div'); 104 const typeRoom = document.createElement('p'); 105 typeRoom.textContent = "Тип на соба: " + item.type; 106 infoDiv.appendChild(typeRoom); 107 const plan = document.createElement('p'); 108 plan.textContent = "Услуга: " + item.board; 109 infoDiv.appendChild(plan); 110 const amenities = document.createElement('p'); 111 if(item.amenities.length === 0){ 112 amenities.textContent = "Нема информации од агенцијата за вклучените поволности. "; 113 }else amenities.textContent = "Поволности: " + item.amenities; 114 infoDiv.appendChild(amenities); 115 optionDiv.appendChild(infoDiv); 109 116 110 117
Note:
See TracChangeset
for help on using the changeset viewer.