diff --git a/index2.html b/index2.html index ee3f106..8e02ff7 100644 --- a/index2.html +++ b/index2.html @@ -240,7 +240,21 @@ - + \ No newline at end of file diff --git a/public/index.html b/public/index.html index 3480141..3d0edf5 100644 --- a/public/index.html +++ b/public/index.html @@ -69,7 +69,14 @@ BUDGET
- + + +
@@ -108,11 +115,11 @@
@@ -123,7 +130,7 @@
-
+
Sunset in the mountains
lorem ipsum dolor lorem ipsum @@ -138,7 +145,7 @@ P 1,299/ Month
-
+
Sunset in the mountains
lorem ipsum dolor lorem ipsum @@ -153,7 +160,7 @@ P 1,299/ Month
-
+
Sunset in the mountains
lorem ipsum dolor lorem ipsum @@ -168,7 +175,7 @@ P 1,299/ Month
-
+
Sunset in the mountains
lorem ipsum dolor lorem ipsum @@ -183,7 +190,52 @@ P 1,299/ Month
-
+
+ Sunset in the mountains + +
+
+ Quezon City +
+
+ 1 week ago +
+ P 1,299/ Month +
+
+
+ Sunset in the mountains + +
+
+ Quezon City +
+
+ 1 week ago +
+ P 1,299/ Month +
+
+
+ Sunset in the mountains + +
+
+ Quezon City +
+
+ 1 week ago +
+ P 1,299/ Month +
+
+
Sunset in the mountains
lorem ipsum dolor lorem ipsum @@ -200,12 +252,13 @@
- +
+ +
- \ No newline at end of file diff --git a/public/index.js b/public/index.js new file mode 100644 index 0000000..db7c3f3 --- /dev/null +++ b/public/index.js @@ -0,0 +1,9 @@ +function updatePriceLabels() { + //avoids slider overlap + var sliders = document.querySelectorAll(".price-slider input"); + var val1 = parseInt(sliders[0].value); + var val2 = parseInt(sliders[1].value); + if (val1 >= val2) { sliders[0].value = val2 - 3; return; } + if (val2 <= val1) { sliders[1].value = val1 + 3; return; } //adds color when a range is selected + if (val1 > 0 || val2 < 99) { sliders[0].style.background = sliders[1].style.background = "-webkit-gradient(linear, 0 0,100% 0, color-stop(0, white), color-stop(" + (val1 / 100) + ", white),color-stop(" + (val1 / 100) + ", #f0f0f0), color-stop(" + (val2 / 100) + ", #f0f0f0), color-stop(" + (val2 / 100) + ", white))"; } else { sliders[0].style.background = sliders[1].style.background = ''; } +} \ No newline at end of file