diff --git a/home.js b/home.js index 28483d7..bfc80de 100644 --- a/home.js +++ b/home.js @@ -1,19 +1,10 @@ -let featuredItems = document.querySelector("#announcements .carousel-item"); +let featuredItems = document.querySelectorAll("#announcements .carousel-item"); let loginLink = document.querySelector(".navbar a.log-in"); let accountOptions = document.querySelector(".navbar .account-options"); let welcomeText = document.querySelector(".dropdown-item.welcome-text"); let amenitiesHas = document.querySelectorAll(".amenities .has"); let amenitiesLacks = document.querySelectorAll(".amenities .lacks"); -const price = document.querySelector("#priceRange"); -const output = document.querySelector(".price-output"); - -output.textContent = price.value; - -price.addEventListener("input", () => { - output.textContent = price.value; -}); - for (const amenity of amenitiesHas) { amenity.innerHTML += ` diff --git a/search.html b/search.html index 136d583..d05638d 100644 --- a/search.html +++ b/search.html @@ -598,7 +598,7 @@

Filters

-
$750$1200/ month
McMaster Univeristy
@@ -617,10 +617,10 @@

111 Maple Street | Hamilton

    -
  • 4 beds
  • -
  • 2 baths
  • -
  • 2100 FT²
  • -
  • | Room
  • +
  • 2 beds
  • +
  • 1 baths
  • +
  • 1650 FT²
  • +
  • | Apartment
  • High-speed Wi-Fi
  • @@ -781,7 +781,7 @@
    • 2 beds
    • 2 baths
    • -
    • 1600 FT²
    • +
    • 1750 FT²
    • | House
      diff --git a/style.css b/style.css index e41f9af..22a7def 100644 --- a/style.css +++ b/style.css @@ -248,10 +248,12 @@ footer div.links a { font-weight: bold; padding-left: 0!important; margin-bottom: 8px!important; + width: -moz-fit-content; width: fit-content; } label[for="proximity"] { + width: -moz-fit-content; width: fit-content; } @@ -264,6 +266,7 @@ label[for="proximity"] { #max, label[for="min"], label[for="max"] { + width: -moz-fit-content; width: fit-content; } @@ -303,6 +306,7 @@ label[for="max"] { } .check, .check-label { + width: -moz-fit-content!important; width: fit-content!important; }