added navbar

This commit is contained in:
unknown committed 2020-10-19 02:26:12 +08:00
1 parent 50e0793a2c
commit 1d27af936a
1 file changed
+37 -6
+37 -6
View File
@@ -215,15 +215,46 @@
</div>
<div class="col-span-2">
<p class="font-extrabold text-gray-700">PRICE</p>
<span></span>
<div class="slider" id="slider-distance">
<!-- <div>-->
<!-- <div inverse-left style="width:70%;"></div>-->
<!-- <div inverse-right style="width:70%;"></div>-->
<!-- <div range style="left:30%;right:40%;"></div>-->
<!-- <span thumb style="left:30%;"></span>-->
<!-- <span thumb style="left:60%;"></span>-->
<!-- <div sign style="left:30%;">-->
<!-- <span id="value">30</span>-->
<!-- </div>-->
<!-- <div sign style="left:60%;">-->
<!-- <span id="value">60</span>-->
<!-- </div>-->
<!-- </div>-->
<input class="bg-green-300" type="range" tabindex="0" value="30" max="100" min="0" step="1" oninput="
this.value=Math.min(this.value,this.parentNode.childNodes[5].value-1);
var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min);
var children = this.parentNode.childNodes[1].childNodes;
children[1].style.width=value+'%';
children[5].style.left=value+'%';
children[7].style.left=value+'%';children[11].style.left=value+'%';
children[11].childNodes[1].innerHTML=this.value;" />
<input class="bg-green-300" type="range" tabindex="0" value="60" max="100" min="0" step="1" oninput="
this.value=Math.max(this.value,this.parentNode.childNodes[3].value-(-1));
var value=(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.value)-(100/(parseInt(this.max)-parseInt(this.min)))*parseInt(this.min);
var children = this.parentNode.childNodes[1].childNodes;
children[3].style.width=(100-value)+'%';
children[5].style.right=(100-value)+'%';
children[9].style.left=value+'%';children[13].style.left=value+'%';
children[13].childNodes[1].innerHTML=this.value;" />
</div>
<div class="col-span-1">type</div>
</div>
<div class="grid grid-cols xl:grid-cols-4 gap-8 pt-10">
<div class="">
</div>
<div></div>
<div class="row-span-1 col-span-1 row-start-3 col-start-4">
<button class="w-full h-12 font-light text-md bg-indigo-700 text-gray-200 active:bg-gray-100 tracking-wide capitalize rounded-none hover:shadow-md outline-none focus:outline-none"
type="button"> Search
</button>
</div>
</div>
</div>
</div>